- 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:
+13
-2
@@ -15,6 +15,8 @@ local format = string.format
|
||||
local IsUsableAction = IsUsableAction
|
||||
local IsActionInRange = IsActionInRange
|
||||
|
||||
local LBF = LibStub("LibButtonFacade", true)
|
||||
|
||||
Bartender4.Button = {}
|
||||
Bartender4.Button.prototype = Button
|
||||
function Bartender4.Button:Create(id, parent)
|
||||
@@ -100,6 +102,17 @@ function Bartender4.Button:Create(id, parent)
|
||||
--button:Show()
|
||||
--button:UpdateAction(true)
|
||||
|
||||
if LBF and parent.LBFGroup then
|
||||
local group = parent.LBFGroup
|
||||
button.LBFButtonData = {
|
||||
Button = button.Proxy,
|
||||
Highlight = button:GetHighlightTexture(),
|
||||
Pushed = button:GetPushedTexture(),
|
||||
Checked = button:GetCheckedTexture(),
|
||||
}
|
||||
group:AddButton(button.Proxy, button.LBFButtonData)
|
||||
end
|
||||
|
||||
return button
|
||||
end
|
||||
|
||||
@@ -167,8 +180,6 @@ function onUpdate(self, elapsed)
|
||||
end
|
||||
end
|
||||
|
||||
Button.ApplyStyle = Bartender4.ButtonStyle.ApplyStyle
|
||||
|
||||
function Button:SetStateAction(state, action)
|
||||
for i=1,2 do
|
||||
self:SetAttribute(("*action-S%d%d"):format(state, i), action)
|
||||
|
||||
Reference in New Issue
Block a user