Mercurial > wow > reaction
diff ReAction.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 | da8ba8783924 |
children | fc83b3f5b322 |
line wrap: on
line diff
--- a/ReAction.lua Tue Jun 24 23:47:27 2008 +0000 +++ b/ReAction.lua Wed Jun 25 21:07:18 2008 +0000 @@ -287,9 +287,9 @@ config.spacing = select(5,...) or config.spacing or 3 config.width = config.width or config.btnColumns*(config.btnWidth + config.spacing) + 1 config.height = config.height or config.btnRows*(config.btnHeight + config.spacing) + 1 - config.anchor = config.anchor or "BOTTOM" - config.anchorTo = config.anchorTo or "UIParent" - config.relativePoint = config.relativePoint or "BOTTOM" + config.anchor = config.anchor or "UIParent" + config.point = config.point or "BOTTOM" + config.relpoint = config.relpoint or "BOTTOM" config.y = config.y or 200 config.x = config.x or 0 end @@ -359,7 +359,7 @@ function ReAction:RegisterBarType( name, config, isDefaultChoice ) defaultBarConfig[name] = config if isDefaultChoice then - defaultBarConfigChoice = name + private.defaultBarConfigChoice = name end self:RefreshOptions() end @@ -462,6 +462,6 @@ CallModuleMethod("ConfigUI","OpenConfig") end -function ReAction:ShowEditor(bar) - CallModuleMethod("ConfigUI","LaunchBarEditor",bar) +function ReAction:ShowEditor(bar, ...) + CallModuleMethod("ConfigUI","LaunchBarEditor",bar, ...) end