From 1f433930089d303a01238885a30fae29a6b2a796 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 24 Jul 2016 16:53:12 -0400 Subject: [PATCH] Added support for tekDebug --- xanMortarPestle.lua | 5 +++++ xanMortarPestle.toc | 1 + 2 files changed, 6 insertions(+) diff --git a/xanMortarPestle.lua b/xanMortarPestle.lua index ed11d89..6f72d47 100644 --- a/xanMortarPestle.lua +++ b/xanMortarPestle.lua @@ -11,6 +11,11 @@ local colors = { [1804] = {r=200/255, g=75/255, b=75/255}, --lock picking (Thanks to kaisoul) } +local debugf = tekDebug and tekDebug:GetFrame("xanMortarPestle") +local function Debug(...) + if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end +end + --[[------------------------ LOCALIZATION --------------------------]] diff --git a/xanMortarPestle.toc b/xanMortarPestle.toc index dcf206b..9451d44 100644 --- a/xanMortarPestle.toc +++ b/xanMortarPestle.toc @@ -3,6 +3,7 @@ ## Notes: Mill/Prospect/Disenchant using (Alt + Right-Click) on an item. ## Author: Xruptor ## Version: 3.0 +## OptionalDeps: tekDebug ## SavedVariables: XMP_DB xanMortarPestle.lua -- 1.7.9.5