Anyone know the new events for unit power?
Having trouble with them, because they do not fire.
Currently using
Code:
self.power_ring:RegisterEvent("UNIT_MANA")
self.power_ring:RegisterEvent("UNIT_RAGE")
self.power_ring:RegisterEvent("UNIT_ENERGY")
self.power_ring:RegisterEvent("UNIT_FOCUS")
self.power_ring:RegisterEvent("UNIT_RUNIC_POWER")
self.power_ring:RegisterEvent("PLAYER_ENTERING_WORLD")
self.power_ring:RegisterEvent("UNIT_MAXMANA")
self.power_ring:RegisterEvent("UNIT_MAXRAGE")
self.power_ring:RegisterEvent("UNIT_MAXFOCUS")
self.power_ring:RegisterEvent("UNIT_MAXENERGY")
self.power_ring:RegisterEvent("UNIT_DISPLAYPOWER")
self.power_ring:RegisterEvent("UNIT_MAXRUNIC_POWER")
The picture is my ringmod. I'm currently adding the spark texture to make it look even cooler.
...
Narf, me dumb!
Code:
REMOVED UNIT_ENERGY
REMOVED UNIT_FOCUS
REMOVED UNIT_HAPPINESS
REMOVED UNIT_MAXENERGY
REMOVED UNIT_MAXFOCUS
REMOVED UNIT_MAXHAPPINESS
REMOVED UNIT_MAXMANA
REMOVED UNIT_MAXRAGE
REMOVED UNIT_MAXRUNIC_POWER
REMOVED UNIT_RAGE
REMOVED UNIT_RUNIC_POWER
Source:
http://www.wowwiki.com/Patch_4.0.1/API_changes
Searching for the new event...Cpt. Obvious
Code:
self.power_ring:RegisterEvent("UNIT_POWER")
self.power_ring:RegisterEvent("UNIT_MAXPOWER")