From 4178c488dfe15b206174b9f735b0b59464c09181 Mon Sep 17 00:00:00 2001 From: Anch Date: Thu, 22 Sep 2022 12:50:06 +1200 Subject: [PATCH] added tooltip to wishlist button --- .../DefaultFrame/AtlaslootDefaultFrameCreate.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua index 623f3bf..112c131 100644 --- a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua +++ b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua @@ -319,6 +319,17 @@ local wishbtn = CreateFrame("Button", "AtlasLootDefaultFrameWishListButton", Atl wishbtn:RegisterForClicks("LeftButtonDown","RightButtonDown"); wishbtn:SetScript("OnClick", function(self, btnclick)AtlasLoot:WishListButton("","","","","",self,true,btnclick) end); wishbtn:SetText(AL["Wishlist"]); + wishbtn:SetScript("OnEnter", function(self) + GameTooltip:ClearLines(); + GameTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 5); + GameTooltip:AddLine("Right Click For Menu"); + GameTooltip:Show(); + end); + wishbtn:SetScript("OnLeave", function() + if(GameTooltip:IsVisible()) then + GameTooltip:Hide(); + end + end); --Quick Look Buttons local function presetcreate(preset,num)