Hide bars on non-units
Scott Sibley [08-06-10 - 14:20]
diff --git a/Modules/Bars.lua b/Modules/Bars.lua
index f7b8a81..5f0e911 100644
--- a/Modules/Bars.lua
+++ b/Modules/Bars.lua
@@ -144,6 +144,16 @@ function mod:SetUnit()
timer = timer or self:ScheduleRepeatingTimer(updateBars, .5)
end
+function mod:SetItem()
+ self.hpBar:Hide()
+ self.mpBar:Hide()
+end
+
+function mod:SetSpell()
+ self.hpBar:Hide()
+ self.mpBar:Hide()
+end
+
function mod:OnHide()
if timer then
self:CancelTimer(timer)
diff --git a/StarTip.lua b/StarTip.lua
index 3758667..ee19bb5 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -335,6 +335,8 @@ function StarTip:GameTooltipShow(...)
elseif show == 2 then -- only show out of combat
if InCombatLockdown() then
show = false
+ else
+ show = true
end
elseif show == 3 then -- never show
show = false