PDA

View Full Version : What did I do wrong?



Telal
08-24-2006, 06:23 PM
I tried to remove the casting bar, and even though I get the error posted below, I click on "OKAY" and it works fine, no casting bar the rest of the HUD seems ok.

http://img.photobucket.com/albums/v299/telal/sigh.jpg



The code section for this is as follows, starting with the pet section to the end of the file.


pet = {
type = "Frame",
size = { 64, 256 },
FrameStrata = "LOW",
Anchor = { "RIGHT", "$parent", "CENTER", -150, -45 },
events = {
"PLAYER_ENTERING_WORLD",
"UNIT_NAME_UPDATE",
"UNIT_HEALTH",
"UNIT_MANA",
"UNIT_ENERGY",
"UNIT_RAGE",
"UNIT_FOCUS",
"UNIT_MAXHEALTH",
"UNIT_MAXMANA",
"UNIT_MAXRAGE",
"UNIT_MAXENERGY",
"UNIT_MAXFOCUS",
"UNIT_PET",
"UNIT_HAPPINESS",
},
children = {
hp = {
type = "Texture",
size = { 64, 128 },
Texture = NRF_HUD_IMG.."pet_hp",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 128 },
vars = {
bar = 109,
height = 128,
width = 64,
fill = "top",
},
},
hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 11, "OUTLINE" },
JustifyH = "LEFT",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 10, -19 },
vars = { format = "$perc" },
},
mp = {
type = "Texture",
size = { 64, 128 },
Texture = NRF_HUD_IMG.."pet_mana",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 },
vars = {
bar = 109,
height = 128,
width = 64,
fill = "top",
},
},
mpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 11, "OUTLINE" },
JustifyH = "LEFT",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 10, 0 },
vars = { format = "$perc" },
},
},
OnEvent = function() Nurfed_Hud_OnEvent() end,
},


end

Ghen
08-24-2006, 08:25 PM
just being lazy, find which line is 295.. which end is the error for.

Telal
08-24-2006, 10:32 PM
I assumed it was the last one, as I didn't get the error until I removed the section for the casting bar. :D

a67rhf7823jn8747==