From 9e2c4309dcbbb8b4d02c03166e3bbc5df1b117d3 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 24 Jul 2016 17:26:40 -0400 Subject: [PATCH] Updated for Legion -Updated TOC for Legion -Added support for tekDebug --- XanDurability.lua | 5 +++++ XanDurability.toc | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/XanDurability.lua b/XanDurability.lua index 3c09708..9dfcd76 100644 --- a/XanDurability.lua +++ b/XanDurability.lua @@ -8,6 +8,11 @@ local f = CreateFrame("frame","xanDurability",UIParent) f:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end) +local debugf = tekDebug and tekDebug:GetFrame("xanDurability") +local function Debug(...) + if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end +end + --repair variables local equipCost = 0; local bagCost = 0; diff --git a/XanDurability.toc b/XanDurability.toc index 8fd8d18..6965274 100644 --- a/XanDurability.toc +++ b/XanDurability.toc @@ -1,8 +1,9 @@ -## Interface: 60000 +## Interface: 70000 ## Title: xanDurability ## Notes: A small window that displays the total current armour durability. ## Author: Xruptor -## Version: 2.8 +## Version: 3.0 +## OptionalDeps: tekDebug ## SavedVariablesPerCharacter: XanDUR_DB xanDurability.lua -- 1.7.9.5