How does SetActionUIButton work?
I was analyzing ActionButton.lua and I've found that Blizzard uses something different for handling their action bar cooldowns instead of events (event code is there, but the following code suggests that they rewrote it):
Code:
--self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN"); not updating cooldown from lua anymore, see SetActionUIButton |
ActionButton.lua ~line 337
Code:
SetActionUIButton(self, action, self.cooldown); |
Here's my code and it does not work:
Code:
<CheckButton parent="UIParent"> Code:
function MUShieldSlam_OnLoad(self) |
All times are GMT -6. The time now is 01:44 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI