Mercurial > wow > reaction
diff modules/ConfigUI.lua @ 184:1ee86bbb05a0
more options rearranging
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 22 Oct 2010 16:03:04 +0000 |
parents | 55c2fc0c8d55 |
children |
line wrap: on
line diff
--- a/modules/ConfigUI.lua Fri Oct 22 15:56:08 2010 +0000 +++ b/modules/ConfigUI.lua Fri Oct 22 16:03:04 2010 +0000 @@ -12,9 +12,6 @@ local AceConfigReg = LibStub("AceConfigRegistry-3.0") local AceConfigDialog = LibStub("AceConfigDialog-3.0") --- some constants -local configName = "ReAction" - -- module declaration local moduleID = "ConfigUI" local module = ReAction:NewModule( moduleID, @@ -26,7 +23,6 @@ self.db = ReAction.db:RegisterNamespace( moduleID, { profile = { - closeOnLaunch = true, editorCloseOnLaunch = true, } } @@ -47,23 +43,6 @@ end end -function module:OptionShowEditor() - self:LaunchBarEditor() - -- you can't close a dialog in response to an options click, because the end of the - -- handler for all the button events calls lib:Open() - -- So, schedule a close on the next OnUpdate - if self.db.profile.closeOnLaunch then - self.editor.closePending = true - end -end - -function module:OptionGetCloseThis() - return self.db.profile.closeOnLaunch -end - -function module:OptionSetCloseThis(info,val) - self.db.profile.closeOnLaunch = val -end @@ -88,8 +67,6 @@ } - -- use a local GUI container to work around AceConfigDialog closing - -- both the bar editor and the global options when interface options is closed local editor = LibStub("AceGUI-3.0"):Create("Frame") local frame = editor.frame frame:SetClampedToScreen(true) @@ -99,13 +76,8 @@ if old_OnUpdate then old_OnUpdate(dt) end - if editor.closePending then - InterfaceOptionsFrame:Hide() - editor.closePending = false - end if editor.selfClosePending then editor:Hide() - AceConfigReg:NotifyChange(configName) editor.selfClosePending = false end end )