Further cleanup and seperation

This commit is contained in:
Hendrik Leppkes
2009-02-24 17:07:28 +01:00
parent 83926efad4
commit fe2cc6f24b
4 changed files with 12 additions and 26 deletions
+1 -10
View File
@@ -22,8 +22,7 @@ function ActionBar:ApplyConfig(config)
if not self.config.position.x then initialPosition(self) end
self:UpdateButtons()
self:UpdateSelfCast(true)
self:UpdateStates()
self:UpdateSelfCast() -- also calls UpdateStates
end
-- Update the number of buttons in our bar, creating new ones if necessary
@@ -68,9 +67,6 @@ function ActionBar:UpdateButtons(numbuttons)
-- need to re-set clickthrough after creating new buttons
self:SetClickThrough()
-- Also need to re-apply state fun to the new buttons, just to be sure.
self:UpdateStates()
end
function ActionBar:SkinChanged(...)
@@ -117,8 +113,3 @@ function ActionBar:SetGrid(state)
end
self:ForAll("UpdateGrid")
end
function ActionBar:UpdateSelfCast()
self:ForAll("UpdateSelfCast")
self:UpdateStates()
end