From b4d52ecc09c8e1fbfa94afcb0c2b6866c7019696 Mon Sep 17 00:00:00 2001 From: Mikeprod Date: Wed, 16 Nov 2016 10:07:27 +0100 Subject: [PATCH] Fix with XP tooltip --- modules/currency.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/currency.lua b/modules/currency.lua index 91bd872..7612496 100644 --- a/modules/currency.lua +++ b/modules/currency.lua @@ -207,7 +207,7 @@ function CurrencyModule:RegisterFrameEvents() if InCombatLockdown() then return; end local db = xb.db.profile self.curText[i]:SetTextColor(db.color.inactive.r, db.color.inactive.g, db.color.inactive.b, db.color.inactive.a) - if xb.db.profile.modules.currency.showTooltip then + if db.modules.currency.showTooltip then GameTooltip:Hide() end end) @@ -236,13 +236,18 @@ function CurrencyModule:RegisterFrameEvents() self.xpFrame:SetScript('OnEnter', function() if InCombatLockdown() then return; end self.xpText:SetTextColor(unpack(xb:HoverColors())) - self:ShowTooltip() + if xb.db.profile.modules.currency.showTooltip then + self:ShowTooltip() + end end) self.xpFrame:SetScript('OnLeave', function() if InCombatLockdown() then return; end local db = xb.db.profile self.xpText:SetTextColor(db.color.inactive.r, db.color.inactive.g, db.color.inactive.b, db.color.inactive.a) + if xb.db.profile.modules.currency.showTooltip then + GameTooltip:Hide() + end end) self:RegisterMessage('XIVBar_FrameHide', function(_, name) -- 1.7.9.5