- 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
+10 -2
View File
@@ -14,6 +14,8 @@ local StanceButton_MT = {__index = StanceButtonPrototype}
local format = string.format
local LBF = LibStub("LibButtonFacade", true)
local defaults = { profile = Bartender4:Merge({
enabled = true,
scale = 1.5,
@@ -143,8 +145,6 @@ function StanceButtonPrototype:Update()
end
end
StanceButtonPrototype.ApplyStyle = Bartender4.ButtonStyle.ApplyStyle
function StanceButtonPrototype:GetHotkey()
local key = GetBindingKey(format("SHAPESHIFTBUTTON%d", self:GetID())) or GetBindingKey("CLICK "..self:GetName()..":LeftButton")
return key and KeyBound:ToShortKey(key)
@@ -208,6 +208,14 @@ function StanceBarMod:CreateStanceButton(id)
button.OnEnter = button:GetScript("OnEnter")
button:SetScript("OnEnter", onEnter)
if LBF then
local group = self.bar.LBFGroup
button.LBFButtonData = {
Button = button
}
group:AddButton(button, button.LBFButtonData)
end
return button
end