Thread Tools Display Modes
10-08-09, 01:46 AM   #1
mbrown279
A Defias Bandit
Join Date: Oct 2009
Posts: 3
Unhappy UI Scaling Code Not Working

I want to compliment on you UI it is truly well thought out and usefull.

I have one problem. I have tried following the instructions you gave in the FAQ. However when I insert
nUI_Options = {
["scale"] = 0.90,
["hScale"] = {1920},
["vScale"] = {1080},

It does not work. The dashboard get really large, the Blizz is displayed and everything is out of whack. As soon as I remove that line of code everything returns to normall.

I have a 24 widescreen monitor. I have poured through the forums and cannot find a fix. What am I doing wrg. Here is teh code I typed into the nui.lua file. I am not a coder by any means so please help by breaking down what I need. If not I will have to leave you UI which I do not want to do. Lastly, are there any plans to support larger widescreens.

nUI_Options = {
["scale"] = 0.90,
["hScale"] = {1920},
["vScale"] = {1080},
["hud_healthrace"] = true,
["show_splash"] = false,
["tooltips"] = "owner",
["movedWatchFrame"] = true,
["barCooldowns"] = true,
["barKeyBindings"] = true
 
10-08-09, 11:34 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You are not interpreting the instructions correctly, at all. hScale and vScale are NOT the dimensions of the display, nor should the values be enclosed in braces.

By default, you shouldn't have to do any of this unless you want to make the entire UI larger or smaller on your display... nUI will automatically scale itself to fit any and all display resolutions that WoW supports without any editing on your part. To accomplish that, remove the scale, hScale and vScale entries from your nUI options section and you're all set.

Now, if you're trying to alter the scale of the entire UI for your particular display, then you should start with the following...

Code:
nUI_Options = {
    ["scale"] = 1,
    ["hScale"] = 0.75,
    ["vScale"] = 0.64125,
}
Now, to make the UI wider, make hScale bigger, to make it narrower, make hScale smaller. Likewise, to make the UI taller, make vScale bigger, to make it shorter, make vScale smaller.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Technical Support » UI Scaling Code Not Working


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off