RegisterUnitEvent
We finally got it!
http://www.wowpedia.org/API_Frame_RegisterUnitEvent This could less Code:
if unit and unit ~= self.unit then return end |
Sorry zork, this was known since beta. :D
|
You could test https://github.com/Adirelle/oUF/tree...er_unit_events if you wish, haste mentioned he needs feedback with that.
|
What I don't really understand is oUF's event dispatcher already does what RegisterUnitEvent is supposed to. Yet you see a lot of 'if unit ~= self.unit' everywhere in layouts and even in oUF's own code.
|
All times are GMT -6. The time now is 05:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI