Quantcast

Added support for tekDebug

Xruptor [07-24-16 - 20:52]
Added support for tekDebug
Filename
RightClickSelfCast.lua
RightClickSelfCast.toc
diff --git a/RightClickSelfCast.lua b/RightClickSelfCast.lua
index 77d29a6..0713655 100644
--- a/RightClickSelfCast.lua
+++ b/RightClickSelfCast.lua
@@ -14,6 +14,11 @@ local bars = {
 local f = CreateFrame("frame","RightClickSelfCast",UIParent)
 f:SetScript("OnEvent", function(self, event, ...) self[event](self, ...) end)

+local debugf = tekDebug and tekDebug:GetFrame("RightClickSelfCast")
+local function Debug(...)
+    if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end
+end
+
 function f:PLAYER_REGEN_ENABLED()
 	self:PLAYER_LOGIN()
 	self:UnregisterEvent("PLAYER_REGEN_ENABLED")
diff --git a/RightClickSelfCast.toc b/RightClickSelfCast.toc
index aa6c2a6..139ca22 100644
--- a/RightClickSelfCast.toc
+++ b/RightClickSelfCast.toc
@@ -1,7 +1,8 @@
 ## Interface: 70000
 ## Title: RightClickSelfCast
 ## Author: Xruptor
-## Version:  2.8
+## Version:  2.9
 ## Notes: Makes all the Blizzard actionbars always self-cast on right-click (regardless of current target)
+## OptionalDeps: tekDebug

 RightClickSelfCast.lua
\ No newline at end of file