Originally Posted by haste
No, the event system is only set on the oUF objects. I did think about applying it to all elements that could use events, but it's not worth the overhead. Neither I am really sure of when you would want to register events upon a element, instead of oUF itself.
|
Just read that you can register multiple functions to the same event with :RegisterEvent('EVENT', func), so it wont be nessisary for the sub-object one.
Can easily do this for my druidpower function now.
Code:
self:RegisterEvent('UNIT_MANA', DruidPowerFunc)
self:RegisterEvent('UNIT_ENERGY', DruidPowerFunc)
self:RegisterEvent('PLAYER_LOGIN', DruidPowerFunc)
Right?