From b48ca1033509ccab704c822e9d4091a0ab4ac90c Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Tue, 18 Jan 2011 05:54:05 +0000 Subject: [PATCH] Cleanup some unused code, and prevent the invertedModifier value from influencing showing and hiding the tooltip when no modifiers are involved. --- StarTip.lua | 19 +------------------ StarTip.toc | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/StarTip.lua b/StarTip.lua index 661129b..b7bda23 100644 --- a/StarTip.lua +++ b/StarTip.lua @@ -441,23 +441,6 @@ function StarTip:OnInitialize() end local leftGameTooltipStrings, rightGameTooltipStrings = {}, {} - --[[self.leftLines = {} - self.rightLines = {} - setmetatable(self.leftLines, {__index=function(self, key) - if type(key) ~= "number" then return self[key] end - assert(type(key) == "number") - for i = #self, key + 1 do - if i > GameTooltip:NumLines() then - GameTooltip:AddDoubleLine(' ', ' ') - rawset(self.leftLines, key, _G["GameTooltipTextLeft" .. i]) - --rawset(self.rightLines, key, _G["GameTooltipTextRight" .. i]) - StarTip:Print("add line") - end - end - return self[key] - end}) - setmetatable(self.rightLines, getmetatable(self.leftLines)) - ]] self.leftLines = {} self.rightLines = {} for i = 1, 50 do @@ -785,7 +768,7 @@ function StarTip:GameTooltipShow(...) end if self.db.profile.modifierInverse then - show = not show + --show = not show end if not show or StarTip.tooltipHidden then GameTooltip:Hide(); return end diff --git a/StarTip.toc b/StarTip.toc index bee2567..ee66bd1 100644 --- a/StarTip.toc +++ b/StarTip.toc @@ -3,7 +3,7 @@ ## Notes: Tooltips from outerspace ## Author: Starlon ## Version: @project-version@ -## X-Category: Interface Enhancements, Tooltips +## X-Category: Tooltip ## X-License: GPL v3 ## X-Credits: ckknight for CowTip and DogTags ## OptionalDeps: Ace3, LibScriptableDisplay-1.0, ResourceServer, kgPanels, Skada -- 1.7.9.5