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
+17 -11
View File
@@ -4,15 +4,6 @@ local BT4ActionBars = Bartender4:NewModule("ActionBars")
local ActionBar, ActionBar_MT
local statedefaults = {
enabled = true,
stance = {
DRUID = { bear = 9, cat = 7, prowl = 8 },
WARRIOR = { battle = 7, def = 8, berserker = 9 },
ROGUE = { stealth = 7 }
},
}
local abdefaults = Bartender4:Merge({
['**'] = {
enabled = true,
@@ -21,10 +12,25 @@ local abdefaults = Bartender4:Merge({
rows = 1,
hidemacrotext = false,
showgrid = false,
states = { enabled = false, stance = {} },
states = {
enabled = false,
stance = {
default = 0,
['**'] = {
['*'] = 0,
},
},
},
},
[1] = {
states = statedefaults,
states = {
enabled = true,
stance = {
DRUID = { bear = 9, cat = 7, prowl = 8 },
WARRIOR = { battle = 7, def = 8, berserker = 9 },
ROGUE = { stealth = 7 }
},
},
},
[7] = {
enabled = false,