Mercurial > wow > reaction
diff modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 44:2232b8336903
- Added bar config tab
- rearranged locale string grouping
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 03 Apr 2008 23:17:47 +0000 |
parents | 11ddb9610770 |
children | aa0b7fd68462 |
line wrap: on
line diff
--- a/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Thu Apr 03 23:15:32 2008 +0000 +++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Thu Apr 03 23:17:47 2008 +0000 @@ -39,6 +39,30 @@ }, order = 1, }, + bar = { + type = "group", + name = L["Bar Settings"], + desc = L["Configuration settings for bars"], + childGroups = "select", + args = { + all = { + type = "group", + name = L["All Bars"], + desc = L["Settings applicable to all bars"], + args = { + foo = { + type = "toggle", + name = "foo", + desc = "description", + get = function() return true end, + set = function() end, + } + }, + order = 1 + } + }, + order = 2 + }, module = { type = "group", childGroups = "select", @@ -85,7 +109,9 @@ self.configOptions.args.profile.order = -2 LibStub("AceConfigRegistry-3.0"):RegisterOptionsTable("ReAction",self.configOptions) - LibStub("AceConfigDialog-3.0"):AddToBlizOptions("ReAction", "ReAction") + self.frame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("ReAction", "ReAction") + self.frame.obj.SetCallback(self,"default") + ReAction.RegisterCallback(self,"OnOptionsRegistered") ReAction.RegisterCallback(self,"OnOptionsRefreshed") end @@ -116,3 +142,9 @@ -- TODO: select the correct bar pane end end + +function module:default() + -- called from the Interface Options panel, this returns the current profile to the default + ReAction.db:ResetProfile() +end +