Deadlift
02-27-2010, 08:07 AM
Hi,
could somebody please point me in the right direction about the "hud" layout syntax.
I checked the Layout example supplied here and was able to do an almost hud in "frame" mode.
Yet obviously it sucks if your hud decreases as a normal statusbar would from right to left, also placement of buffs, combopoints and the likes doesnt look like I want it to.
So is there an example HUD, or an API I am missing here.
For me it is not just as easy as
-- change the word "frame" to "hud" if its a hud.
in
Nurfed2:AddLayout("LayoutNameHere", blabla, "frame").
;)
e.g. something like:
local demolayout = {
desc = "Default Nurfed 2 Layout",
author = "Apoco",
website = "http://www.nurfed.com",
You have to name it Hud_Template = {
},
This must pbviously be HUD you idiot = {
hud_player={
children={}
}
},
}
-- Register the event.
Nurfed2:RegEvent("N2_UNITFRAMES_LOADED",
function()
-- change the word "frame" to "hud" if its a hud.
Nurfed2:AddLayout("Nurfed2 Demo", demolayout, "hud")
end
)
Something like that.
Thanks in advance
could somebody please point me in the right direction about the "hud" layout syntax.
I checked the Layout example supplied here and was able to do an almost hud in "frame" mode.
Yet obviously it sucks if your hud decreases as a normal statusbar would from right to left, also placement of buffs, combopoints and the likes doesnt look like I want it to.
So is there an example HUD, or an API I am missing here.
For me it is not just as easy as
-- change the word "frame" to "hud" if its a hud.
in
Nurfed2:AddLayout("LayoutNameHere", blabla, "frame").
;)
e.g. something like:
local demolayout = {
desc = "Default Nurfed 2 Layout",
author = "Apoco",
website = "http://www.nurfed.com",
You have to name it Hud_Template = {
},
This must pbviously be HUD you idiot = {
hud_player={
children={}
}
},
}
-- Register the event.
Nurfed2:RegEvent("N2_UNITFRAMES_LOADED",
function()
-- change the word "frame" to "hud" if its a hud.
Nurfed2:AddLayout("Nurfed2 Demo", demolayout, "hud")
end
)
Something like that.
Thanks in advance