Mercurial > wow > reaction
changeset 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 | dc898780fea8 |
children | 38ee32135d86 |
files | locale/enUS.lua modules/ReAction_ConfigUI/ReAction_ConfigUI.lua |
diffstat | 2 files changed, 56 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/locale/enUS.lua Thu Apr 03 23:15:32 2008 +0000 +++ b/locale/enUS.lua Thu Apr 03 23:17:47 2008 +0000 @@ -9,6 +9,22 @@ -- ReAction.lua L["Bar "] = true L["ReAction: name already in use"] = true +L["ReAction config mode disabled during combat."] = true + +-- Bar.lua +L["Drag to add/remove buttons"] = true +L["Drag to resize buttons"] = true +L["Right-click-drag"] = true +L["to change spacing"] = true +L["Size:"] = true +L["Spacing:"] = true +L["Drag to move"] = true +L["Shift-drag for sticky mode"] = true +L["Right-click for options"] = true +L["Configure..."] = true +L["Open the configuration dialogue for this bar"] = true +L["Delete Bar"] = true +L["Remove the bar from the current profile"] = true -- modules/ReAction_HideBlizzard L["Hide Blizzard Action Bars"] = true @@ -20,42 +36,18 @@ -- modules/ReAction_ConfigUI L["Customizable replacement for Blizzard's Action Bars"] = true -L["Action Bars"] = true -L["Delete Bar"] = true -L["Remove the bar from the current profile"] = true -L["Rename Bar"] = true -L["Set a name for the bar"] = true - -- console commands -L["/reaction"] = true -L["/rxn"] = true -L["unlock"] = true -L["config"] = true - -- messages -L["ReAction config mode disabled during combat."] = true - -- tooltips -L["Drag to add/remove buttons"] = true -L["Drag to resize buttons"] = true -L["Right-click-drag"] = true -L["to change spacing"] = true -L["Size:"] = true -L["Spacing:"] = true -L["Drag to move"] = true -L["Shift-drag for sticky mode"] = true -L["Right-click for options"] = true - -- global options +L["Global Settings"] = true +L["Global configuration settings"] = true L["Unlock Bars"] = true L["Unlock bars for dragging and resizing with the mouse"] = true -L["Configure..."] = true -L["Open the configuration dialogue"] = true - -- bar menu options -L["Open the configuration dialogue for this bar"] = true - -- waterfall options -L["Global Settings"] = true -L["Global configuration settings"] = true L["Module Settings"] = true L["Configuration settings for each module"] = true -L["Bars"] = true +L["Bar Settings"] = true L["Configuration settings for bars"] = true +L["All Bars"] = true +L["Settings applicable to all bars"] = true +--L["Rename Bar"] = true +--L["Set a name for the bar"] = true -- modules/ReAction_State L["Dynamic Behavior"] = true
--- 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 +