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
+2 -2
View File
@@ -23,7 +23,7 @@ local abdefaults = {
},
},
},
}, Bartender4.ButtonBar.defaults),
}, Bartender4.StateBar.defaults),
[1] = {
states = {
enabled = true,
@@ -188,7 +188,7 @@ end
-- Creates a new bar object based on the id and the specified config
function BT4ActionBars:Create(id, config)
local id = tostring(id)
local bar = setmetatable(Bartender4.ButtonBar:Create(id, config, (L["Bar %s"]):format(id)), ActionBar_MT)
local bar = setmetatable(Bartender4.StateBar:Create(id, config, (L["Bar %s"]):format(id)), ActionBar_MT)
bar.module = self
self:CreateBarOption(id)