Initial abstraction of state code into StateBar prototype

This commit is contained in:
Hendrik Leppkes
2009-02-23 15:18:22 +01:00
parent 55225dcef4
commit d0f4650b58
5 changed files with 48 additions and 24 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
local ButtonBar = Bartender4.ButtonBar.prototype
local ActionBar = setmetatable({}, {__index = ButtonBar})
local StateBar = Bartender4.StateBar.prototype
local ActionBar = setmetatable({}, {__index = StateBar})
Bartender4.ActionBar = ActionBar
--[[===================================================================================
@@ -17,7 +17,7 @@ end
-- Apply the specified config to the bar and refresh all settings
function ActionBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
StateBar.ApplyConfig(self, config)
if not self.config.position.x then initialPosition(self) end
@@ -74,7 +74,7 @@ function ActionBar:UpdateButtons(numbuttons)
end
function ActionBar:SkinChanged(...)
ButtonBar.SkinChanged(self, ...)
StateBar.SkinChanged(self, ...)
self:ForAll("Update")
end