re-commit new button code, now with more checks and fixes and whatnot

- sadly, hiding the macro text is currently defunct, will be fixed soon'ish
This commit is contained in:
Hendrik Leppkes
2008-06-16 20:58:36 +00:00
parent 8fa4195ba9
commit 9796afddac
4 changed files with 89 additions and 401 deletions
+3 -4
View File
@@ -171,10 +171,9 @@ function ActionBar:UpdateButtons(numbuttons)
-- show active buttons
for i = 1, numbuttons do
buttons[i]:SetParent(self)
buttons[i]:SetLevels()
self:SetAttribute("addchild", buttons[i])
buttons[i]:Show()
buttons[i]:UpdateAction(true)
buttons[i]:Update()
end
-- hide inactive buttons
@@ -252,7 +251,7 @@ function ActionBar:SetHideHotkey(state)
if state ~= nil then
self.config.hidehotkey = state
end
self:ForAll("Update")
self:ForAll("UpdateHotkey")
end
function ActionBar:GetHideHotkey()