Index: Bars.lua
===================================================================
--- Bars.lua (revision 6945)
+++ Bars.lua (working copy)
@@ -137,14 +137,20 @@
end
-function BigWigsBars:BigWigs_StartBar(module, text, time, bar, icon, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10)
+function BigWigsBars:BigWigs_StartBar(module, text, time, icon, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10)
if not text or not time then return end
local id = "BigWigsBar "..text
local u = self.db.profile.growup
+
+ if not module:IsCandyBarGroupRegistered(module.name) then
+ module:RegisterCandyBarGroup(module.name)
+ module:SetCandyBarGroupPoint(module.name, u and "BOTTOM" or "TOP", "BigWigsBarsAnchorFrame", u and "TOP" or "BOTTOM", 0, 21)
+ module:SetCandyBarGroupGrowth(module.name, u)
+ end
module:RegisterCandyBar(id, time, text, icon, c1, c2, c3, c4, c5, c6, c8, c9, c10)
- module:SetCandyBarPoint(id, u and "BOTTOM" or "TOP", "BigWigsBarsAnchorFrame", u and "TOP" or "BOTTOM", 0, (u and (-1) or 1) * ((bar or 0) * (-16) + 5))
module:SetCandyBarScale(id, self.db.profile.scale or 1)
+ module:RegisterCandyBarWithGroup(id, module.name)
module:StartCandyBar(id, true)
end