vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!--
2 QuickMountEquip
3  
4 by Robert Jenkins (Merrem@Perenolde), based on Totem Stomper by AlexYoshi
5 -->
6 <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/
7 ..\FrameXML\UI.xsd">
8 <Script file="QuickMountEquip.lua"/>
9  
10 <CheckButton name="QuickMountCheckButtonTemplate" inherits="UICheckButtonTemplate" virtual="true">
11 <Size>
12 <AbsDimension x="24" y="24"/>
13 </Size>
14 <Layers>
15 <Layer level="ARTWORK">
16 <FontString name="$parentText" inherits="GameFontNormalSmall" text="" justifyH="LEFT">
17 <Anchors>
18 <Anchor point="LEFT" relativePoint="RIGHT"/>
19 </Anchors>
20 </FontString>
21 </Layer>
22 </Layers>
23 <Scripts>
24 <OnClick>
25 QuickMountCheckButton_OnClick();
26 </OnClick>
27 <OnEnter>
28 QuickMountCheckButton_OnEnter();
29 </OnEnter>
30 <OnLeave>
31 QuickMountCheckButton_OnLeave();
32 </OnLeave>
33 </Scripts>
34 </CheckButton>
35  
36 <CheckButton name="QuickMountButtonTemplate" virtual="true" inherits="ActionButtonTemplate">
37 <Scripts>
38 <OnLoad>
39 QuickMount_ButtonLoad();
40 </OnLoad>
41 <OnShow>
42 QuickMount_ButtonUpdate(this);
43 </OnShow>
44 <OnDragStart>
45 QuickMount_ButtonDragStart();
46 </OnDragStart>
47 <OnReceiveDrag>
48 QuickMount_ButtonDragEnd();
49 </OnReceiveDrag>
50 <OnClick>
51 QuickMount_ButtonClick(arg1);
52 </OnClick>
53 <OnEnter>
54 QuickMount_ButtonEnter();
55 </OnEnter>
56 <OnLeave>
57 QuickMount_ButtonLeave();
58 </OnLeave>
59 <OnEvent>
60 QuickMount_ButtonEvent(event);
61 </OnEvent>
62 </Scripts>
63 </CheckButton>
64  
65 <!-- Frame Bar Template -->
66 <Frame name="QuickMountEquipSetTemplate" virtual="true" id="1">
67 <Size>
68 <AbsDimension x="384" y="48"/>
69 </Size>
70 <Frames>
71 <CheckButton name="$parent1" inherits="QuickMountButtonTemplate" id ="1">
72 <Anchors>
73 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
74 <Offset>
75 <AbsDimension x="115" y="-10" />
76 </Offset>
77 </Anchor>
78 </Anchors>
79 </CheckButton>
80 <CheckButton name="$parent2" inherits="QuickMountButtonTemplate" id ="2">
81 <Anchors>
82 <Anchor point="LEFT" relativeTo="$parent1" relativePoint="RIGHT">
83 <Offset>
84 <AbsDimension x="8" y="0" />
85 </Offset>
86 </Anchor>
87 </Anchors>
88 </CheckButton>
89 <CheckButton name="$parent3" inherits="QuickMountButtonTemplate" id ="3">
90 <Anchors>
91 <Anchor point="LEFT" relativeTo="$parent2" relativePoint="RIGHT">
92 <Offset>
93 <AbsDimension x="8" y="0" />
94 </Offset>
95 </Anchor>
96 </Anchors>
97 </CheckButton>
98 <CheckButton name="$parent4" inherits="QuickMountButtonTemplate" id ="4">
99 <Anchors>
100 <Anchor point="LEFT" relativeTo="$parent3" relativePoint="RIGHT">
101 <Offset>
102 <AbsDimension x="8" y="0" />
103 </Offset>
104 </Anchor>
105 </Anchors>
106 </CheckButton>
107 <CheckButton name="$parent5" inherits="QuickMountButtonTemplate" id ="5">
108 <Anchors>
109 <Anchor point="LEFT" relativeTo="$parent4" relativePoint="RIGHT">
110 <Offset>
111 <AbsDimension x="8" y="0" />
112 </Offset>
113 </Anchor>
114 </Anchors>
115 </CheckButton>
116 </Frames>
117 <!-- Layers -->
118 <Layers>
119 <Layer level="ARTWORK">
120 <!-- Portrait Texture -->
121 <Texture name="$parentPortrait">
122 <Size>
123 <AbsDimension x="32" y="32"/>
124 </Size>
125 <Anchors>
126 <Anchor point="CENTER" relativePoint="LEFT">
127 <Offset>
128 <AbsDimension x="48" y="10"/>
129 </Offset>
130 </Anchor>
131 </Anchors>
132 </Texture>
133  
134 <!-- Text Labels -->
135 <FontString name="$parentLabel" inherits="GameFontHighlightLarge" text="A">
136 <Size>
137 <AbsDimension x="150" y="14"/>
138 </Size>
139 <Anchors>
140 <Anchor point="CENTER" relativePoint="LEFT">
141 <Offset>
142 <AbsDimension x="70" y="-5"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 <Color r=".9" g=".6" b="0.3"/>
147 </FontString>
148 <FontString name="$parentEquip1Text" inherits="GameFontHighlight" text="1">
149 <Size>
150 <AbsDimension x="100" y="14"/>
151 </Size>
152 <Anchors>
153 <Anchor point="CENTER" relativePoint="TOP">
154 <Offset>
155 <AbsDimension x="-60" y="0"/>
156 </Offset>
157 </Anchor>
158 </Anchors>
159 </FontString>
160 <FontString name="$parentEquip2Text" inherits="GameFontHighlight" text="2">
161 <Size>
162 <AbsDimension x="100" y="14"/>
163 </Size>
164 <Anchors>
165 <Anchor point="CENTER" relativePoint="TOP">
166 <Offset>
167 <AbsDimension x="-16" y="0"/>
168 </Offset>
169 </Anchor>
170 </Anchors>
171 </FontString>
172 <FontString name="$parentEquip3Text" inherits="GameFontHighlight" text="3">
173 <Size>
174 <AbsDimension x="100" y="14"/>
175 </Size>
176 <Anchors>
177 <Anchor point="CENTER" relativePoint="TOP">
178 <Offset>
179 <AbsDimension x="28" y="0"/>
180 </Offset>
181 </Anchor>
182 </Anchors>
183 </FontString>
184 <FontString name="$parentEquip4Text" inherits="GameFontHighlight" text="4">
185 <Size>
186 <AbsDimension x="100" y="14"/>
187 </Size>
188 <Anchors>
189 <Anchor point="CENTER" relativePoint="TOP">
190 <Offset>
191 <AbsDimension x="72" y="0"/>
192 </Offset>
193 </Anchor>
194 </Anchors>
195 </FontString>
196 <FontString name="$parentEquip5Text" inherits="GameFontHighlight" text="5">
197 <Size>
198 <AbsDimension x="100" y="14"/>
199 </Size>
200 <Anchors>
201 <Anchor point="CENTER" relativePoint="TOP">
202 <Offset>
203 <AbsDimension x="116" y="0"/>
204 </Offset>
205 </Anchor>
206 </Anchors>
207 </FontString>
208 </Layer>
209 </Layers>
210 </Frame>
211  
212  
213 <Frame name="QuickMountFrame" toplevel="true" enableMouse="true" frameStrata="HIGH" movable="true" parent="UIParent" hidden="true">
214 <Size>
215 <AbsDimension x="384" y="514"/>
216 </Size>
217 <Anchors>
218 <Anchor point="TOPLEFT">
219 <Offset>
220 <AbsDimension x="400" y="-104"/>
221 </Offset>
222 </Anchor>
223 </Anchors>
224 <Layers>
225 <Layer level="BACKGROUND">
226 <Texture name="$parentMainIcon" file="Interface\AddOns\QuickMountEquip\MountIcon">
227 <Size>
228 <AbsDimension x="64" y="64"/>
229 </Size>
230 <Anchors>
231 <Anchor point="TOPLEFT">
232 <Offset>
233 <AbsDimension x="4" y="-4"/>
234 </Offset>
235 </Anchor>
236 </Anchors>
237 </Texture>
238 </Layer>
239 <Layer level="ARTWORK">
240 <Texture name="$parentTopLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
241 <Size>
242 <AbsDimension x="256" y="256"/>
243 </Size>
244 <Anchors>
245 <Anchor point="TOPLEFT"/>
246 </Anchors>
247 </Texture>
248 <Texture name="$parentTopRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
249 <Size>
250 <AbsDimension x="128" y="256"/>
251 </Size>
252 <Anchors>
253 <Anchor point="TOPRIGHT"/>
254 </Anchors>
255 </Texture>
256 <Texture name="$parentBotLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-BotLeft">
257 <Size>
258 <AbsDimension x="256" y="256"/>
259 </Size>
260 <Anchors>
261 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
262 <Offset>
263 <AbsDimension x="0" y="-256"/>
264 </Offset>
265 </Anchor>
266 </Anchors>
267 </Texture>
268 <Texture name="$parentBotRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-BotRight">
269 <Size>
270 <AbsDimension x="128" y="256"/>
271 </Size>
272 <Anchors>
273 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
274 <Offset>
275 <AbsDimension x="0" y="-256"/>
276 </Offset>
277 </Anchor>
278 </Anchors>
279 </Texture>
280 <FontString name="$parentTitleText" inherits="GameFontHighlight" text="SOME_TITLE">
281 <Size>
282 <AbsDimension x="300" y="14"/>
283 </Size>
284 <Anchors>
285 <Anchor point="TOP" relativePoint="TOP">
286 <Offset>
287 <AbsDimension x="0" y="-16"/>
288 </Offset>
289 </Anchor>
290 </Anchors>
291 </FontString>
292 <FontString name="QuickMountFrameHelpText" inherits="GameFontNormalSmall" justifyH="LEFT">
293 <Size>
294 <AbsDimension x="260" y="60"/>
295 </Size>
296 <Anchors>
297 <Anchor point="TOP" relativePoint="TOP">
298 <Offset>
299 <AbsDimension x="20" y="-33"/>
300 </Offset>
301 </Anchor>
302 </Anchors>
303 <Color r="0.6" g="0.6" b="0.8"/>
304 </FontString>
305 </Layer>
306 </Layers>
307 <Frames>
308 <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
309 <Anchors>
310 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
311 <Offset>
312 <AbsDimension x="-30" y="-8"/>
313 </Offset>
314 </Anchor>
315 </Anchors>
316 </Button>
317 <Button name="$parentExitButton" inherits="UIPanelButtonTemplate" text="Exit">
318 <Size>
319 <AbsDimension x="77" y="21"/>
320 </Size>
321 <Anchors>
322 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRight" relativePoint="BOTTOMRIGHT">
323 <Offset>
324 <AbsDimension x="-43" y="81"/>
325 </Offset>
326 </Anchor>
327 </Anchors>
328 <Scripts>
329 <OnClick>
330 HideUIPanel(this:GetParent());
331 </OnClick>
332 </Scripts>
333 </Button>
334 <Frame name="$parentVersion">
335 <Size>
336 <AbsDimension x="70" y="22"/>
337 </Size>
338 <Anchors>
339 <Anchor point="CENTER" relativeTo="$parentBotLeft" relativePoint="BOTTOMLEFT">
340 <Offset>
341 <AbsDimension x="63" y="92"/>
342 </Offset>
343 </Anchor>
344 </Anchors>
345 <Layers>
346 <Layer level="BACKGROUND">
347 <FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="LEFT"/>
348 <FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="RIGHT"/>
349 </Layer>
350 </Layers>
351 </Frame>
352 <Frame name="QuickMountButtonSet1" inherits="QuickMountEquipSetTemplate">
353 <Anchors>
354 <Anchor point="TOP" relativeTo="QuickMountFrame" relativePoint="TOP">
355 <Offset>
356 <AbsDimension x="0" y="-118"/>
357 </Offset>
358 </Anchor>
359 </Anchors>
360 <Scripts>
361 <OnLoad>
362 this:SetID("1");
363 getglobal(this:GetName().."Label"):SetText("Mount");
364 </OnLoad>
365 </Scripts>
366 </Frame>
367 <Frame name="QuickMountButtonSet2" inherits="QuickMountEquipSetTemplate">
368 <Anchors>
369 <Anchor point="TOP" relativeTo="QuickMountButtonSet1" relativePoint="BOTTOM">
370 <Offset>
371 <AbsDimension x="0" y="-8"/>
372 </Offset>
373 </Anchor>
374 </Anchors>
375 <Scripts>
376 <OnLoad>
377 this:SetID("2");
378 getglobal(this:GetName().."Label"):SetText("Unmount");
379 </OnLoad>
380 </Scripts>
381 </Frame>
382 <Frame name="QuickMountOptions">
383 <Size>
384 <AbsDimension x="100" y="40"/>
385 </Size>
386 <Anchors>
387 <Anchor point="TOPLEFT" relativeTo="QuickMountButtonSet2" relativePoint="BOTTOMLEFT">
388 <Offset>
389 <AbsDimension x="40" y="-25"/>
390 </Offset>
391 </Anchor>
392 </Anchors>
393 <Layers>
394 <Layer level="BACKGROUND">
395 <FontString name="QuickMountOptionsLabel" inherits="GameFontHighlightLarge" justifyH="LEFT"/>
396 </Layer>
397 </Layers>
398 </Frame>
399 <CheckButton name="QuickMountCheck1" inherits="QuickMountCheckButtonTemplate">
400 <Anchors>
401 <Anchor point="TOPLEFT" relativeTo="QuickMountOptions" relativePoint="BOTTOMLEFT">
402 <Offset>
403 <AbsDimension x="10" y="5"/>
404 </Offset>
405 </Anchor>
406 </Anchors>
407 </CheckButton>
408 <CheckButton name="QuickMountCheck2" inherits="QuickMountCheckButtonTemplate">
409 <Anchors>
410 <Anchor point="TOPLEFT" relativeTo="QuickMountCheck1" relativePoint="BOTTOMLEFT" />
411 </Anchors>
412 </CheckButton>
413 <CheckButton name="QuickMountCheck3" inherits="QuickMountCheckButtonTemplate">
414 <Anchors>
415 <Anchor point="TOPLEFT" relativeTo="QuickMountCheck2" relativePoint="BOTTOMLEFT" />
416 </Anchors>
417 </CheckButton>
418 <CheckButton name="QuickMountCheck4" inherits="QuickMountCheckButtonTemplate">
419 <Anchors>
420 <Anchor point="TOPLEFT" relativeTo="QuickMountCheck3" relativePoint="BOTTOMLEFT" />
421 </Anchors>
422 </CheckButton>
423 <CheckButton name="QuickMountCheck5" inherits="QuickMountCheckButtonTemplate">
424 <Anchors>
425 <Anchor point="TOPLEFT" relativeTo="QuickMountCheck4" relativePoint="BOTTOMLEFT" />
426 </Anchors>
427 </CheckButton>
428 <Button name="$parentResetButton" inherits="UIPanelButtonTemplate" text="Reset">
429 <Size>
430 <AbsDimension x="77" y="21"/>
431 </Size>
432 <Anchors>
433 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRight" relativePoint="BOTTOMRIGHT">
434 <Offset>
435 <AbsDimension x="-124" y="81"/>
436 </Offset>
437 </Anchor>
438 </Anchors>
439 <Scripts>
440 <OnClick>
441 if ( this.reset ) then
442 -- QuickMount_Reset();
443 this.reset = nil;
444 else
445 this.reset = 1;
446 end
447 QuickMount_OnShow();
448 </OnClick>
449 </Scripts>
450 </Button>
451 </Frames>
452 <Scripts>
453 <OnLoad>
454 getglobal(this:GetName().."VersionLabel"):SetText("Version");
455 getglobal(this:GetName().."VersionText"):SetText(QuickMount_Version);
456 getglobal("QuickMountOptionsLabel"):SetText("Options:");
457 -- Make Frame Moveable.
458 tinsert(UISpecialFrames, "QuickMountFrame");
459 UIPanelWindows["QuickMountFrame"] = { area = "left", pushable = 11 };
460 this:RegisterForDrag("LeftButton");
461 QuickMount_OnLoad();
462 </OnLoad>
463 <OnShow>
464 QuickMount_OnShow();
465 </OnShow>
466 <OnHide>
467 QuickMount_OnHide();
468 </OnHide>
469 <OnEvent>
470 QuickMount_OnEvent(event);
471 </OnEvent>
472 <OnDragStart>
473 this:StartMoving();
474 </OnDragStart>
475 <OnDragStop>
476 this:StopMovingOrSizing();
477 </OnDragStop>
478 <OnMouseUp>
479 this:StopMovingOrSizing();
480 </OnMouseUp>
481 </Scripts>
482 </Frame>
483 <GameTooltip name="QuickMountTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true">
484 <Scripts>
485 <OnLoad>
486 this:RegisterEvent("PLAYER_ENTERING_WORLD");
487 </OnLoad>
488 <OnEvent>
489 if (event == "PLAYER_ENTERING_WORLD") then
490 this:SetOwner(UIParent, "ANCHOR_NONE");
491 end
492 </OnEvent>
493 </Scripts>
494 </GameTooltip>
495  
496 </Ui>