forked from Sammers21/sArena_Updated2_by_sammers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsArena.xml
241 lines (223 loc) · 10.7 KB
/
sArena.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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
<Script file="Ace3\LibStub\LibStub.lua"/>
<Include file="Ace3\CallbackHandler-1.0\CallbackHandler-1.0.xml"/>
<Include file="Ace3\AceDB-3.0\AceDB-3.0.xml"/>
<Include file="Ace3\AceDBOptions-3.0\AceDBOptions-3.0.xml"/>
<Include file="Ace3\AceConsole-3.0\AceConsole-3.0.xml"/>
<Include file="Ace3\AceGUI-3.0\AceGUI-3.0.xml"/>
<Include file="Ace3\AceConfig-3.0\AceConfig-3.0.xml"/>
<Script file="sArena.lua"/>
<Script file="Config.lua"/>
<Script file="Modules\Auras.lua"/>
<Script file="Modules\DiminishingReturns.lua"/>
<Script file="Modules\Racials.lua"/>
<Script file="Layouts\BlizzArena.lua"/>
<Script file="Layouts\BlizzTourney.lua"/>
<Script file="Layouts\BlizzTarget.lua"/>
<Script file="Layouts\Xaryu.lua"/>
<Frame name="sArenaDRTrackerTemplate" hidden="true" virtual="true">
<Size x="40" y="40"/>
<Layers>
<Layer level="OVERLAY">
<Texture parentKey="Border" file="Interface\Buttons\UI-Quickslot-Depress"/>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="Icon">
<TexCoords left="0.08" right="0.92" top="0.08" bottom="0.92"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Cooldown parentKey="Cooldown" drawBling="false" hideCountdownNumbers="false" inherits="CooldownFrameTemplate">
<SwipeTexture>
<Color r="0" g="0" b="0" a="0.6"/>
</SwipeTexture>
<Scripts>
<OnLoad>
self:SetDrawBling(false)
for _, region in next, { self:GetRegions() } do
if region:GetObjectType() == "FontString" then
self.Text = region;
self.Text.fontFile = region:GetFont();
end
end
self.parent = self:GetParent();
</OnLoad>
<OnShow>
self.parent:GetParent():UpdateDRPositions();
</OnShow>
<OnHide>
self.parent:Hide();
self.parent.severity = 1;
self.parent:GetParent():UpdateDRPositions();
</OnHide>
</Scripts>
</Cooldown>
</Frames>
<Scripts>
<OnLoad>
self.severity = 1;
</OnLoad>
</Scripts>
</Frame>
<!--inherits="CastingBarFrameTemplate" -->
<StatusBar name="sArenaCastBarTemplate" mixin="CastingBarMixin,sArenaCastingBarExtensionMixin" inherits="CastingBarFrameAnimsTemplate" enablemouse="true" movable="true" virtual="true" hidden="true">
<Layers>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="BorderShield" file="Interface\CastingBar\UI-CastingBar-Arena-Shield" hidden="true">
<Size x="42" y="42"/>
<Anchors>
<Anchor point="LEFT" x="-25" y="0"/>
</Anchors>
</Texture>
<FontString parentKey="Text" inherits="GameFontHighlightSmall" setAllPoints="true"/>
<Texture parentKey="Icon">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT" x="-5" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture parentKey="Spark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
<Size x="1" y="1"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
<Texture parentKey="Flash" alphaMode="ADD">
<!-- this needs to be here so the generic unit frame code will work right -->
<Size x="256" y="64"/>
<Anchors>
<Anchor point="TOP" x="0" y="28"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="1.0" g="0.7" b="0.0"/>
<Scripts>
<OnLoad>
self:OnLoad(nil, true, false);
</OnLoad>
<OnEvent method="OnEvent" />
<OnUpdate method="OnUpdate" />
<OnShow method="OnShow" />
</Scripts>
</StatusBar>
<Frame name="sArenaIconTemplate" enablemouse="true" movable="true" virtual="true">
<Layers>
<Layer level="OVERLAY" textureSubLevel="1">
<Texture parentKey="Texture" setAllPoints="true"/>
</Layer>
</Layers>
<Frames>
<Cooldown parentKey="Cooldown" hideCountdownNumbers="false" inherits="CooldownFrameTemplate">
<Scripts>
<OnLoad>
self:SetDrawBling(false)
for _, region in next, { self:GetRegions() } do
if region:GetObjectType() == "FontString" then
self.Text = region;
self.Text.fontFile = region:GetFont();
end
end
</OnLoad>
</Scripts>
</Cooldown>
</Frames>
</Frame>
<Button name="sArenaEnemyFrameTemplate" frameStrata="MEDIUM" frameLevel="3" mixin="sArenaFrameMixin" hidden="true" virtual="true" inherits="SecureActionButtonTemplate">
<Layers>
<Layer level="BORDER" textureSubLevel="1">
<!-- Health/power bar is in this layer -->
<Texture parentKey="ClassIcon"/>
<MaskTexture parentKey="ClassIconMask" file="Interface\CharacterFrame\TempPortraitAlphaMask"/>
<Texture parentKey="myHealPredictionBar" inherits="MyHealPredictionBarTemplate"/>
<Texture parentKey="otherHealPredictionBar" inherits="OtherHealPredictionBarTemplate"/>
<Texture parentKey="totalAbsorbBar" inherits="TotalAbsorbBarTemplate"/>
</Layer>
<Layer level="ARTWORK" textureSubLevel="1">
<Texture parentKey="healAbsorbBar" inherits="HealAbsorbBarTemplate"/>
<Texture parentKey="healAbsorbBarLeftShadow" inherits="HealAbsorbBarLeftShadowTemplate"/>
<Texture parentKey="healAbsorbBarRightShadow" inherits="HealAbsorbBarRightShadowTemplate"/>
</Layer>
<Layer level="ARTWORK" textureSubLevel="3">
<FontString parentKey="Name"/>
<FontString parentKey="HealthText"/>
<FontString parentKey="PowerText"/>
<Texture parentKey="overAbsorbGlow" inherits="OverAbsorbGlowTemplate"/>
<Texture parentKey="overHealAbsorbGlow" inherits="OverHealAbsorbGlowTemplate"/>
<Texture parentKey="totalAbsorbBarOverlay" inherits="TotalAbsorbBarOverlayTemplate"/>
</Layer>
<Layer level="OVERLAY" textureSubLevel="2">
<Texture parentKey="DeathIcon" atlas="DeathIcon" hidden="true">
<TexCoords left="0" right="1" top="0" bottom="0.5"/>
</Texture>
</Layer>
</Layers>
<Frames>
<StatusBar parentKey="HealthBar" drawLayer="BORDER" useParentLevel="true"/>
<StatusBar parentKey="PowerBar" drawLayer="BORDER" useParentLevel="true"/>
<StatusBar parentKey="CastBar" inherits="sArenaCastBarTemplate"/>
<Cooldown parentKey="ClassIconCooldown" drawLayer="BORDER" useParentLevel="true" reverse="true" hideCountdownNumbers="false" inherits="CooldownFrameTemplate">
<Scripts>
<OnLoad>
for _, region in next, { self:GetRegions() } do
if region:GetObjectType() == "FontString" then
self.Text = region;
self.Text.fontFile = region:GetFont();
end
end
self:SetAllPoints(self:GetParent().ClassIcon)
self:SetSwipeTexture(1)
self:SetSwipeColor(0, 0, 0, 0.6)
self:SetDrawBling(false)
</OnLoad>
</Scripts>
</Cooldown>
<Frame parentKey="SpecIcon" enablemouse="true" movable="true">
<Layers>
<Layer level="ARTWORK" textureSubLevel="2">
<Texture parentKey="Texture" setAllPoints="true"/>
<MaskTexture parentKey="Mask" setAllPoints="true" file="Interface\CharacterFrame\TempPortraitAlphaMask"/>
</Layer>
</Layers>
</Frame>
<Frame parentKey="Trinket" inherits="sArenaIconTemplate"/>
<Frame parentKey="Racial" inherits="sArenaIconTemplate"/>
<Frame parentKey="Incapacitate" inherits="sArenaDRTrackerTemplate"/>
<Frame parentKey="Silence" inherits="sArenaDRTrackerTemplate"/>
<Frame parentKey="Disorient" inherits="sArenaDRTrackerTemplate"/>
<Frame parentKey="Stun" inherits="sArenaDRTrackerTemplate" enablemouse="true" movable="true"/>
<Frame parentKey="Root" inherits="sArenaDRTrackerTemplate"/>
</Frames>
<Scripts>
<OnEvent method="OnEvent"/>
<OnLoad method="OnLoad"/>
<OnEnter method="OnEnter"/>
<OnLeave method="OnLeave"/>
</Scripts>
</Button>
<Frame name="sArena" mixin="sArenaMixin" movable="true" parent="UIParent">
<Size x="1" y="1"/>
<Frames>
<Button name="sArenaEnemyFrame1" parentKey="arena1" inherits="sArenaEnemyFrameTemplate" id="1">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Button>
<Button name="sArenaEnemyFrame2" parentKey="arena2" inherits="sArenaEnemyFrameTemplate" id="2"/>
<Button name="sArenaEnemyFrame3" parentKey="arena3" inherits="sArenaEnemyFrameTemplate" id="3"/>
</Frames>
<Scripts>
<OnEvent method="OnEvent"/>
<OnLoad method="OnLoad"/>
</Scripts>
</Frame>
</Ui>