PDA

View Full Version : Nurfed2 Hud Layout Syntax



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

Deadlift
02-27-2010, 03:29 PM
-- HUD SUPPORT NOT IN YET!
Now I really feel stupid...

(edit)

Giving up trying to build a HUD as long as the only working method to fill the hud is StatusBar and not Texture, because "fill" currently uses height and bar to determine the filling, wich is kinda useless if you do not have a "horizontal" bar logic.

And its no use producing a layout where users would have to edit unitframe.lua to get a hud wrking. ;)

Apoco
03-07-2010, 09:39 PM
Going to start working on HUD's next week (or later this week), expect some big changes coming soon.

a67rhf7823jn8747==