Megamage
Welt-Boss
- Registriert
- 05.01.2008
- Beiträge
- 1.924
- Reaktionspunkte
- 1
- Kommentare
- 276
Wie soll man aus so einem Gewusel schlau werden?
Ich denke mal irg wo hier muss ich was ändern, oder?
Code:
Panels = {}
function Panels:Chat(text) ChatFrame1:AddMessage(text) end
function Panels:CreatePanel(fname, fparent, fstrata, flevel, fwidth, fheight, fcolor, fpoints)
local f = CreateFrame("Frame","Panel_"..fname,UIParent)
f:SetParent(fparent)
f:SetFrameStrata(fstrata)
f:SetFrameLevel(flevel)
f:SetWidth(fwidth)
f:SetHeight(fheight)
f:SetBackdrop({bgFile = "Interface/Buttons/WHITE8x8"})
f:SetBackdropColor(fcolor.r, fcolor.g, fcolor.b, fcolor.a)
for i,v in pairs(fpoints) do
f:SetPoint(unpack(v))
end
end
local color = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
-- border panel
Panels:CreatePanel("Bottom1", "UIParent", 0, 1500, 20, {r=0, g=0, b=0, a=1}, {{"BOTTOM", UIParent, "BOTTOM", 0, 0 }})
Panels:CreatePanel("Bottom2", "UIParent", "BACKGROUND", 0, 300, 17.5, {r=color.r, g=color.g, b=color.b, a=1}, {{"BOTTOM", UIParent, "BOTTOM", 0, 0 }})
Panels:CreatePanel("Bottom3", "UIParent", "LOW", 2, 298, 20, {r=0, g=0, b=0, a=1}, {{"BOTTOM", UIParent, "BOTTOM", 0, 0 }})
Ich denke mal irg wo hier muss ich was ändern, oder?