-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRecentTradeFrame.xml
More file actions
194 lines (188 loc) · 5.45 KB
/
Copy pathRecentTradeFrame.xml
File metadata and controls
194 lines (188 loc) · 5.45 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<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">
<Script file="RecentTradeFrame.lua"/>
<Button name="RecentTradeFrameItemButtonTemplate" virtual="true">
<Size>
<AbsDimension x="165" y="52"/>
</Size>
<Layers>
<Layer level="BORDER">
<FontString name="$parentText" inherits="ChatFontSmall" justifyH="LEFT" text="test\\ntest" spacing="3">
<Color r="1.0" g="1.0" b="0.0"/>
<Size>
<AbsDimension x="300" y="48"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-1" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonUp");
</OnLoad>
<OnClick>
if(self.offset and TradeLog_TradesHistory[self.offset] and TradeListFrame_ShowDetail) then
TradeListFrame_ShowDetail(TradeLog_TradesHistory[self.offset]);
end
</OnClick>
<OnEnter>
if(self.offset and TradeLog_TradesHistory[self.offset]) then
TradeLog_TradeTooltip(self, TradeLog_TradesHistory[self.offset]);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD">
<Size>
<AbsDimension x="168" y="50"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-4" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</HighlightTexture>
</Button>
<Frame name="RecentTradeFrame" parent="TradeFrame" inherits="BackdropTemplate" mixin="BackdropTemplateMixin" hidden="false">
<TitleRegion setAllPoints="true"/>
<Size>
<AbsDimension x="180" y="451"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="3"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BORDER">
<FontString name="$parentTitle" inherits="GameFontNormalSmall" justifyH="LEFT" text="Recent Trade With Abcdefghabcd">
<Size>
<AbsDimension x="155" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentClose" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="3" y="3"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton1" inherits="RecentTradeFrameItemButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton2" inherits="RecentTradeFrameItemButtonTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton3" inherits="RecentTradeFrameItemButtonTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton4" inherits="RecentTradeFrameItemButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton5" inherits="RecentTradeFrameItemButtonTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton6" inherits="RecentTradeFrameItemButtonTemplate" id="6">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton5" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton7" inherits="RecentTradeFrameItemButtonTemplate" id="7">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton6" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentButton8" inherits="RecentTradeFrameItemButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentButton7" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
<Scripts>
<OnLoad>
self:RegisterEvent("TRADE_SHOW")
self:SetBackdrop({
bgFile="Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 16,
edgeSize = 16,
insets = {left = 5, right = 5, top = 5, bottom = 5},
})
</OnLoad>
<OnEvent>
<!--RecentTradeFrame_UpdateList(GetUnitName("NPC", true):gsub(" %- ", "-"))-->
RecentTradeFrame_UpdateList(GetUnitName("NPC", true))
</OnEvent>
<OnShow>
self:SetBackdropColor(0,0,0);
</OnShow>
</Scripts>
</Frame>
</Ui>