From 80050d7f38e23e4ed68ac607a4606ec27d3253a6 Mon Sep 17 00:00:00 2001
From: Spit <19otari98@gmail.com>
Date: Wed, 25 Sep 2024 20:25:42 +0300
Subject: [PATCH] tooltip
tooltip for WishList button and Quicklooks
---
Core/AtlasLoot.xml | 60 +++++++++++++++++++++++++++++++-------------
Locale/locale.en.lua | 3 ++-
2 files changed, 45 insertions(+), 18 deletions(-)
diff --git a/Core/AtlasLoot.xml b/Core/AtlasLoot.xml
index a7e4309..2f67428 100644
--- a/Core/AtlasLoot.xml
+++ b/Core/AtlasLoot.xml
@@ -194,8 +194,8 @@
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
- GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][1][3]);
- GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
+ GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][1][3].."|r");
+ GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
@@ -239,8 +239,8 @@
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
- GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][2][3]);
- GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
+ GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][2][3].."|r");
+ GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
@@ -284,8 +284,8 @@
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
- GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][3][3]);
- GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
+ GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][3][3].."|r");
+ GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
@@ -329,8 +329,8 @@
if this:IsEnabled() then
GameTooltip:ClearLines();
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
- GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][4][3]);
- GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
+ GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][4][3].."|r");
+ GameTooltip:AddLine(AL["ALT+Click to clear"]);
GameTooltip:Show();
end
@@ -500,6 +500,19 @@
this:SetText(AL["WishList"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
+
+ local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
+ if this:IsEnabled() then
+ GameTooltip:ClearLines();
+ GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
+ GameTooltip:AddLine("|cffFFFFFF"..AL["WishList"].."|r");
+ GameTooltip:AddLine(AL["ALT+Click on item to add or remove it from WishList"]);
+ GameTooltip:Show();
+ end
+
+
+ GameTooltip:Hide();
+
@@ -886,7 +899,7 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
this:SetText(AL["Toggle AL Panel"]);
- getglobal("AtlasLootInfo_Text2"):SetText(AL["ALT+Click to use WishList."]);
+ getglobal("AtlasLootInfo_Text2"):SetText("");
if AtlasLootCharDB.HidePanel then
@@ -1882,6 +1895,19 @@
this:SetText(AL["WishList"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
+
+ local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
+ if this:IsEnabled() then
+ GameTooltip:ClearLines();
+ GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
+ GameTooltip:AddLine("|cffFFFFFF"..AL["WishList"].."|r");
+ GameTooltip:AddLine(AL["ALT+Click on item to add or remove it from WishList"]);
+ GameTooltip:Show();
+ end
+
+
+ GameTooltip:Hide();
+