-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArenaSpectatorX.xml
More file actions
211 lines (204 loc) · 8.59 KB
/
ArenaSpectatorX.xml
File metadata and controls
211 lines (204 loc) · 8.59 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<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">
<Texture name="ArenaSpectatorXSpecializationIconTemplate" virtual="true">
<TexCoords left="0.08" right="0.92" top="0.08" topbottom="0.92" />
<Size x="24" y="24" />
</Texture>
<FontString name="ArenaSpectatorXButtonFontTemplate" font="Fonts\MORPHEUS.ttf" virtual="true">
<FontHeight val="14" />
<Anchors>
<Anchor point="CENTER" x="-12" y="0" />
</Anchors>
<Color r="0.655" g="0.655" b="0.655" a="1" />
</FontString>
<Button name="ArenaSpectatorXArenaTypeButtonTemplate" hidden="true" virtual="true">
<Size x="320" y="101" />
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentArenaTypeText" font="Fonts\MORPHEUS.ttf" parentKey="ArenaTypeText">
<FontHeight val="38" />
<Anchors>
<Anchor point="CENTER" x="0" y="0" />
</Anchors>
<Color r="0.655" g="0.655" b="0.655" a="1" />
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SelectGossipOption(self.id);
</OnClick>
<OnMouseDown>
local fontName, fontSize, fontFlags = self.ArenaTypeText:GetFont();
self.ArenaTypeText:SetPoint("CENTER", 3, 3);
self.ArenaTypeText:SetFont(fontName, fontSize - 6, fontFlags);
</OnMouseDown>
<OnMouseUp>
local fontName, fontSize, fontFlags = self.ArenaTypeText:GetFont();
self.ArenaTypeText:SetPoint("CENTER");
self.ArenaTypeText:SetFont(fontName, fontSize + 6, fontFlags);
</OnMouseUp>
</Scripts>
<NormalTexture file="Interface\Buttons\WHITE8X8" parentKey="NormalTexture">
<Color r="0.155" g="0.155" b="0.155" a="0.9" />
</NormalTexture>
<HighlightTexture file="Interface\Buttons\WHITE8X8" alphaMode="ADD" parentKey="HighlightTexture">
<Color r="0.155" g="0.155" b="0.155" a="0.3" />
</HighlightTexture>
</Button>
<Button name="ArenaSpectatorXArenaNumButtonTemplate" hidden="true" virtual="true">
<Size x="320" y="38" />
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentRatingText" inherits="ArenaSpectatorXButtonFontTemplate" parentKey="RatingText" />
<Texture name="$parentSpecializationIcon1" inherits="ArenaSpectatorXSpecializationIconTemplate" parentKey="SpecializationIcon1">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentRatingText" relativePoint="LEFT" x="-8" y="0" />
</Anchors>
</Texture>
<Texture name="$parentSpecializationIcon2" inherits="ArenaSpectatorXSpecializationIconTemplate" parentKey="SpecializationIcon2">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentSpecializationIcon1" relativePoint="LEFT" x="-4" y="0" />
</Anchors>
</Texture>
<Texture name="$parentSpecializationIcon3" inherits="ArenaSpectatorXSpecializationIconTemplate" parentKey="SpecializationIcon3">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentSpecializationIcon2" relativePoint="LEFT" x="-4" y="0" />
</Anchors>
</Texture>
<Texture name="$parentSpecializationIcon4" inherits="ArenaSpectatorXSpecializationIconTemplate" parentKey="SpecializationIcon4">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentRatingText" relativePoint="RIGHT" x="8" y="0" />
</Anchors>
</Texture>
<Texture name="$parentSpecializationIcon5" inherits="ArenaSpectatorXSpecializationIconTemplate" parentKey="SpecializationIcon5">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSpecializationIcon4" relativePoint="RIGHT" x="4" y="0" />
</Anchors>
</Texture>
<Texture name="$parentSpecializationIcon6" inherits="ArenaSpectatorXSpecializationIconTemplate" parentKey="SpecializationIcon6">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSpecializationIcon5" relativePoint="RIGHT" x="4" y="0" />
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnMouseDown>
local fontName, fontSize, fontFlags = self.RatingText:GetFont();
self.RatingText:SetPoint("CENTER", -12, 1);
self.RatingText:SetFont(fontName, fontSize - 1, fontFlags);
for i = 1, 6 do
local icon = self["SpecializationIcon" .. i];
local size = icon:GetSize() - 1;
self["SpecializationIcon" .. i]:SetSize(size, size);
end
</OnMouseDown>
<OnMouseUp>
local fontName, fontSize, fontFlags = self.RatingText:GetFont();
self.RatingText:SetPoint("CENTER", -12, 0);
self.RatingText:SetFont(fontName, fontSize + 1, fontFlags);
for i = 1, 6 do
local icon = self["SpecializationIcon" .. i];
local size = icon:GetSize() + 1;
self["SpecializationIcon" .. i]:SetSize(size, size);
end
</OnMouseUp>
<OnClick>
SelectGossipOption(self.arenaID);
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\WHITE8X8" parentKey="NormalTexture">
<Color r="0.155" g="0.155" b="0.155" a="0.9" />
</NormalTexture>
<Layers>
<Layer level="HIGHLIGHT">
<Texture name="$parentLeft" file="Interface\AddOns\ArenaSpectatorX\texture\UI-SilverButtonLG-Left-Hi">
<Size>
<AbsDimension x="32" y="60" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" x="-3" y="3" />
</Anchors>
</Texture>
<Texture name="$parentRight" file="Interface\AddOns\ArenaSpectatorX\texture\UI-SilverButtonLG-Right-Hi">
<Size>
<AbsDimension x="32" y="60" />
</Size>
<Anchors>
<Anchor point="TOPRIGHT" x="-21" y="3" />
</Anchors>
</Texture>
<Texture name="$parentMiddle" file="Interface\AddOns\ArenaSpectatorX\texture\UI-SilverButtonLG-Mid-Hi">
<Size>
<AbsDimension x="32" y="60" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT" x="0" y="0" />
<Anchor point="TOPRIGHT" relativeTo="$parentRight" relativePoint="TOPLEFT" x="0" y="0" />
</Anchors>
</Texture>
</Layer>
</Layers>
</Button>
<ScrollFrame name="ArenaSpectatorXScrollFrameTemplate" inherits="FauxScrollFrameTemplate" hidden="true" virtual="true">
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Background" file="Interface\AddOns\ArenaSpectatorX\texture\UI-Background-Marble" setAllPoints="true" />
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="64" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-2" y="5" />
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.484375" top="0" bottom="0.25" />
</Texture>
<Texture name="$parentScrollBarBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="64" />
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-2" y="-2" />
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.515625" right="1.0" top="0.1640625" bottom="0.4140625" />
</Texture>
<Texture name="$parentScrollBarMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size x="31" y="64" />
<Anchors>
<Anchor point="TOP" relativeTo="$parentScrollBarTop" relativePoint="BOTTOM">
<Offset x="0" y="0" />
</Anchor>
<Anchor point="BOTTOM" relativeTo="$parentScrollBarBottom" relativePoint="TOP">
<Offset x="0" y="0" />
</Anchor>
</Anchors>
<TexCoords left="0" right="0.484375" top=".75" bottom="1.0" />
</Texture>
</Layer>
</Layers>
<ScrollChild>
<Frame name="$parentScrollChildFrame" parentKey="scrollChild">
<Size>
<AbsDimension x="300" y="334" />
</Size>
</Frame>
</ScrollChild>
<Scripts>
<OnVerticalScroll>
FauxScrollFrame_OnVerticalScroll(self, offset, 38, ArenaSpectatorXScrollFrame_Update);
</OnVerticalScroll>
</Scripts>
</ScrollFrame>
</Ui>