Mercurial > wow > askmrrobot
diff ui/Ui.lua @ 135:57be71eccc0a v63
Small azerite gear fix.
author | yellowfive |
---|---|
date | Sun, 12 Aug 2018 23:36:17 -0700 |
parents | a0894ffebd15 |
children | 35612aee8e15 |
line wrap: on
line diff
--- a/ui/Ui.lua Wed Jul 25 12:17:38 2018 -0700 +++ b/ui/Ui.lua Sun Aug 12 23:36:17 2018 -0700 @@ -364,7 +364,7 @@ if not self:IsEnabled() then return end Amr:Hide() - Amr:HideLootWindow() + --Amr:HideLootWindow() Amr:HideShopWindow() Amr.db.profile.options.uiScale = 1 Amr.db.profile.window = {} @@ -389,8 +389,10 @@ obj:SetUserData("ttItemLink", itemLink) obj:SetCallback("OnEnter", function(widget) local tooltipLink = widget:GetUserData("ttItemLink") - GameTooltip:SetOwner(widget.frame, anchor and anchor or "ANCHOR_CURSOR", x, y) - GameTooltip:SetHyperlink(tooltipLink) + if tooltipLink then + GameTooltip:SetOwner(widget.frame, anchor and anchor or "ANCHOR_CURSOR", x, y) + GameTooltip:SetHyperlink(tooltipLink) + end end) obj:SetCallback("OnLeave", function(widget) GameTooltip:Hide() @@ -401,8 +403,10 @@ obj:SetUserData("ttSpellId", spellId) obj:SetCallback("OnEnter", function(widget) local ttSpellId = widget:GetUserData("ttSpellId") - GameTooltip:SetOwner(widget.frame, anchor and anchor or "ANCHOR_CURSOR", x, y) - GameTooltip:SetSpellByID(ttSpellId) + if ttSpellId then + GameTooltip:SetOwner(widget.frame, anchor and anchor or "ANCHOR_CURSOR", x, y) + GameTooltip:SetSpellByID(ttSpellId) + end end) obj:SetCallback("OnLeave", function(widget) GameTooltip:Hide()