Skip to content

Instantly share code, notes, and snippets.

@ccshiro
Created August 17, 2015 23:31
Show Gist options
  • Save ccshiro/612281b4201e93dbb313 to your computer and use it in GitHub Desktop.
Save ccshiro/612281b4201e93dbb313 to your computer and use it in GitHub Desktop.
function handler(this, event, ...)
DEFAULT_CHAT_FRAME:AddMessage(event);
end
local frame = CreateFrame("Frame", "LeTestingAddon");
frame:SetScript("OnEvent", handler);
frame:RegisterEvent("UNIT_SPELLCAST_START");
frame:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");
frame:RegisterEvent("UNIT_SPELLCAST_DELAYED");
frame:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED");
frame:RegisterEvent("UNIT_SPELLCAST_FAILED");
frame:RegisterEvent("UNIT_SPELLCAST_FAILED_QUIET");
frame:RegisterEvent("UNIT_SPELLCAST_STOP");
frame:RegisterEvent("UNIT_SPELLCAST_SENT");
## Interface: 20400
## Title: Testing
## Author: Shiro
## Notes: Just testing.
Testing.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment