Go to Page... |
Updated: | 05-08-08 06:47 AM |
Created: | unknown |
Downloads: | 2,054 |
Favorites: | 2 |
MD5: |
RCE
Using RCE
Introduction
RegisterCombatEvent
Details
The point of this library is to instead of having one large COMBAT_LOG_EVENT_UNFILTERED function with if-else checks for the event type, you can "register" the event types and set a function for each one.
Where as before you might have:
function CLEU(...) if arg2 == "SPELL_AURA_APPLIED" then do stuff elseif arg2 == "SPELL_AURA_REMOVED" then do other stuff end end
RCE:Embed(MyFrame) function Applied(self, ...) do stuff end function Removed(self, ...) do other stuff end function Missed(self, ...) do some more stuff end MyFrame:RegisterCombatEvent("SPELL_AURA_APPLIED", Applied) MyFrame:RegisterCombatEvent("SPELL_AURA_REMOVED", Removed) MyFrame:RegisterCombatEvents("SPELL_MISSED", "SPELL_CAST_FAILED", Missed)
There have been no comments posted to this file.
Be the first to add one. |