From 4ab763f776f6708de9b71d29c076a8655df968ef Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 24 Jul 2016 17:22:55 -0400 Subject: [PATCH] Updated for Legion -Updated TOC -Unified tooltip background with all my other addons -Added support for tekDebug --- LagBar.lua | 11 ++++++++--- LagBar.toc | 5 +++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/LagBar.lua b/LagBar.lua index c5dbaea..070b5cf 100644 --- a/LagBar.lua +++ b/LagBar.lua @@ -7,6 +7,11 @@ LagBar:SetScript('OnEvent', function(self, event, ...) end end) +local debugf = tekDebug and tekDebug:GetFrame("LagBar") +local function Debug(...) + if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end +end + if IsLoggedIn() then LagBar:PLAYER_LOGIN() else LagBar:RegisterEvent('PLAYER_LOGIN') end function LagBar:PLAYER_LOGIN() @@ -118,13 +123,13 @@ function LagBar:DrawGUI() LagBarFrame:SetWidth(30) if LagBar_DB.bgShown then - local backdrop_header = {bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", + local backdrop_header = {bgFile = "Interface\\TutorialFrame\\TutorialFrameBackground", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile=1, tileSize=16, edgeSize = 16, insets = {left = 5, right = 5, top = 5, bottom = 5}}; lbFrame:SetBackdrop(backdrop_header); - lbFrame:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b); - lbFrame:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b); + lbFrame:SetBackdropBorderColor(0.5, 0.5, 0.5); + lbFrame:SetBackdropColor(0.5, 0.5, 0.5, 0.6) else lbFrame:SetBackdrop(nil); end diff --git a/LagBar.toc b/LagBar.toc index 39d2c14..5237482 100644 --- a/LagBar.toc +++ b/LagBar.toc @@ -1,7 +1,8 @@ -## Interface: 60000 +## Interface: 70000 ## Title: LagBar ## Author: Xruptor -## Version: 3.3 +## Version: 3.4 ## Notes: Displays a simple bar with some Latency Information. +## OptionalDeps: tekDebug ## SavedVariables: LagBar_DB LagBar.lua -- 1.7.9.5