Mercurial > wow > reaction
diff modules/ReAction_ConfigUI/ReAction_ConfigUI.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/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Tue Jun 24 23:47:27 2008 +0000 +++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Wed Jun 25 21:07:18 2008 +0000 @@ -284,9 +284,9 @@ } AceConfigReg:RegisterOptionsTable(editorName, options) - function editor:Open(bar) + function editor:Open(bar, ...) if bar then - AceConfigDialog:SelectGroup(editorName, barOptMap[bar:GetName()]) + AceConfigDialog:SelectGroup(editorName, barOptMap[bar:GetName()], ...) end AceConfigDialog:Open(editorName,self) end @@ -467,6 +467,7 @@ function editor:CreateBar() if tmp.barName and tmp.barName ~= "" then ReAction:CreateBar(tmp.barName, tmp.barType or ReAction:GetDefaultBarType(), tmp.barRows, tmp.barCols, tmp.barSize, tmp.barSpacing) + AceConfigDialog:SelectGroup(editorName, barOptMap[tmp.barName]) tmp.barName = nil end end @@ -485,14 +486,14 @@ end -function module:LaunchBarEditor(bar) +function module:LaunchBarEditor(bar, ...) if InCombatLockdown() then ReAction:UserError(L["ReAction config mode disabled during combat."]) else if not self.editor then self.editor = NewEditor() end - self.editor:Open(bar) + self.editor:Open(bar, ...) ReAction:SetConfigMode(true) end end