Mercurial > wow > reaction
diff modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 91:c2504a8b996c
Bug fixes
- action buttons resetting to 6 pixels
- stray prints
- config panels for action buttons not showing all panels
- fixed multi-ID typo
- fixed autocast model on pet buttons
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 17 Oct 2008 03:59:55 +0000 |
parents | 7cabc8ac6c16 |
children | 5f1d7a81317c |
line wrap: on
line diff
--- a/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Wed Oct 15 16:29:41 2008 +0000 +++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Fri Oct 17 03:59:55 2008 +0000 @@ -425,7 +425,10 @@ end function editor:OnCreateBar(evt, bar) - self:CreateBarTree(bar) + if not tmp.creating then + -- a bit of hack to work around OnCreateBar event handler ordering + self:CreateBarTree(bar) + end end function editor:OnDestroyBar(evt, bar, name) @@ -473,9 +476,12 @@ 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) + tmp.creating = true + local bar = ReAction:CreateBar(tmp.barName, tmp.barType or ReAction:GetDefaultBarType(), tmp.barRows, tmp.barCols, tmp.barSize, tmp.barSpacing) + self:CreateBarTree(bar) AceConfigDialog:SelectGroup(editorName, barOptMap[tmp.barName]) tmp.barName = nil + tmp.creating = false end end