Shantalya
Welt-Boss
- Mitglied seit
- 18.07.2007
- Beiträge
- 1.781
- Reaktionspunkte
- 12
- Kommentare
- 93
- Buffs erhalten
- 29
DisableAllAddOns() und das selbe mit EnableAllAddOns() :-)
die sind an der minimap angemacht
DisableAllAddOns() und das selbe mit EnableAllAddOns() :-)
--gen healthbar func
lib.gen_hpbar = function(f)
--statusbar
local s = CreateFrame("StatusBar", nil, f)
s:SetStatusBarTexture(cfg.statusbar_texture)
s:SetHeight(f.height)
s:SetWidth(f.width)
s:SetPoint("CENTER",0,0)
--helper
local h = CreateFrame("Frame", nil, s)
h:SetFrameLevel(0)
h:SetPoint("TOPLEFT",-5,5)
h:SetPoint("BOTTOMRIGHT",5,-5)
lib.gen_backdrop(h)
--bg
local b = s:CreateTexture(nil, "BACKGROUND")
b:SetTexture(cfg.statusbar_texture)
b:SetAllPoints(s)
f.Health = s
f.Health.bg = b
end
--gen hp strings func
lib.gen_hpstrings = function(f)
--health/name text strings
local name = lib.gen_fontstring(f.Health, cfg.font, 14, "THINOUTLINE")
name:SetPoint("LEFT", f.Health, "LEFT", 2, 0)
name:SetJustifyH("LEFT")
local hpval = lib.gen_fontstring(f.Health, cfg.font, 14, "THINOUTLINE")
hpval:SetPoint("RIGHT", f.Health, "RIGHT", -2, 0)
--this will make the name go "..." when its to long
name:SetPoint("RIGHT", hpval, "LEFT", -5, 0)
f:Tag(name, "[name]")
f:Tag(hpval, "[curhp]/[perhp]%")
end
--gen healthbar func
lib.gen_ppbar = function(f)
--statusbar
local s = CreateFrame("StatusBar", nil, f)
s:SetStatusBarTexture(cfg.statusbar_texture)
s:SetHeight(f.height/5)
s:SetWidth(f.width)
s:SetPoint("TOP",f,"BOTTOM",0,-3)
--helper
local h = CreateFrame("Frame", nil, s)
h:SetFrameLevel(0)
h:SetPoint("TOPLEFT",-5,5)
h:SetPoint("BOTTOMRIGHT",5,-5)
lib.gen_backdrop(h)
--bg
local b = s:CreateTexture(nil, "BACKGROUND")
b:SetTexture(cfg.statusbar_texture)
b:SetAllPoints(s)
f.Power = s
f.Power.bg = b
end
das nützt uns nichts