Mercurial > wow > reaction
diff State.lua @ 77:da8ba8783924
- added revision updater to each code file
- Changed button/bar class mechanic to metatable-based
- Changed buttons to live within a sub-frame, to play nicely between show-empty-buttons and hidestates
- bar frame is now available only via accessor
- Changed some semantics with AddButton/PlaceButton
- Cleaned up action buttons options, fixed hide-when-empty option
- moved show-action-ID-label as a button method
- converted drag overlay from nested-frame to :Raise()
- fixed ReAction:SetConfigMode() to not call event when mode doesn't change
- Fixed ordering for dynamic state tab (always last)
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 23 Jun 2008 22:27:50 +0000 |
parents | 06cd74bdc7da |
children | a45255f5d0c2 |
line wrap: on
line diff
--- a/State.lua Thu Jun 19 17:48:57 2008 +0000 +++ b/State.lua Mon Jun 23 22:27:50 2008 +0000 @@ -10,6 +10,8 @@ local InCombatLockdown = InCombatLockdown local format = string.format +ReAction:UpdateRevision("$Revision: 103 $") + -- module declaration local moduleID = "State" local module = ReAction:NewModule( moduleID, "AceEvent-3.0" ) @@ -172,7 +174,7 @@ -- ?? button:UpdateBindingSet(kbset) end end - bar:SetStateAttribute("statebindings", map) + bar:SetStateAttribute("statebindings", map, true) -- apply to button frame, bindings only work for direct children end, enableAnchor = function( bar, states ) @@ -902,8 +904,9 @@ local private = { } local states = tbuild(module.db.profile.bars, bar:GetName(), "states") local options = { + name = L["Dynamic State"], type = "group", - name = L["Dynamic State"], + order = -1, childGroups = "tree", disabled = InCombatLockdown, args = {