View Full Version : Attn: Layout Authors (3.0+ Info)
Apoco
09-25-2008, 04:10 AM
Bad News:
Greetings, as many of you have noticed, 90% of custom layouts that work in 2.0+ are broken in 3.0. This is due to several minor changes to the way layouts are done, along with api changes to the Blizzard UI.
Good News:
At this point in time however, the changes that are required to be made, are very very minor and will take a total of ~5minutes to fix.
Please check the default setup in libs/units.lua for exact changes, however I am going to try and document the changes the best I can.
Combo Frame Changes:
Because of the way ComboPoints are now given, we can get the number of combo points between any two units. ie: raid1 member and their target
or raid1 member and your target, etc.
because of this, I have added in two new variables that are required for the combo frames.
vars = { unit1 = "player", unit2 = "target" },
is required.
ie:
combo = {
type = "FontString",
layer = "OVERLAY",
Font = {NRF_FONT.."framd.ttf", 22, "OUTLINE" },
TextHeight = 22,
JustifyH = "RIGHT",
Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMLEFT", 2, 3 },
vars = { unit1 = "player", unit2 = "target" },
},
-----------
Druid Mana Bars:
I have added in support for druid mana bars in any form.
druidmanabar = {
template = "Nurfed_Unit_mp",
size = { 130, 10 },
Anchor = { "TOPRIGHT", "$parent", "BOTTOMRIGHT", -5, 144 },
vars = { hideFrame = "xp" },
},
This bar will only be shown when your powertype is NOT mana (ie: rage/energy).
It can also automatically hide a frame when it is shown (and show the same frame when its hidden)
Threat Bars:
Threat Information is now available to the UI.
threat = {
type = "FontString",
size = { 100, 8 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "NONE" },
JustifyH = "RIGHT",
Anchor = { "BOTTOMLEFT", "$parenthpperc", "TOPRIGHT", 15, 0 },
vars = { format = "$threat-$tperc", threatUnit = "player" },
},
$threat gives the exact number of threat on the target (2.2k, 4.5m, etc), $tperc gives the percentage based on your distance from the target before you pull threat.
----------
All Frames:
All frames that you wish to use the new PredictedStats feature that Blizzard has given us requires the
enablePredictedStats = true
variable added into the var's table of the FRAME (not subframes).
ie:
vars = { unit = "player", enablePredictedStats = true, },
All frames can now hide a frame when shown (like the druid bar)
ie:
vars = { hideFrame = "xp" },
will always hide the xp frame when that frame is shown.
If you have any questions, please feel free to post them here!
khakhan
10-02-2008, 04:27 PM
Info for people who want to update their Layouts
Nurfed 3.0 download
http://nurfedui.googlecode.com/svn/wrath/
(installation information here : http://forums.nurfed.com/showthread.php?t=16310 )
Note: you may need to /rl a few times before your layout stops tweaking out.
Command to reset frames to default
/run NURFED_FRAMES=nil
Apoco, what does PredictedStats do? I can't find any information on it.
Apoco
10-03-2008, 01:56 AM
Basically. Well. Ok. Currently stats update every 1-1.5 seconds ingame. This is shown via the "Instant_Health" Mod which hit the UI scene by storm. The way it currently is on live, players can actually be dead, but before they die to the server and client they can get healed and thus not die, in Wrath this is not the case anymore. All stats update in real time. So instead of seeing your mana "tick" back the way it does currently, it actually goes up by +1, many times a second. It is a really cool thing, best thing I can say to see it in action is to login a mana user into Wrath using the default UI, dump some mana and then just stand still and watch how your mana bar updates.
Apoco
10-06-2008, 01:15 AM
updating info in first thread to show hideFrame for all frames and threat info.
I will be adding statusbar support for threat.
khakhan
10-06-2008, 08:03 PM
Is there any way to make debuffs work like the default UI? (larger debuff icon and timer showing on your debuffs only)
Also, how can you hide the raid frames?
Apoco
10-14-2008, 12:46 PM
the raidframe won't be included when it hits RC1, its there for Proof of Concept atm.
The debuffs, yes, thats doable via the frames menu or editing the layout file.
Are those codes something we will need to add to all the frames?
Apoco
10-14-2008, 11:47 PM
depends what 'codes' you are speaking of, but none that I can think of off the top of my head.
I got rid of the XP bar, is there a way to get rid of the space?
Apoco
10-15-2008, 10:48 AM
Change the frame height
Gnomage
10-18-2008, 06:20 AM
I modified my old 2.0 layout, but I no longer have an Import layout button in my nurfed options, or at least I can't find it. Anyone else had this problem? I updated my Nurfed with workbench today.
khakhan
10-18-2008, 04:55 PM
if the Import Layout doesn't show up that means you messed up something in the code. usually something minor and hard to find, the #1 joy of coding anything.
Apoco
10-18-2008, 05:33 PM
if the Import Layout doesn't show up that means you messed up something in the code. usually something minor and hard to find, the #1 joy of coding anything.
That is correct. To force an import though you can do
/script Nurfed_ImportLayout()
Slafs
10-18-2008, 08:42 PM
You don't necessarily need to have messed up something with the code. The 2.x version would willfully import layouts that included lines before
if (not Nurfed_UnitsLayout) then
In my case, the layout was defining NRF_IMG and the color of the mana bar. Remove this and the layout should import ... unless you actually did mess up =)
I haven't done any thorough testing on this though to pinpoint exactly what would cause it, so I might be somewhat incorrect.
Apoco
10-19-2008, 02:16 AM
No, he was saying the Import Layout button doesnt show if the layout is somehow ghetto. This is true.
Tenten
10-19-2008, 09:21 AM
hey apoco, im trying to update my hud part of the layout but keep bumping into errors :( do you have any template on how to do it or how it would look like?
or if you have the time, look through what ive done so far and see what needs to be changed... (prolly a lot >_<)
http://rapidshare.com/files/155442759/Layout_3.0.lua.html
Gnomage
10-19-2008, 10:37 PM
THanks guys, the mana thing was actually the problem. Now at least I can load my layout and try to see the other problems.
Apoco
10-19-2008, 11:38 PM
hey apoco, im trying to update my hud part of the layout but keep bumping into errors :( do you have any template on how to do it or how it would look like?
or if you have the time, look through what ive done so far and see what needs to be changed... (prolly a lot >_<)
http://rapidshare.com/files/155442759/Layout_3.0.lua.html
I will take a look at it soon.
Tenten
10-21-2008, 12:46 AM
thxs a lot mate :)
Apoco
10-21-2008, 12:41 PM
I'll take a look at it today.
Jaded
10-29-2008, 10:58 PM
Two queries:
1: Is there any way to remove the brackets around the timer on casting?
2: Can a timer for total cast time be added? I.e. 2.3s / 3.0s
Apoco
10-30-2008, 01:56 AM
Two queries:
1: Is there any way to remove the brackets around the timer on casting?
2: Can a timer for total cast time be added? I.e. 2.3s / 3.0s
Sure, edit the layout.
Jaded
10-30-2008, 07:17 AM
I've looked in my the layout and can't see anything within the casting bar lines that suggests you can split the timer. Maybe I'm just being a little slow, it was late last night when I was looking :s
Apoco
10-30-2008, 11:53 AM
it should be in the text = "[$cur]" thingy
add
text = "$cur/$max" or some shit, should work. I'll take a look into it when I get home though. I've done something like this before without editing the lua I believe.
Jaded
10-30-2008, 04:52 PM
Tried that last night, but it didnt change anything. This is what I have for my casting bar setup atm:
Nurfed_Unit_castingplayer = {
type = "StatusBar",
StatusBarTexture = NRF_IMG.."HalM",
children = {
text = { type = "FontString",
layer = "OVERLAY",
size = { 140, 10 },
ShadowColor = { 0, 0, 0, 1.00},
ShadowOffset = { 1, -1 },
JustifyH = "LEFT",
Font = { NRF_FONT.."AvantGarde.ttf", 8, "NONE" },
Anchor = { "LEFT", "$parent", "LEFT", -7, -10 },
vars = { format = " $spell - $rank" },
},
time = { type = "FontString",
layer = "OVERLAY",
ShadowColor = { 0, 0, 0, 1.00},
ShadowOffset = { 1, -1 },
JustifyH = "RIGHT",
Font = { NRF_FONT.."AvantGarde.ttf", 8, "NONE" },
Anchor = { "RIGHT", "$parent", "RIGHT", -0, -8 },
},
},
Hide = true,
},
Apoco
10-31-2008, 01:42 AM
will take a look at some stuff tomorrows promisess
auren
10-31-2008, 06:39 PM
How do you change the size or properties of buffs and debuffs without using the frames menu?
Jaded
10-31-2008, 11:35 PM
In your Layout.lua file you should have for each frame the following code, change it to alter position etc:
buff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 4, 0 } },
buff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff1", "RIGHT", 0, 0 } },
buff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff2", "RIGHT", 0, 0 } },
buff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff3", "RIGHT", 0, 0 } },
buff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff4", "RIGHT", 0, 0 } },
debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "TOPLEFT", "$parent", "TOPRIGHT", -3, 0 } },
debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 1, 0 } },
debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "TOP", "$parentdebuff1", "BOTTOM", 1, 0 } },
debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 1, 0 } },
debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "TOP", "$parentdebuff3", "TOP", 0, 0 } },
Apoco
11-03-2008, 04:58 AM
it should be in the text = "[$cur]" thingy
add
text = "$cur/$max" or some shit, should work. I'll take a look into it when I get home though. I've done something like this before without editing the lua I believe.
$cur, $max, $perc works with casting bar as of next commit.
Jaded
11-03-2008, 07:34 AM
*hugs* meant to ask one other favour :p
Adding the ability to change the colour the casting bar? Tried to get it to work with the: Vertexcolor= {}, to no avail :(
skolapper
09-04-2009, 11:00 AM
Its not a bug, its a misunderstanding on your behalf. When you change the look of a section link layout, then that is for that section you are actually inside. To see that layout however, you need to be one level up, see the logic? You cant click on a section, change its layout and expect to see the change as you are already inside that section. Move up a level and then you will see it.
Apoco
09-13-2009, 10:20 PM
Yeah, this thread will nolonger matter within two weeks.
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.