Mercurial > wow > reaction
diff modules/Totem.lua @ 162:fc08372f0c7a
- Fixed icon behavior with buttonfacade
- Fixed bad usage of IsAttackAction() API (and various others) by trimming event list
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 21 Aug 2009 23:50:17 +0000 |
parents | d0a41fc7b0d7 |
children | ab5c37989986 |
line wrap: on
line diff
--- a/modules/Totem.lua Fri Aug 21 04:15:09 2009 +0000 +++ b/modules/Totem.lua Fri Aug 21 23:50:17 2009 +0000 @@ -38,7 +38,7 @@ ReAction.RegisterCallback(self, "OnEraseBar") ReAction.RegisterCallback(self, "OnRenameBar") - -- TODO: register for learning new spells + self:RegisterEvent("UPDATE_MULTI_CAST_ACTIONBAR","PLAYER_ENTERING_WORLD") end function module:OnEnable() @@ -131,6 +131,20 @@ end end +function module:UPDATE_MULTI_CAST_ACTIONBAR() + if not InCombatLockdown() then + for bar in pairs(self.buttons) do + self:OnRefreshBar("OnRefreshBar", bar, bar:GetName()) + end + end +end + +function module:PLAYER_ENTERING_WORLD() + for bar in pairs(self.buttons) do + self:OnRefreshBar("OnRefreshBar", bar, bar:GetName()) + end +end + ---- options ---- function module:GetOptions()