tooltip
tooltip for WishList button and Quicklooks
This commit is contained in:
+43
-17
@@ -194,8 +194,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][1][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][1][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -239,8 +239,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][2][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][2][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -284,8 +284,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][3][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][3][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -329,8 +329,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][4][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][4][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -500,6 +500,19 @@
|
|||||||
this:SetText(AL["WishList"]);
|
this:SetText(AL["WishList"]);
|
||||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||||
</OnShow>
|
</OnShow>
|
||||||
|
<OnEnter>
|
||||||
|
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
|
||||||
|
</OnEnter>
|
||||||
|
<OnLeave>
|
||||||
|
GameTooltip:Hide();
|
||||||
|
</OnLeave>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Button>
|
</Button>
|
||||||
</Frames>
|
</Frames>
|
||||||
@@ -886,7 +899,7 @@
|
|||||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||||
this:SetText(AL["Toggle AL Panel"]);
|
this:SetText(AL["Toggle AL Panel"]);
|
||||||
getglobal("AtlasLootInfo_Text2"):SetText(AL["ALT+Click to use WishList."]);
|
getglobal("AtlasLootInfo_Text2"):SetText("");
|
||||||
</OnShow>
|
</OnShow>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
if AtlasLootCharDB.HidePanel then
|
if AtlasLootCharDB.HidePanel then
|
||||||
@@ -1882,6 +1895,19 @@
|
|||||||
this:SetText(AL["WishList"]);
|
this:SetText(AL["WishList"]);
|
||||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||||
</OnShow>
|
</OnShow>
|
||||||
|
<OnEnter>
|
||||||
|
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
|
||||||
|
</OnEnter>
|
||||||
|
<OnLeave>
|
||||||
|
GameTooltip:Hide();
|
||||||
|
</OnLeave>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Button>
|
</Button>
|
||||||
<Button name="$parent_Options" inherits="AtlasLootPanelButtonTemplate">
|
<Button name="$parent_Options" inherits="AtlasLootPanelButtonTemplate">
|
||||||
@@ -1940,8 +1966,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][1][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][1][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -1991,8 +2017,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][2][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][2][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -2042,8 +2068,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][3][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][3][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
@@ -2093,8 +2119,8 @@
|
|||||||
if this:IsEnabled() then
|
if this:IsEnabled() then
|
||||||
GameTooltip:ClearLines();
|
GameTooltip:ClearLines();
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", -(this:GetWidth() / 2), 5);
|
||||||
GameTooltip:AddLine(AtlasLootCharDB["QuickLooks"][4][3]);
|
GameTooltip:AddLine("|cffFFFFFF"..AtlasLootCharDB["QuickLooks"][4][3].."|r");
|
||||||
GameTooltip:AddLine(AL["|cff9d9d9dALT+Click to clear|r"]);
|
GameTooltip:AddLine(AL["ALT+Click to clear"]);
|
||||||
GameTooltip:Show();
|
GameTooltip:Show();
|
||||||
end
|
end
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
|
|||||||
@@ -68,7 +68,8 @@ AL:RegisterTranslations("enUS", function() return {
|
|||||||
["Reset Position"] = true,
|
["Reset Position"] = true,
|
||||||
["Minimap button has been reset!"] = true,
|
["Minimap button has been reset!"] = true,
|
||||||
["has been reset!"] = true,
|
["has been reset!"] = true,
|
||||||
["|cff9d9d9dALT+Click to clear|r"] = true,
|
["ALT+Click to clear"] = true,
|
||||||
|
["ALT+Click on item to add or remove it from WishList"] = true,
|
||||||
["Atlasloot Options"] = true,
|
["Atlasloot Options"] = true,
|
||||||
["Safe Chat Links |cff1eff00(recommended)|r"] = true,
|
["Safe Chat Links |cff1eff00(recommended)|r"] = true,
|
||||||
["Enable all Chat Links |cffff0000(use at own risk)|r"] = true,
|
["Enable all Chat Links |cffff0000(use at own risk)|r"] = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user