PDA

View Full Version : Exp bar frame



auren
11-30-2007, 03:07 AM
Is there a way to simply make a movable frame with an experience bar in it? I tried editing my layout to no avail, and the only simple experience bar I have found makes my addons unstable with addon interference msgs.

Tenten
12-01-2007, 02:25 AM
Is there a way to simply make a movable frame with an experience bar in it? I tried editing my layout to no avail, and the only simple experience bar I have found makes my addons unstable with addon interference msgs.

do you mean dragging out the blizz default one or to make a new one? if you need a new one, then its quite simple. atleast its working for me and my hud :>



Nurfed_Unit_xp = {
type = "StatusBar",
strata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."exp_bar",
children = {
bg = {
type = "Texture",
layer = "BACKGROUND",
Texture = NRF_IMG.."exp_bar",
VertexColor = { 1, 0, 1, 0.25 },
Anchor = "all" },
text = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."Charcoal.ttf", 11, "NONE" },
JustifyH = "CENTER",
TextColor = { 1, 1, 1 },
ShadowColor = { 0, 0, 0, 0.75 },
ShadowOffset = { -1, -1 },
Anchor = "all",
vars = { format = "$cur/$max" },
},
text2 = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."Charcoal.ttf", 11, "NONE" },
JustifyH = "RIGHT",
TextColor = { 1, 1, 1 },
ShadowColor = { 0, 0, 0, 0.75 },
ShadowOffset = { -1, -1 },
Anchor = "all",
vars = { format = "[$perc]" },
}
},
},
add this in the layout.lua file under templates.

then, add this(im not sure if u need to add this since ur prolly gonna use it in ur unitframes... so mixture with it untill u find out how to do! :p)


xp = {
template = "Nurfed_Unit_xp",
size = { 128, 128 },
StatusBarColor = { 0, 0, 0, 0,0 },
Anchor = { "BOTTOMRIGHT", "$parentmp", "BOTTOMRIGHT", 37, -3 },
},
atleast, this adds a movable frame for me in my hud with no problems at all :> you can even design ur own look on the exp bar xD

Wyvers
12-03-2007, 03:48 AM
Would this work for a pet exp bar also with a few tweaks?

Tenten
12-03-2007, 01:53 PM
Would this work for a pet exp bar also with a few tweaks?


most likely... but im far from sure x_x

a67rhf7823jn8747==