- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user