From c9b9f8cef1a1d0dc78b99f34bdefee41f895fbb5 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 24 Jul 2016 16:52:20 -0400 Subject: [PATCH] Added support for tekDebug --- RightClickSelfCast.lua | 5 +++++ RightClickSelfCast.toc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.9.5