- 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
+13 -2
View File
@@ -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)