first set of fixes for WotlK

- conditional show/hide of bars is still broken
- page swapping in any form is broken as well
This commit is contained in:
Hendrik Leppkes
2008-08-05 16:09:04 +00:00
parent 85801dc74d
commit b0dbd42aa8
3 changed files with 12 additions and 6 deletions
+7 -3
View File
@@ -85,8 +85,6 @@ function Bartender4.Button:Create(id, parent)
button.textureCache.pushed = button.pushedTexture:GetTexture()
button.textureCache.highlight = button.highlightTexture:GetTexture()
parent:SetAttribute("addchild", button)
button:SetAttribute("type", "action")
button:SetAttribute("action", absid)
@@ -94,6 +92,12 @@ function Bartender4.Button:Create(id, parent)
button:SetAttribute("useparent-statebutton", true)
--button:SetAttribute("hidestates", "-1")
parent:SetAttribute('_adopt', button)
button:SetAttribute('_childupdate', [[
self:SetAttribute("state",)
]]
)
button:RegisterForDrag("LeftButton", "RightButton")
button:RegisterForClicks("AnyUp")
@@ -222,7 +226,7 @@ function Button:RefreshStateAction(state)
if self.parent.config.autoassist then
local type, id, subtype = GetActionInfo(action)
if type == "spell" then
if type == "spell" and id > 0 then
local spellName, spellRank = GetSpellInfo(id, subtype)
local macroText