comparison 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
comparison
equal deleted inserted replaced
90:7cabc8ac6c16 91:c2504a8b996c
423 AceConfigReg:NotifyChange(editorName) 423 AceConfigReg:NotifyChange(editorName)
424 end 424 end
425 end 425 end
426 426
427 function editor:OnCreateBar(evt, bar) 427 function editor:OnCreateBar(evt, bar)
428 self:CreateBarTree(bar) 428 if not tmp.creating then
429 -- a bit of hack to work around OnCreateBar event handler ordering
430 self:CreateBarTree(bar)
431 end
429 end 432 end
430 433
431 function editor:OnDestroyBar(evt, bar, name) 434 function editor:OnDestroyBar(evt, bar, name)
432 local key = barOptMap[name] 435 local key = barOptMap[name]
433 if key then 436 if key then
471 return ReAction:GetBarTypeOptions(_scratch) 474 return ReAction:GetBarTypeOptions(_scratch)
472 end 475 end
473 476
474 function editor:CreateBar() 477 function editor:CreateBar()
475 if tmp.barName and tmp.barName ~= "" then 478 if tmp.barName and tmp.barName ~= "" then
476 ReAction:CreateBar(tmp.barName, tmp.barType or ReAction:GetDefaultBarType(), tmp.barRows, tmp.barCols, tmp.barSize, tmp.barSpacing) 479 tmp.creating = true
480 local bar = ReAction:CreateBar(tmp.barName, tmp.barType or ReAction:GetDefaultBarType(), tmp.barRows, tmp.barCols, tmp.barSize, tmp.barSpacing)
481 self:CreateBarTree(bar)
477 AceConfigDialog:SelectGroup(editorName, barOptMap[tmp.barName]) 482 AceConfigDialog:SelectGroup(editorName, barOptMap[tmp.barName])
478 tmp.barName = nil 483 tmp.barName = nil
484 tmp.creating = false
479 end 485 end
480 end 486 end
481 487
482 ReAction.RegisterCallback(editor,"OnCreateBar") 488 ReAction.RegisterCallback(editor,"OnCreateBar")
483 ReAction.RegisterCallback(editor,"OnDestroyBar") 489 ReAction.RegisterCallback(editor,"OnDestroyBar")