Thread Tools Display Modes
09-06-10, 12:58 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Unit Power Events

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")
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-06-10 at 01:16 PM.
 
09-06-10, 01:03 PM   #2
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
At the top of that page it says

UNIT_MANA, UNIT_ENERGY, UNIT_RAGE, UNIT_RUNIC_POWER, UNIT_FOCUS and UNIT_HAPPINESS events, as well as their UNIT_MAX* counterparts, no longer fire. UNIT_POWER and UNIT_MAXPOWER may be used instead.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
 
 

WoWInterface » AddOns, Compilations, Macros » Cataclysm Beta » Unit Power Events

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off