Cleanup some unused code, and prevent the invertedModifier value from influencing showing and hiding the tooltip when no modifiers are involved.
Scott Sibley [01-18-11 - 05:54]
Cleanup some unused code, and prevent the invertedModifier value from influencing showing and hiding the tooltip when no modifiers are involved.
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