forked from Lanrutcon/CatchTheWind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCatchTheWind.xml
69 lines (57 loc) · 2.01 KB
/
CatchTheWind.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
<!--QuestItem Button Template -->
<Button name="CTWItemButtonTemplate" hidden="true" inherits="QuestInfoRewardItemTemplate" virtual="true">
<Size x="48" y="48"/>
<Backdrop edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="6" right="6" top="6" bottom="6"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="22"/>
</TileSize>
<EdgeSize>
<AbsValue val="22"/>
</EdgeSize>
</Backdrop>
<Scripts>
<OnLoad>
self.type = "choice";
self.objectType = "item";
_G[self:GetName().."NameFrame"]:Hide();
_G[self:GetName().."Name"]:Hide();
_G[self:GetName().."IconTexture"]:SetTexCoord(0.075,0.925,0.075,0.925);
_G[self:GetName().."IconTexture"]:SetSize(38,38);
_G[self:GetName().."IconTexture"]:ClearAllPoints();
_G[self:GetName().."IconTexture"]:SetPoint("CENTER", self, 0, 0);
</OnLoad>
<OnEnter>
GameTooltip:SetParent(WorldFrame);
GameTooltip:SetFrameStrata("TOOLTIP");
for i=1,3 do
_G["ShoppingTooltip"..i]:SetParent(WorldFrame);
_G["ShoppingTooltip"..i]:SetFrameStrata("TOOLTIP");
end
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetQuestItem(self.type, self:GetID());
GameTooltip_ShowCompareItem(GameTooltip);
</OnEnter>
<OnLeave>
GameTooltip:SetParent(UIParent);
GameTooltip:SetFrameStrata("TOOLTIP");
GameTooltip:Hide();
for i=1,3 do
_G["ShoppingTooltip"..i]:SetParent(UIParent);
_G["ShoppingTooltip"..i]:SetFrameStrata("TOOLTIP");
end
ResetCursor();
</OnLeave>
<OnClick>
for i=1, GetNumQuestChoices() do
_G["CTWrewardPanelItem"..i.."IconTexture"]:SetVertexColor(0.35,0.35,0.35,1);
end
_G[self:GetName().."IconTexture"]:SetVertexColor(1,1,1,1);
QuestInfoItem_OnClick(self);
</OnClick>
</Scripts>
</Button>
</Ui>