-
Notifications
You must be signed in to change notification settings - Fork 4
/
OrderHallCommander.xml
385 lines (383 loc) · 12.8 KB
/
OrderHallCommander.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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<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="OrderHallCommander.lua"/>
<Button name="OHCWhatsNew" inherits="UIPanelInfoButton" hidden="true" virtual="true">
<Size x="32" y="32"/>
<Scripts>
<OnLeave function="GameTooltip_Hide"/>
<OnEnter>
if self.tooltip then
GameTooltip:SetOwner(self,"ANCHOR_TOPLEFT")
GameTooltip:AddLine(type(self.tooltip)=="function" and self.tooltip() or self.tooltip)
GameTooltip:Show()
end
</OnEnter>
</Scripts>
</Button>
<Button name="OHCMissionButton" inherits="GarrisonMissionListButtonTemplate" virtual="true">
<Size x="832" y="75"/>
<KeyValues>
<KeyValue key="IsCustom" value="true" type="boolean"/>
</KeyValues>
</Button>
<Frame parentKey="Stats" name="OHCStats" virtual="true" enableMouse="true" mixin="OrderHallCommanderMixin">
<Size x="110" y="75"/>
<Layers>
<Layer level="OVERLAY">
<FontString parentKey="Expire" justifyV="TOP" justifyH="CENTER" inherits="GameFontHighlightSmallOutline">
<Size x="95" y="30"/>
<Anchors>
<Anchor point="TOPLEFT" x="5" y="-10"/>
<Anchor point="TOPRIGHT" x="5" y="-10"/>
</Anchors>
</FontString>
<FontString parentKey="Chance" justifyV="BOTTOM" justifyH="CENTER" inherits="NumberFontNormalHuge">
<Size x="95" y="30"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="5" y="10"/>
<Anchor point="BOTTOMRIGHT" x="5" y="10"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<!--@debug@-->
<OnEnter method="Dump"/>
<!--@end-debug@-->
<OnLeave method="HideTT"/>
</Scripts>
</Frame>
<Frame name="OHCThreatsCounters" virtual="true" mixin="OrderHallCommanderMixin" enableMouse="true" inherits="GarrisonAbilityCounterTemplate">
<Scripts>
<OnEnter method="CounterTooltip"/>
<OnLeave method="HideTT"/>
</Scripts>
</Frame>
<Frame parentKey="Threats" name="OHCThreats" virtual="true" mixin="OrderHallCommanderMixin,OrderHallCommanderMixinThreats" enableMouse="true">
<Size x="128" y="24"/>
<Layers>
<Layer level="OVERLAY">
<FontString parentKey="Cost" justifyV="CENTER" justifyH="LEFT" inherits="GameFontHighlightSmallOutline">
<Size x="250" y="20"/>
</FontString>
<FontString parentKey="XP" justifyV="CENTER" justifyH="LEFT" inherits="GameFontHighlightSmallOutline">
<Size x="250" y="20"/>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad method="OnLoad"/>
<!--@debug@-->
<OnEnter>
self:Dump(self:GetParent())
</OnEnter>
<!--@end-debug@-->
<OnLeave method="HideTT"/>
</Scripts>
</Frame>
<Frame name="OHCMembers" mixin="OrderHallCommanderMixin,OrderHallCommanderMixinMembers" virtual="true" enableMouse="false">
<Size x="1" y="70"/>
<Frames>
<Frame parentKey="NotReady">
<Anchors>
<Anchor point="TOPLEFT" x="-5" y="0"/>
<Anchor point="BOTTOMRIGHT" x="5" y="0"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString parentKey="Text" justifyV="CENTER" justifyH="CENTER" inherits="GameFontNormalOutline" text="GARRISON_PARTY_NOT_ENOUGH_CHAMPIONS">
<Anchors>
<Anchor point="TOPLEFT" x="5" y="0"/>
<Anchor point="BOTTOMRIGHT" x="-5" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame parentArray="Champions" inherits="OHCFollowerIcon" />
</Frames>
<Scripts>
<OnLoad method="OnLoad"/>
<OnLeave method="HideTT"/>
<OnShow method="OnShow"/>
</Scripts>
</Frame>
<Frame name="OHCTroop" enableMouse="true" inherits="OrderHallClassSpecCategoryTemplate" virtual="true" />
<Frame name="OHCFollowerIcon" mixin="OrderHallCommanderMixin,OrderHallCommanderMixinFollowerIcon" enableMouse="true" inherits="GarrisonFollowerPortraitTemplate" virtual="true" >
<Size x="52" y="60"/>
<Scripts>
<OnEnter method="ShowTooltip"/>
<OnLeave method="HideTooltip"/>
<OnMouseUp method="Click"/>
</Scripts>
<Layers>
<Layer level="OVERLAY">
<!-- Texture parentKey="Lock" file="Interface/CHATFRAME/UI-ChatFrame-LockIcon"-->
<Texture parentKey="LockIcon" file="Interface/PETBATTLES/PetBattle-LockIcon">
<Anchors>
<Anchor point="TOPRIGHT" x="10" y="10"/>
</Anchors>
</Texture>
</Layer>
<Layer>
<Texture parentKey="IgnoreIcon" file="Interface/PETBATTLES/DeadPetIcon">
<Anchors>
<Anchor point="CENTER" x="0" y="1"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame parentKey="Durability" inherits="GarrisonMissionFollowerDurabilityFrameTemplate" hidden="true">
<Anchors>
<Anchor point="BOTTOM" x="0" y="4"/>
</Anchors>
</Frame>
</Frames>
</Frame>
<Frame name="OHCFollowerPortrait" mixin="OrderHallCommanderMixinTooltip" enableMouse="true" inherits="GarrisonMissionPageFollowerTemplate" virtual="true" >
<Size x="161" y="58"/>
</Frame>
<Frame name="OHCMiniMissionButton" mixin="OrderHallCommanderMixinTooltip" inherits="GarrisonLandingPageReportMissionTemplate" virtual="true">
<Size x="400" y="60"/>
<Frames>
<Frame parentKey="Followers" inherits="OHCMembers" hidden="false">
<Anchors>
<Anchor point="RIGHT" x="-10" y="0"/>
</Anchors>
</Frame>>
</Frames>
<Layers>
<Layer level="OVERLAY">
<FontString parentKey="Perc" justifyV="CENTER" justifyH="RIGHT" inherits="SystemFont_Huge1_Outline" text="100%">
<Size x="70" y="60"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
for i=1,3 do
self.Followers.Champions[i]:SetScale(0.8)
end
</OnLoad>
<OnLeave function="GameTooltip_Hide"/>
<OnEnter method="OnEnter"/>
</Scripts>
</Frame>
<Button name="OHCFollowerButton" inherits="GarrisonFollowerButtonTemplate" virtual="true">
<Size x="260" y="56"/>
</Button>
<Button name="OHCUpgradeButton" enableMouse="true" virtual="true" inherits="GarrisonMissionListButtonRewardTemplate">
<Size x="50" y="50"/>
</Button>
<Button name="OHCPin" virtual="true" enableMouse="true" hidden="true">
<Size x="64" y="64" />
<Anchors>
<Anchor point="TOPLEFT" relativeTo="OrderHallMissionFrame" relativePoint="TOPRIGHT" x="-15" y="43"/>
</Anchors>
<NormalTexture file="Interface\CHATFRAME\UI-ChatIcon-ScrollUp-Up">
<Size x="66" y="66" />
</NormalTexture>
<HighlightTexture file="Interface\CHATFRAME/UI-ChatIcon-BlinkHilight" alphaMode="ADD">
<Size x="60" y="60" />
</HighlightTexture>
<Scripts>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
<OnEnter>
GameTooltip:SetOwner(self,"ANCHOR_TOPRIGHE")
if not self.tooltip then return end
GameTooltip:SetText(self.tooltip)
GameTooltip:Show()
</OnEnter>
</Scripts>
</Button>
<Frame name="OHCBaseFrame" mixin="OrderHallCommanderMixinTooltip" inherits="TooltipBorderedFrameTemplate" virtual="true">
<Size x="200" y="30"/>
<KeyValues>
<KeyValue key="movable" value="false" type="boolean"/>
</KeyValues>
<Frames>
<Button parentKey="Close" inherits="UIPanelCloseButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLeave function="GameTooltip_Hide"/>
<!--
<OnEnter method="OnEnter"/>
-->
</Scripts>
</Button>
</Frames>
<Layers>
<Layer level="OVERLAY">
<FontString parentKey="Title" justifyV="TOP" justifyH="CENTER" inherits="GameFontHighlightOutline" text="OrderHallCommander">
<Size x="240" y="20"/>
<Anchors>
<Anchor point="TOPLEFT" x="16" y="-5"/>
<Anchor point="TOPRIGHT" x="-32" y="-5"/>
</Anchors>
</FontString>
</Layer>
<Layer level="HIGHLIGHT">
<Texture parentKey="Highlight" hidden="true" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
<Size x="240" y="20"/>
<Anchors>
<Anchor point="TOPLEFT" x="0" y="-5"/>
<Anchor point="TOPRIGHT" x="0" y="-5"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLeave function="GameTooltip_Hide"/>
<OnEnter method="OnEnter"/>
<OnDragStart method="OnDragStart"/>
<OnDragStop method="OnDragStop"/>
</Scripts>
</Frame>
<Frame name="OHCNavigator" mixin="OrderHallCommanderMixinTooltip" virtual="true">
<Size x="200" y="30"/>
<Frames>
<Button parentKey="Close" mixin="OrderHallCommanderMixinTooltip" inherits="UIPanelCloseButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPRIGHT" x="5" y="5"/>
</Anchors>
<KeyValues>
<KeyValue key="tooltip" value="CLOSE" type="string"/>
</KeyValues>
<Scripts>
<OnLeave function="GameTooltip_Hide"/>
<OnEnter method="OnEnter"/>
</Scripts>
</Button>
<Button parentKey="Home" mixin="OrderHallCommanderMixinTooltip" inherits="UIPanelCloseButton">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="TOPLEFTT" x="0" y="0"/>
</Anchors>
<KeyValues>
<KeyValue key="tooltip" value="HOME" type="string"/>
</KeyValues>
<NormalTexture file="Interface\BUTTONS\UI-HomeButton"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
<Scripts>
<OnLeave function="GameTooltip_Hide"/>
<OnEnter method="OnEnter"/>
<OnClick></OnClick>
</Scripts>
</Button>
<Button parentKey="Forward">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
<NormalTexture file="Interface\Glues\Common\Glue-RightArrow-Button-Up"/>
<PushedTexture file="Interface\Glues\Common\Glue-RightArrow-Button-Down"/>
<HighlightTexture file="Interface\Glues\Common\Glue-RightArrow-Button-Highlight" alphaMode="ADD"/>
</Button>
<Button parentKey="Backward">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="BOTTOMLEFT"/>
</Anchors>
<NormalTexture file="Interface\Glues\Common\Glue-LeftArrow-Button-Up"/>
<PushedTexture file="Interface\Glues\Common\Glue-LeftArrow-Button-Down"/>
<HighlightTexture file="Interface\Glues\Common\Glue-LeftArrow-Button-Highlight" alphaMode="ADD"/>
</Button>
</Frames>
</Frame>
<Frame name="OHCMenu" mixin="OrderHallCommanderMixin,OrderHallCommanderMixinMenu" inherits="OHCBaseFrame" virtual="true">
<KeyValues>
<KeyValue key="PinOpen" value="true" type="boolean"/>
<KeyValue key="DefaultWidth" value="220" type="number"/>
</KeyValues>
<Frames>
<Button parentKey="Tutorial" inherits="OHCWhatsNew">
<Size x="15" y="16"/>
<Anchors>
<Anchor point="TOPLEFT" x="2" y="-8"/>
</Anchors>
</Button>
</Frames>
<Animations>
<AnimationGroup parentKey="Pulse" looping="BOUNCE">
<Scale childKey="Tutorial" smoothing="NONE" duration="1" order="1" fromScaleX="1" fromScaleY="1" toScaleX="2" toScaleY="2"/>
<Scale childKey="Tutorial" smoothing="NONE" duration="1" order="2" fromScaleX="2" fromScaleY="2" toScaleX="1" toScaleY="1"/>
</AnimationGroup>
</Animations>
<Scripts>
<OnLoad method="OnLoad"/>
</Scripts>
</Frame>
<CheckButton name="OHCTab" enableMouse="true" virtual="true" inherits="SpellBookSkillLineTabTemplate">
<Size x="100" y="50" />
<KeyValues>
<KeyValue key="flag" value="" type="string"/>
<KeyValue key="tipo" value="" type="string"/>
</KeyValues>
<Layers>
<Layer level="ARTWORK">
<Texture parentKey="Icon" file="Interface\ACHIEVEMENTFRAME\UI-ACHIEVEMENT-SHIELDS-NOPOINTS">
<Size x="48" y="48"/>
<Anchors>
<Anchor point="TOPLEFT" x="0" y="0"/>
</Anchors>
<TexCoords left="0" right="0.5" top="0.5" bottom="1"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<FontString parentKey="Name" text="Example" justifyV="CENTER" justifyH="LEFT" inherits="GameFontHighlightSmallOutline">
<Size x="95" y="30"/>
<Anchors>
<Anchor point="LEFT" x="40" y="10"/>
<Anchor point="RIGHT" x="40" y="10"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</CheckButton>
<Frame name="OHCSpinner" parentKey="Spinner" virtual="true" inherits="LoadingSpinnerTemplate">
<Scripts>
<OnLoad>
self.Start=function(self) self:Show() self.Anim:Play() end
self.Stop=function(self) self.Anim:Stop() self:Hide() end
</OnLoad>
</Scripts>
</Frame>
<Frame name="OHCAlertFrameTemplate" inherits="GarrisonStandardFollowerAlertFrameTemplate" virtual="true"/>
<!--
GarrisonFollowerXPGainTemplate
GarrisonFollowerXPBarTemplate
GarrisonFollowerLevelUpTemplate
-->
<Frame name="OHCFollowerTip" inherits="GarrisonFollowerTooltipTemplate" movable="false" toplevel="true">
<Size x="260" y="122"/>
<Anchors>
<Anchor point="BOTTOM" x="0" y="160"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString parentArray="Lines" inherits="GameFontNormal" justifyH="LEFT" text="test">
<Size x="300" y="0"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="5" y="100"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
</OnLoad>
</Scripts>
</Frame>
</Ui>