Initial abstraction of state code into StateBar prototype
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user