Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
161:d0a41fc7b0d7 | 162:fc08372f0c7a |
---|---|
36 ReAction.RegisterCallback(self, "OnDestroyBar") | 36 ReAction.RegisterCallback(self, "OnDestroyBar") |
37 ReAction.RegisterCallback(self, "OnRefreshBar") | 37 ReAction.RegisterCallback(self, "OnRefreshBar") |
38 ReAction.RegisterCallback(self, "OnEraseBar") | 38 ReAction.RegisterCallback(self, "OnEraseBar") |
39 ReAction.RegisterCallback(self, "OnRenameBar") | 39 ReAction.RegisterCallback(self, "OnRenameBar") |
40 | 40 |
41 -- TODO: register for learning new spells | 41 self:RegisterEvent("UPDATE_MULTI_CAST_ACTIONBAR","PLAYER_ENTERING_WORLD") |
42 end | 42 end |
43 | 43 |
44 function module:OnEnable() | 44 function module:OnEnable() |
45 ReAction:RegisterBarType(L["Totem Bar"], | 45 ReAction:RegisterBarType(L["Totem Bar"], |
46 { | 46 { |
129 for bar in pairs(self.buttons) do | 129 for bar in pairs(self.buttons) do |
130 self:OnRefreshBar(nil,bar,bar:GetName()) | 130 self:OnRefreshBar(nil,bar,bar:GetName()) |
131 end | 131 end |
132 end | 132 end |
133 | 133 |
134 function module:UPDATE_MULTI_CAST_ACTIONBAR() | |
135 if not InCombatLockdown() then | |
136 for bar in pairs(self.buttons) do | |
137 self:OnRefreshBar("OnRefreshBar", bar, bar:GetName()) | |
138 end | |
139 end | |
140 end | |
141 | |
142 function module:PLAYER_ENTERING_WORLD() | |
143 for bar in pairs(self.buttons) do | |
144 self:OnRefreshBar("OnRefreshBar", bar, bar:GetName()) | |
145 end | |
146 end | |
147 | |
134 | 148 |
135 ---- options ---- | 149 ---- options ---- |
136 function module:GetOptions() | 150 function module:GetOptions() |
137 return { | 151 return { |
138 stance = | 152 stance = |