dummy stancebar module
This commit is contained in:
+4
-4
@@ -4,8 +4,8 @@ local BT4ActionBars = Bartender4:NewModule("ActionBars")
|
||||
|
||||
local ActionBar, ActionBar_MT
|
||||
|
||||
local abdefaults = Bartender4:Merge({
|
||||
['**'] = {
|
||||
local abdefaults = {
|
||||
['**'] = Bartender4:Merge({
|
||||
enabled = true,
|
||||
buttons = 12,
|
||||
hidemacrotext = false,
|
||||
@@ -20,7 +20,7 @@ local abdefaults = Bartender4:Merge({
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}, Bartender4.ButtonBar.defaults),
|
||||
[1] = {
|
||||
states = {
|
||||
enabled = true,
|
||||
@@ -43,7 +43,7 @@ local abdefaults = Bartender4:Merge({
|
||||
[10] = {
|
||||
enabled = false,
|
||||
},
|
||||
}, Bartender4.ButtonBar.defaults)
|
||||
}
|
||||
|
||||
local defaults = {
|
||||
profile = {
|
||||
|
||||
@@ -12,11 +12,9 @@ local Bar_MT = {__index = Bar}
|
||||
===================================================================================]]--
|
||||
|
||||
local defaults = {
|
||||
['**'] = {
|
||||
scale = 1,
|
||||
alpha = 1,
|
||||
show = true,
|
||||
}
|
||||
scale = 1,
|
||||
alpha = 1,
|
||||
show = true
|
||||
}
|
||||
|
||||
local barregistry = {}
|
||||
|
||||
@@ -26,3 +26,4 @@ Button.lua
|
||||
ActionBars.lua
|
||||
ActionBarPrototype.lua
|
||||
ActionBarStates.lua
|
||||
StanceBar.lua
|
||||
|
||||
+3
-5
@@ -1,4 +1,4 @@
|
||||
--[[ $Id: ActionBars.lua 60964 2008-02-11 18:12:12Z nevcairiel $ ]]
|
||||
--[[ $Id$ ]]
|
||||
|
||||
--[[ Generic Template for a Bar which contains Buttons ]]
|
||||
|
||||
@@ -7,10 +7,8 @@ local ButtonBar = setmetatable({}, {__index = Bar})
|
||||
local ButtonBar_MT = {__index = ButtonBar}
|
||||
|
||||
local defaults = Bartender4:Merge({
|
||||
['**'] = {
|
||||
padding = 2,
|
||||
rows = 1,
|
||||
}
|
||||
padding = 2,
|
||||
rows = 1
|
||||
}, Bartender4.Bar.defaults)
|
||||
|
||||
Bartender4.ButtonBar = {}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
Button Style Template
|
||||
]]
|
||||
|
||||
--[[ $Id: Button.lua 60943 2008-02-11 14:24:21Z nevcairiel $ ]]
|
||||
--[[ $Id$ ]]
|
||||
|
||||
Bartender4.ButtonStyle = {}
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local StanceBar = Bartender4:NewModule("StanceBar")
|
||||
local ActionBars = Bartender4:GetModule("ActionBars")
|
||||
|
||||
local defaults = { profile = Bartender4:Merge({ enabled = true }, Bartender4.ButtonBar.defaults) }
|
||||
|
||||
function StanceBar:OnInitialize()
|
||||
self.db = Bartender4.db:RegisterNamespace("StanceBar", defaults)
|
||||
|
||||
self:SetupOptions()
|
||||
end
|
||||
|
||||
function StanceBar:OnEnable()
|
||||
self.bar = Bartender4.ButtonBar:Create("stance", nil, self.db.profile)
|
||||
self.buttons = {}
|
||||
self.bar:ApplyConfig()
|
||||
end
|
||||
|
||||
function StanceBar:SetupOptions()
|
||||
self.options = Bartender4.ButtonBar.prototype:GetOptionObject()
|
||||
ActionBars.options.args["stance"] = {
|
||||
order = 30,
|
||||
type = "group",
|
||||
name = "Stance Bar",
|
||||
desc = "Configure the Stance Bar",
|
||||
childGroups = "tab",
|
||||
}
|
||||
ActionBars.options.args["stance"].args = self.options.table
|
||||
end
|
||||
Reference in New Issue
Block a user