options for page swapping based on stance

This commit is contained in:
Hendrik Leppkes
2008-02-11 14:24:21 +00:00
parent 9102bb3f61
commit 80f0d3d811
5 changed files with 131 additions and 49 deletions
+7 -9
View File
@@ -65,17 +65,15 @@ function module:GetOptionsObject()
if not self.baroptions then
local obj = Bar.GetOptionObject(self)
local cat_general_visibility_en = {
local cat_general = {
enabled ={
order = 4,
name = "Enabled",
desc = "Enable/Disable the bar.",
type = "toggle",
set = optSetter,
get = optGetter,
}
obj:AddElement("general", "enabled", cat_general_visibility_en, "visibility")
local cat_general = {
},
padding = {
order = 40,
type = "range",
@@ -120,14 +118,14 @@ function module:GetOptionsObject()
}
obj:AddElementGroup("general", cat_general)
local swap = {
local states = {
type = "group",
name = "Page Swapping",
name = "State Configuration",
cmdInline = true,
order = 2,
args = self:GetStanceOptionsTable(),
args = self:GetStateOptionsTable(),
}
obj:NewCategory("swap", swap)
obj:NewCategory("state", states)
self.baroptions = obj
end