dont use GameTooltip for caching

This commit is contained in:
Spit
2025-10-03 00:20:58 +03:00
parent f4407ef0ef
commit 717d8489ba
2 changed files with 20 additions and 23 deletions
+11 -12
View File
@@ -37,7 +37,7 @@
<Size x="105" y="20"/>
</Button>
<Frame name="AtlasLootDefaultFrame" toplevel="true" frameStrata="HIGH" movable="true" enableMouseClicks="true" hidden="true" parent="UIParent" enableKeyboard="true">
<Frame name="AtlasLootDefaultFrame" toplevel="true" frameStrata="HIGH" movable="true" enableMouse="true" hidden="true" parent="UIParent">
<Size x="600" y="690"/>
<Anchors>
<Anchor point="CENTER"/>
@@ -50,22 +50,14 @@
<Frames>
<Button name="$parent_CloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="AtlasLootDefaultFrame" relativePoint="TOPRIGHT">
<Anchor point="TOPRIGHT">
<Offset x="-10" y="-10"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
AtlasLootDefaultFrame:Hide();
</OnClick>
<OnShow>
this:SetFrameLevel((this:GetParent()):GetFrameLevel() + 1);
</OnShow>
</Scripts>
</Button>
<Button name="$parent_Atlas" inherits="AtlasLootDefaultFrameButtonTemplate">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
<Anchor point="TOPRIGHT">
<Offset x="-38" y="-15"/>
</Anchor>
</Anchors>
@@ -81,7 +73,6 @@
<OnShow>
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
this:SetText(AL["Atlas"]);
this:SetFrameLevel((this:GetParent()):GetFrameLevel() + 1);
if IsAddOnLoaded("Atlas") then
this:Enable();
else
@@ -452,6 +443,14 @@
<GameTooltip name="AtlasLootTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
<GameTooltip name="AtlasLootTooltip2" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
<GameTooltip name="AtlasLootCacheTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true">
<Scripts>
<OnLoad>
this:SetOwner(WorldFrame, "ANCHOR_NONE")
</OnLoad>
</Scripts>
</GameTooltip>
<Button name="AtlasLootNewBossLineTemplate" virtual="true" hidden="true">
<Size x="336" y="15"/>