Mercurial > wow > reaction
diff State.lua @ 81:57f8151ea0f0
- Fixed some snafus with creating bars
- Added support for opening the bar editor to a particular path
- Creating bars/states now selects the new bar/state in the config editor
- moved Bar:SetStateAttribute() back to working optionally on buttons rather than buttonFrame container
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Wed, 25 Jun 2008 21:07:18 +0000 |
parents | 42ec2938d65a |
children | 1ad208c25618 |
line wrap: on
line diff
--- a/State.lua Tue Jun 24 23:47:27 2008 +0000 +++ b/State.lua Wed Jun 25 21:07:18 2008 +0000 @@ -151,7 +151,7 @@ table.insert(hs, state) end end - bar:SetStateAttribute("hidestates", nil, table.concat(hs,","), true) -- pass to buttons + bar:GetButtonFrame():SetAttribute("hidestates", table.concat(hs,",")) end, keybindstate = function( bar, states ) @@ -500,7 +500,7 @@ }, hide = { name = L["Hide Bar"], - order = 91, + order = 90, type = "toggle", set = "SetProp", get = "GetProp", @@ -508,14 +508,14 @@ keybindstate = { name = L["Override Keybinds"], desc = L["Set this state to maintain its own set of keybinds which override the defaults when active"], - order = 92, + order = 91, type = "toggle", set = "SetProp", get = "GetProp", }, position = { name = L["Position"], - order = 93, + order = 92, type = "group", inline = true, args = { @@ -574,7 +574,7 @@ }, scale = { name = L["Scale"], - order = 94, + order = 93, type = "group", inline = true, args = { @@ -1009,6 +1009,7 @@ -- TODO: select default state options and pass as final argument states[name] = { } optionMap[bar].args[name] = CreateStateOptions(bar,name) + ReAction:ShowEditor(bar, moduleID, name) private.newstatename = "" end end, @@ -1040,7 +1041,7 @@ -- -- The options table is static, i.e. not bar-specific and should only reference handler method -- strings (either existing ones or those added via optHandler). The existing options are ordered --- 91-100. Order #1 is reserved for the heading. +-- 90-99. Order #1 is reserved for the heading. -- -- The contents of optHandler, if provided, will be added to the existing StateHandler metatable. -- See above, for existing API. In particular see the properties set up in the New method: self.bar,