- remove cyCircled support

- add preliminary ButtonFacade support (still some bugs in it)
- this also replaces the built-in skin selection for the bars (for now)
This commit is contained in:
Hendrik Leppkes
2008-04-11 17:14:46 +00:00
parent 8b4d98cce6
commit acbaae01eb
9 changed files with 47 additions and 122 deletions
+14
View File
@@ -61,6 +61,9 @@ function BT4ActionBars:OnInitialize()
ActionBar_MT = {__index = ActionBar}
end
local LBF = LibStub("LibButtonFacade", true)
-- setup the 10 actionbars
local first = true
function BT4ActionBars:OnEnable()
@@ -77,6 +80,10 @@ function BT4ActionBars:OnEnable()
end
end
if LBF then
LBF:RegisterSkinCallback("Bartender4", self.UpdateSkin, self)
end
first = nil
end
@@ -132,6 +139,13 @@ function BT4ActionBars:ApplyConfig()
end
end
function BT4ActionBars:UpdateSkin(SkinID, Gloss, Backdrop, Group, Button)
local id = tonumber(Group)
if id and self.actionbars[id] then
self.actionbars[id]:ForAll("Update")
end
end
-- we do not allow to disable the actionbars module
function BT4ActionBars:ToggleModule()
return