From bf6678844140fc24f8782b16f1ad3e1dda31e123 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 13 Nov 2016 19:40:29 +0100 Subject: [PATCH] xpbar: hide reputation bar while not tracking any faction --- modules/xpbar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/xpbar.lua b/modules/xpbar.lua index af2f3769..ea0f9dd1 100644 --- a/modules/xpbar.lua +++ b/modules/xpbar.lua @@ -149,9 +149,6 @@ pfUI:RegisterModule("xpbar", function () pfUI.rep:EnableMouse() pfUI.rep:SetScript("OnEnter", function() - pfUI.rep.mouseover = true - pfUI.rep:SetAlpha(1) - for i=1, GetNumFactions() do local name, description, standingID, barMin, barMax, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed, isWatched = GetFactionInfo(i) if isWatched then @@ -169,6 +166,9 @@ pfUI:RegisterModule("xpbar", function () GameTooltip:AddLine(name .. " (" .. GetText("FACTION_STANDING_LABEL"..standingID, gender) .. ")", color.r + .3, color.g + .3, color.b + .3) GameTooltip:AddLine(barValue .. " / " .. barMax .. " (" .. round(barValue / barMax * 100) .. "%)",1,1,1) GameTooltip:Show() + + pfUI.rep.mouseover = true + pfUI.rep:SetAlpha(1) end end end)