Thread Tools Display Modes
Prev Previous Post   Next Post Next
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.
 
 

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


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