comparison modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 92:5f1d7a81317c

- Various bugfixes - Switched action bar paging/mc fully to the _childupdate method
author Flick <flickerstreak@gmail.com>
date Fri, 17 Oct 2008 22:43:57 +0000
parents c2504a8b996c
children 890e4c4ab143
comparison
equal deleted inserted replaced
91:c2504a8b996c 92:5f1d7a81317c
126 -- use a local GUI container to work around AceConfigDialog closing 126 -- use a local GUI container to work around AceConfigDialog closing
127 -- both the bar editor and the global options when interface options is closed 127 -- both the bar editor and the global options when interface options is closed
128 local editor = LibStub("AceGUI-3.0"):Create("Frame") 128 local editor = LibStub("AceGUI-3.0"):Create("Frame")
129 local frame = editor.frame 129 local frame = editor.frame
130 frame:SetClampedToScreen(true) 130 frame:SetClampedToScreen(true)
131 frame:Hide()
131 local old_OnUpdate = frame:GetScript("OnUpdate") 132 local old_OnUpdate = frame:GetScript("OnUpdate")
132 frame:SetScript("OnUpdate", function(dt) 133 frame:SetScript("OnUpdate", function(dt)
133 if old_OnUpdate then 134 if old_OnUpdate then
134 old_OnUpdate(dt) 135 old_OnUpdate(dt)
135 end 136 end
293 } 294 }
294 } 295 }
295 AceConfigReg:RegisterOptionsTable(editorName, options) 296 AceConfigReg:RegisterOptionsTable(editorName, options)
296 297
297 function editor:Open(bar, ...) 298 function editor:Open(bar, ...)
299 if not frame:IsVisible() then
300 AceConfigDialog:Open(editorName,self)
301 end
298 if bar then 302 if bar then
299 AceConfigDialog:SelectGroup(editorName, barOptMap[bar:GetName()], ...) 303 AceConfigDialog:SelectGroup(editorName, barOptMap[bar:GetName()], ...)
300 end 304 end
301 AceConfigDialog:Open(editorName,self)
302 end 305 end
303 306
304 function editor:Refresh() 307 function editor:Refresh()
305 AceConfigReg:NotifyChange(editorName) 308 AceConfigReg:NotifyChange(editorName)
306 end 309 end