vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xmlns="http://www.blizzard.com/wow/ui/">
2 <Script file="TrinketMenu.lua"/>
3  
4 <!-- Templates -->
5  
6 <FontString name="TrinketMenuFont" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" justifyH="LEFT" virtual="true">
7 <FontHeight>
8 <AbsValue val="9"/>
9 </FontHeight>
10 <Color r="1.0" g="1.0" b="1.0"/>
11 </FontString>
12  
13 <CheckButton name="TrinketMenuCheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
14 <Size>
15 <AbsDimension x="20" y="20"/>
16 </Size>
17 <Scripts>
18 <OnEnter>
19 TrinketMenu_Opt_OnEnter()
20 </OnEnter>
21 <OnLeave>
22 GameTooltip:Hide()
23 </OnLeave>
24 <OnClick>
25 TrinketMenu_Opt_OnClick()
26 </OnClick>
27 </Scripts>
28 </CheckButton>
29  
30 <Button name="TrinketMenuResizeTemplate" virtual="true">
31 <Size>
32 <AbsDimension x="16" y="16"/>
33 </Size>
34 <Scripts>
35 <OnMouseDown>
36 TrinketMenu_StartScaling(arg1)
37 </OnMouseDown>
38 <OnMouseUp>
39 TrinketMenu_StopScaling(arg1)
40 </OnMouseUp>
41 </Scripts>
42 <NormalTexture file="Interface\AddOns\TrinketMenu\TrinketMenu-ResizeGrip"/>
43 <HighlightTexture file="Interface\AddOns\TrinketMenu\TrinketMenu-ResizeGrip" alphaMode="ADD"/>
44 <!-- <HighlightTexture file="Interface\Cooldown\star4" alphaMode="ADD"/> -->
45 </Button>
46  
47 <CheckButton name="TrinketMenuMainTrinketTemplate" inherits="ActionButtonTemplate" virtual="true">
48 <Scripts>
49 <OnLoad>
50 this:RegisterForClicks("LeftButtonUp","RightButtonUp")
51 </OnLoad>
52 <OnEnter>
53 TrinketMenu_ShowMenu()
54 TrinketMenu_InventoryTooltip()
55 </OnEnter>
56 <OnLeave>
57 TrinketMenu_ClearTooltip()
58 </OnLeave>
59 <OnClick>
60 TrinketMenu_Trinket_OnClick(arg1)
61 </OnClick>
62 </Scripts>
63 </CheckButton>
64  
65 <CheckButton name="TrinketMenuSwapTrinketTemplate" inherits="ActionButtonTemplate" virtual="true">
66 <Scripts>
67 <OnLoad>
68 this:RegisterForClicks("LeftButtonUp","RightButtonUp")
69 </OnLoad>
70 <OnEnter>
71 TrinketMenu_BagTooltip()
72 </OnEnter>
73 <OnLeave>
74 TrinketMenu_ClearTooltip()
75 </OnLeave>
76 <OnClick>
77 TrinketMenu_SwapTrinket(arg1)
78 </OnClick>
79 </Scripts>
80 </CheckButton>
81  
82 <Frame name="TrinketMenuTimeTemplate" enableMouse="false" virtual="true">
83 <Size>
84 <AbsDimension x="36" y="12"/>
85 </Size>
86 <Anchors>
87 <Anchor point="BOTTOMRIGHT"/>
88 </Anchors>
89 <Layers>
90 <Layer level="OVERLAY">
91 <FontString name="$parentTime" inherits="NumberFontNormal" justifyH="CENTER"/>
92 </Layer>
93 </Layers>
94 </Frame>
95  
96 <Frame name="TrinketMenuQueueTemplate" enableMouse="false" virtual="true">
97 <Size>
98 <AbsDimension x="18" y="18"/>
99 </Size>
100 <Anchors>
101 <Anchor point="TOPLEFT">
102 <Offset>
103 <AbsDimension x="-2" y="2"/>
104 </Offset>
105 </Anchor>
106 </Anchors>
107 <Layers>
108 <Layer level="OVERLAY">
109 <Texture name="$parentQueue"/>
110 </Layer>
111 </Layers>
112 </Frame>
113  
114 <!-- MainFrame: Equipped Trinkets -->
115  
116 <Frame name="TrinketMenu_MainFrame" toplevel="true" frameStrata="LOW" enableMouse="true" movable="true" parent="UIParent">
117 <Size>
118 <AbsDimension x="91" y="52" />
119 </Size>
120 <Anchors>
121 <Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="BOTTOMLEFT">
122 <Offset>
123 <AbsDimension x="400" y="400"/>
124 </Offset>
125 </Anchor>
126 </Anchors>
127  
128 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
129 <BackgroundInsets>
130 <AbsInset left="4" right="4" top="4" bottom="4" />
131 </BackgroundInsets>
132 <TileSize>
133 <AbsValue val="16" />
134 </TileSize>
135 <EdgeSize>
136 <AbsValue val="16" />
137 </EdgeSize>
138 </Backdrop>
139  
140 <Layers>
141 <Layer level="OVERLAY">
142 <Texture name="TrinketMenu_MainDock_TOPRIGHT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
143 <Size>
144 <AbsDimension x="16" y="16"/>
145 </Size>
146 <Anchors>
147 <Anchor point="TOPRIGHT"/>
148 </Anchors>
149 <TexCoords left="0.625" right="0.75" top="0" bottom="1"/>
150 </Texture>
151 <Texture name="TrinketMenu_MainDock_TOPLEFT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
152 <Size>
153 <AbsDimension x="16" y="16"/>
154 </Size>
155 <Anchors>
156 <Anchor point="TOPLEFT"/>
157 </Anchors>
158 <TexCoords left="0.5" right="0.625" top="0" bottom="1"/>
159 </Texture>
160 <Texture name="TrinketMenu_MainDock_BOTTOMLEFT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
161 <Size>
162 <AbsDimension x="16" y="16"/>
163 </Size>
164 <Anchors>
165 <Anchor point="BOTTOMLEFT"/>
166 </Anchors>
167 <TexCoords left="0.75" right="0.875" top="0" bottom="1"/>
168 </Texture>
169 <Texture name="TrinketMenu_MainDock_BOTTOMRIGHT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
170 <Size>
171 <AbsDimension x="16" y="16"/>
172 </Size>
173 <Anchors>
174 <Anchor point="BOTTOMRIGHT"/>
175 </Anchors>
176 <TexCoords left="0.875" right="1" top="0" bottom="1"/>
177 </Texture>
178 </Layer>
179 </Layers>
180  
181 <Frames>
182 <CheckButton name="TrinketMenu_Trinket0" inherits="TrinketMenuMainTrinketTemplate" id="13">
183 <Anchors>
184 <Anchor point="TOPLEFT">
185 <Offset>
186 <AbsDimension x="8" y="-8"/>
187 </Offset>
188 </Anchor>
189 </Anchors>
190 </CheckButton>
191 <Frame parent="TrinketMenu_Trinket0" inherits="TrinketMenuTimeTemplate"/>
192 <Frame parent="TrinketMenu_Trinket0" inherits="TrinketMenuQueueTemplate"/>
193  
194 <CheckButton name="TrinketMenu_Trinket1" inherits="TrinketMenuMainTrinketTemplate" id="14">
195 <Anchors>
196 <Anchor point="BOTTOMRIGHT">
197 <Offset>
198 <AbsDimension x="-8" y="8"/>
199 </Offset>
200 </Anchor>
201 </Anchors>
202 </CheckButton>
203 <Frame parent="TrinketMenu_Trinket1" inherits="TrinketMenuTimeTemplate"/>
204 <Frame parent="TrinketMenu_Trinket1" inherits="TrinketMenuQueueTemplate"/>
205  
206 <Button name="TrinketMenu_MainResizeButton" inherits="TrinketMenuResizeTemplate">
207 <Anchors>
208 <Anchor point="BOTTOMRIGHT">
209 <Offset>
210 <AbsDimension x="1" y="-1"/>
211 </Offset>
212 </Anchor>
213 </Anchors>
214 </Button>
215 </Frames>
216  
217 <Scripts>
218 <OnLoad>
219 TrinketMenu_OnLoad();
220 </OnLoad>
221 <OnEvent>
222 TrinketMenu_OnEvent(event);
223 </OnEvent>
224 <OnEnter>
225 TrinketMenu_ShowMenu()
226 </OnEnter>
227 <OnMouseDown>
228 TrinketMenu_MainFrame_OnMouseDown(arg1);
229 </OnMouseDown>
230 <OnMouseUp>
231 TrinketMenu_MainFrame_OnMouseUp(arg1);
232 </OnMouseUp>
233 </Scripts>
234 </Frame>
235  
236 <!-- MenuFrame: Bagged Trinkets -->
237  
238 <Frame name="TrinketMenu_MenuFrame" toplevel="true" frameStrata="MEDIUM" enableMouse="true" movable="true" parent="UIParent" hidden="true">
239 <Size>
240 <AbsDimension x="52" y="91" />
241 </Size>
242 <Anchors>
243 <Anchor point="BOTTOMLEFT" relativeTo="TrinketMenu_MainFrame" relativePoint="BOTTOMRIGHT"/>
244 </Anchors>
245  
246 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
247 <BackgroundInsets>
248 <AbsInset left="4" right="4" top="4" bottom="4" />
249 </BackgroundInsets>
250 <TileSize>
251 <AbsValue val="16" />
252 </TileSize>
253 <EdgeSize>
254 <AbsValue val="16" />
255 </EdgeSize>
256 </Backdrop>
257  
258 <Layers>
259 <Layer level="OVERLAY">
260 <Texture name="TrinketMenu_MenuDock_TOPRIGHT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
261 <Size>
262 <AbsDimension x="16" y="16"/>
263 </Size>
264 <Anchors>
265 <Anchor point="TOPRIGHT"/>
266 </Anchors>
267 <TexCoords left="0.625" right="0.75" top="0" bottom="1"/>
268 </Texture>
269 <Texture name="TrinketMenu_MenuDock_TOPLEFT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
270 <Size>
271 <AbsDimension x="16" y="16"/>
272 </Size>
273 <Anchors>
274 <Anchor point="TOPLEFT"/>
275 </Anchors>
276 <TexCoords left="0.5" right="0.625" top="0" bottom="1"/>
277 </Texture>
278 <Texture name="TrinketMenu_MenuDock_BOTTOMLEFT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
279 <Size>
280 <AbsDimension x="16" y="16"/>
281 </Size>
282 <Anchors>
283 <Anchor point="BOTTOMLEFT"/>
284 </Anchors>
285 <TexCoords left="0.75" right="0.875" top="0" bottom="1"/>
286 </Texture>
287 <Texture name="TrinketMenu_MenuDock_BOTTOMRIGHT" file="Interface\Tooltips\UI-Tooltip-Border" alphaMode="ADD" hidden="true">
288 <Size>
289 <AbsDimension x="16" y="16"/>
290 </Size>
291 <Anchors>
292 <Anchor point="BOTTOMRIGHT"/>
293 </Anchors>
294 <TexCoords left="0.875" right="1" top="0" bottom="1"/>
295 </Texture>
296 </Layer>
297 </Layers>
298  
299 <Frames>
300 <Button name="TrinketMenu_MenuResizeButton" inherits="TrinketMenuResizeTemplate">
301 <Anchors>
302 <Anchor point="BOTTOMRIGHT">
303 <Offset>
304 <AbsDimension x="1" y="-1"/>
305 </Offset>
306 </Anchor>
307 </Anchors>
308 </Button>
309  
310 <CheckButton name="TrinketMenu_Menu1" inherits="TrinketMenuSwapTrinketTemplate" id="1"/>
311 <CheckButton name="TrinketMenu_Menu2" inherits="TrinketMenuSwapTrinketTemplate" id="2"/>
312 <CheckButton name="TrinketMenu_Menu3" inherits="TrinketMenuSwapTrinketTemplate" id="3"/>
313 <CheckButton name="TrinketMenu_Menu4" inherits="TrinketMenuSwapTrinketTemplate" id="4"/>
314 <CheckButton name="TrinketMenu_Menu5" inherits="TrinketMenuSwapTrinketTemplate" id="5"/>
315 <CheckButton name="TrinketMenu_Menu6" inherits="TrinketMenuSwapTrinketTemplate" id="6"/>
316 <CheckButton name="TrinketMenu_Menu7" inherits="TrinketMenuSwapTrinketTemplate" id="7"/>
317 <CheckButton name="TrinketMenu_Menu8" inherits="TrinketMenuSwapTrinketTemplate" id="8"/>
318 <CheckButton name="TrinketMenu_Menu9" inherits="TrinketMenuSwapTrinketTemplate" id="9"/>
319 <CheckButton name="TrinketMenu_Menu10" inherits="TrinketMenuSwapTrinketTemplate" id="10"/>
320 <CheckButton name="TrinketMenu_Menu11" inherits="TrinketMenuSwapTrinketTemplate" id="11"/>
321 <CheckButton name="TrinketMenu_Menu12" inherits="TrinketMenuSwapTrinketTemplate" id="12"/>
322 <CheckButton name="TrinketMenu_Menu13" inherits="TrinketMenuSwapTrinketTemplate" id="13"/>
323 <CheckButton name="TrinketMenu_Menu14" inherits="TrinketMenuSwapTrinketTemplate" id="14"/>
324 <CheckButton name="TrinketMenu_Menu15" inherits="TrinketMenuSwapTrinketTemplate" id="15"/>
325 <CheckButton name="TrinketMenu_Menu16" inherits="TrinketMenuSwapTrinketTemplate" id="16"/>
326 <CheckButton name="TrinketMenu_Menu17" inherits="TrinketMenuSwapTrinketTemplate" id="17"/>
327 <CheckButton name="TrinketMenu_Menu18" inherits="TrinketMenuSwapTrinketTemplate" id="18"/>
328 <CheckButton name="TrinketMenu_Menu19" inherits="TrinketMenuSwapTrinketTemplate" id="19"/>
329 <CheckButton name="TrinketMenu_Menu20" inherits="TrinketMenuSwapTrinketTemplate" id="20"/>
330 <CheckButton name="TrinketMenu_Menu21" inherits="TrinketMenuSwapTrinketTemplate" id="21"/>
331 <CheckButton name="TrinketMenu_Menu22" inherits="TrinketMenuSwapTrinketTemplate" id="22"/>
332 <CheckButton name="TrinketMenu_Menu23" inherits="TrinketMenuSwapTrinketTemplate" id="23"/>
333 <CheckButton name="TrinketMenu_Menu24" inherits="TrinketMenuSwapTrinketTemplate" id="24"/>
334 <CheckButton name="TrinketMenu_Menu25" inherits="TrinketMenuSwapTrinketTemplate" id="25"/>
335 <CheckButton name="TrinketMenu_Menu26" inherits="TrinketMenuSwapTrinketTemplate" id="26"/>
336 <CheckButton name="TrinketMenu_Menu27" inherits="TrinketMenuSwapTrinketTemplate" id="27"/>
337 <CheckButton name="TrinketMenu_Menu28" inherits="TrinketMenuSwapTrinketTemplate" id="28"/>
338 <CheckButton name="TrinketMenu_Menu29" inherits="TrinketMenuSwapTrinketTemplate" id="29"/>
339 <CheckButton name="TrinketMenu_Menu30" inherits="TrinketMenuSwapTrinketTemplate" id="30"/>
340  
341 <Frame parent="TrinketMenu_Menu1" inherits="TrinketMenuTimeTemplate"/>
342 <Frame parent="TrinketMenu_Menu2" inherits="TrinketMenuTimeTemplate"/>
343 <Frame parent="TrinketMenu_Menu3" inherits="TrinketMenuTimeTemplate"/>
344 <Frame parent="TrinketMenu_Menu4" inherits="TrinketMenuTimeTemplate"/>
345 <Frame parent="TrinketMenu_Menu5" inherits="TrinketMenuTimeTemplate"/>
346 <Frame parent="TrinketMenu_Menu6" inherits="TrinketMenuTimeTemplate"/>
347 <Frame parent="TrinketMenu_Menu7" inherits="TrinketMenuTimeTemplate"/>
348 <Frame parent="TrinketMenu_Menu8" inherits="TrinketMenuTimeTemplate"/>
349 <Frame parent="TrinketMenu_Menu9" inherits="TrinketMenuTimeTemplate"/>
350 <Frame parent="TrinketMenu_Menu10" inherits="TrinketMenuTimeTemplate"/>
351 <Frame parent="TrinketMenu_Menu11" inherits="TrinketMenuTimeTemplate"/>
352 <Frame parent="TrinketMenu_Menu12" inherits="TrinketMenuTimeTemplate"/>
353 <Frame parent="TrinketMenu_Menu13" inherits="TrinketMenuTimeTemplate"/>
354 <Frame parent="TrinketMenu_Menu14" inherits="TrinketMenuTimeTemplate"/>
355 <Frame parent="TrinketMenu_Menu15" inherits="TrinketMenuTimeTemplate"/>
356 <Frame parent="TrinketMenu_Menu16" inherits="TrinketMenuTimeTemplate"/>
357 <Frame parent="TrinketMenu_Menu17" inherits="TrinketMenuTimeTemplate"/>
358 <Frame parent="TrinketMenu_Menu18" inherits="TrinketMenuTimeTemplate"/>
359 <Frame parent="TrinketMenu_Menu19" inherits="TrinketMenuTimeTemplate"/>
360 <Frame parent="TrinketMenu_Menu20" inherits="TrinketMenuTimeTemplate"/>
361 <Frame parent="TrinketMenu_Menu21" inherits="TrinketMenuTimeTemplate"/>
362 <Frame parent="TrinketMenu_Menu22" inherits="TrinketMenuTimeTemplate"/>
363 <Frame parent="TrinketMenu_Menu23" inherits="TrinketMenuTimeTemplate"/>
364 <Frame parent="TrinketMenu_Menu24" inherits="TrinketMenuTimeTemplate"/>
365 <Frame parent="TrinketMenu_Menu25" inherits="TrinketMenuTimeTemplate"/>
366 <Frame parent="TrinketMenu_Menu26" inherits="TrinketMenuTimeTemplate"/>
367 <Frame parent="TrinketMenu_Menu27" inherits="TrinketMenuTimeTemplate"/>
368 <Frame parent="TrinketMenu_Menu28" inherits="TrinketMenuTimeTemplate"/>
369 <Frame parent="TrinketMenu_Menu29" inherits="TrinketMenuTimeTemplate"/>
370 <Frame parent="TrinketMenu_Menu30" inherits="TrinketMenuTimeTemplate"/>
371  
372 </Frames>
373  
374 <Scripts>
375 <OnEnter>
376 TrinketMenu_ResetMenuTimer()
377 </OnEnter>
378 <OnUpdate>
379 TrinketMenu_MenuFrame_OnUpdate(arg1)
380 </OnUpdate>
381 <OnMouseDown>
382 TrinketMenu_MenuFrame_OnMouseDown(arg1)
383 </OnMouseDown>
384 <OnMouseUp>
385 TrinketMenu_MenuFrame_OnMouseUp(arg1)
386 </OnMouseUp>
387 </Scripts>
388 </Frame>
389  
390 <Button name="TrinketMenu_IconFrame" frameStrata="LOW" parent="Minimap" enableMouse="true" movable="true" hidden="false">
391 <Size>
392 <AbsDimension x="32" y="32"/>
393 </Size>
394 <Anchors>
395 <Anchor point="TOPLEFT"/>
396 </Anchors>
397 <NormalTexture file="Interface\AddOns\TrinketMenu\TrinketMenu-Icon-Up"/>
398 <PushedTexture file="Interface\AddOns\TrinketMenu\TrinketMenu-Icon-Down"/>
399 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
400 <Scripts>
401 <OnLoad>
402 this:RegisterForClicks("LeftButtonUp","RightButtonUp")
403 this:RegisterForDrag("LeftButton")
404 </OnLoad>
405 <OnEnter>
406 TrinketMenu_OnTooltip("TrinketMenu",(TrinketMenuOptions.DisableToggle=="ON") and "Click: toggle options\nDrag: move icon" or "Left click: toggle trinkets\nRight click: toggle options\nDrag: move icon")
407 </OnEnter>
408 <OnLeave>
409 GameTooltip:Hide()
410 </OnLeave>
411 <OnDragStart>
412 this:LockHighlight()
413 TrinketMenu_IconDraggingFrame:Show()
414 </OnDragStart>
415 <OnDragStop>
416 TrinketMenu_IconDraggingFrame:Hide()
417 this:UnlockHighlight()
418 </OnDragStop>
419 <OnClick>
420 TrinketMenu_IconFrame_OnClick(arg1)
421 </OnClick>
422 </Scripts>
423 </Button>
424  
425 <Frame name="TrinketMenu_OptFrame" frameStrata="HIGH" parent="UIParent" enableMouse="true" movable="true" hidden="true">
426 <Size>
427 <AbsDimension x="160" y="308"/>
428 </Size>
429 <Anchors>
430 <Anchor point="CENTER"/>
431 </Anchors>
432 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
433 <TileSize>
434 <AbsValue val="16" />
435 </TileSize>
436 <EdgeSize>
437 <AbsValue val="16" />
438 </EdgeSize>
439 </Backdrop>
440 <Layers>
441 <Layer level="BACKGROUND">
442 <Texture name="TrinketMenuOptBackdrop" file="Interface\Icons\INV_Gizmo_02">
443 <Anchors>
444 <Anchor point="TOPLEFT">
445 <Offset>
446 <AbsDimension x="4" y="-4"/>
447 </Offset>
448 </Anchor>
449 <Anchor point="BOTTOMRIGHT">
450 <Offset>
451 <AbsDimension x="-4" y="4"/>
452 </Offset>
453 </Anchor>
454 </Anchors>
455 <TexCoords left=".15" right=".55" top=".15" bottom=".85"/>
456 </Texture>
457 <FontString name="TrinketMenu_Title" inherits="GameFontHighlight">
458 <Anchors>
459 <Anchor point="TOP">
460 <Offset>
461 <AbsDimension x="0" y="-8"/>
462 </Offset>
463 </Anchor>
464 </Anchors>
465 </FontString>
466 </Layer>
467 </Layers>
468 <Frames>
469 <CheckButton name="TrinketMenuOptShowIcon" inherits="TrinketMenuCheckTemplate">
470 <Anchors>
471 <Anchor point="TOPLEFT">
472 <Offset>
473 <AbsDimension x="8" y="-24"/>
474 </Offset>
475 </Anchor>
476 </Anchors>
477 </CheckButton>
478 <CheckButton name="TrinketMenuOptDisableToggle" inherits="TrinketMenuCheckTemplate">
479 <Anchors>
480 <Anchor point="TOPLEFT">
481 <Offset>
482 <AbsDimension x="24" y="-42"/>
483 </Offset>
484 </Anchor>
485 </Anchors>
486 </CheckButton>
487 <CheckButton name="TrinketMenuOptSquareMinimap" inherits="TrinketMenuCheckTemplate">
488 <Anchors>
489 <Anchor point="TOPLEFT">
490 <Offset>
491 <AbsDimension x="24" y="-60"/>
492 </Offset>
493 </Anchor>
494 </Anchors>
495 </CheckButton>
496 <CheckButton name="TrinketMenuOptLocked" inherits="TrinketMenuCheckTemplate">
497 <Anchors>
498 <Anchor point="TOPLEFT">
499 <Offset>
500 <AbsDimension x="8" y="-78"/>
501 </Offset>
502 </Anchor>
503 </Anchors>
504 </CheckButton>
505 <CheckButton name="TrinketMenuOptShowTooltips" inherits="TrinketMenuCheckTemplate">
506 <Anchors>
507 <Anchor point="TOPLEFT">
508 <Offset>
509 <AbsDimension x="8" y="-96"/>
510 </Offset>
511 </Anchor>
512 </Anchors>
513 </CheckButton>
514 <CheckButton name="TrinketMenuOptTooltipFollow" inherits="TrinketMenuCheckTemplate">
515 <Anchors>
516 <Anchor point="TOPLEFT">
517 <Offset>
518 <AbsDimension x="24" y="-114"/>
519 </Offset>
520 </Anchor>
521 </Anchors>
522 </CheckButton>
523 <CheckButton name="TrinketMenuOptCooldownCount" inherits="TrinketMenuCheckTemplate">
524 <Anchors>
525 <Anchor point="TOPLEFT">
526 <Offset>
527 <AbsDimension x="8" y="-132"/>
528 </Offset>
529 </Anchor>
530 </Anchors>
531 </CheckButton>
532 <CheckButton name="TrinketMenuOptMenuOnShift" inherits="TrinketMenuCheckTemplate">
533 <Anchors>
534 <Anchor point="TOPLEFT">
535 <Offset>
536 <AbsDimension x="8" y="-150"/>
537 </Offset>
538 </Anchor>
539 </Anchors>
540 </CheckButton>
541 <CheckButton name="TrinketMenuOptKeepOpen" inherits="TrinketMenuCheckTemplate">
542 <Anchors>
543 <Anchor point="TOPLEFT">
544 <Offset>
545 <AbsDimension x="8" y="-168"/>
546 </Offset>
547 </Anchor>
548 </Anchors>
549 </CheckButton>
550 <CheckButton name="TrinketMenuOptKeepDocked" inherits="TrinketMenuCheckTemplate">
551 <Anchors>
552 <Anchor point="TOPLEFT">
553 <Offset>
554 <AbsDimension x="8" y="-186"/>
555 </Offset>
556 </Anchor>
557 </Anchors>
558 </CheckButton>
559 <CheckButton name="TrinketMenuOptNotify" inherits="TrinketMenuCheckTemplate">
560 <Anchors>
561 <Anchor point="TOPLEFT">
562 <Offset>
563 <AbsDimension x="8" y="-204"/>
564 </Offset>
565 </Anchor>
566 </Anchors>
567 </CheckButton>
568 <CheckButton name="TrinketMenuOptNotifyUsedOnly" inherits="TrinketMenuCheckTemplate">
569 <Anchors>
570 <Anchor point="TOPLEFT">
571 <Offset>
572 <AbsDimension x="24" y="-222"/>
573 </Offset>
574 </Anchor>
575 </Anchors>
576 </CheckButton>
577 <CheckButton name="TrinketMenuOptNotifyChatAlso" inherits="TrinketMenuCheckTemplate">
578 <Anchors>
579 <Anchor point="TOPLEFT">
580 <Offset>
581 <AbsDimension x="24" y="-240"/>
582 </Offset>
583 </Anchor>
584 </Anchors>
585 </CheckButton>
586 <CheckButton name="TrinketMenuOptNotifyThirty" inherits="TrinketMenuCheckTemplate">
587 <Anchors>
588 <Anchor point="TOPLEFT">
589 <Offset>
590 <AbsDimension x="24" y="-258"/>
591 </Offset>
592 </Anchor>
593 </Anchors>
594 </CheckButton>
595  
596 <Button name="TrinketMenuOptOk" inherits="UIPanelButtonGrayTemplate" text="Ok">
597 <Size>
598 <AbsDimension x="44" y="24"/>
599 </Size>
600 <Anchors>
601 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
602 <Offset>
603 <AbsDimension x="12" y="6" />
604 </Offset>
605 </Anchor>
606 </Anchors>
607 <NormalText inherits="GameFontHighlightSmall"/>
608 <DisabledText inherits="GameFontDisableSmall"/>
609 <HighlightText inherits="GameFontHighlightSmall"/>
610 <Scripts>
611 <OnEnter>
612 TrinketMenu_OnTooltip("Close Options","This will dismiss the options for TrinketMenu.")
613 </OnEnter>
614 <OnLeave>
615 GameTooltip:Hide()
616 </OnLeave>
617 <OnClick>
618 TrinketMenu_OptFrame:Hide()
619 </OnClick>
620 </Scripts>
621 </Button>
622  
623 <Button name="TrinketMenuOptReset" inherits="UIPanelButtonGrayTemplate" text="Reset">
624 <Size>
625 <AbsDimension x="44" y="24"/>
626 </Size>
627 <Anchors>
628 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
629 <Offset>
630 <AbsDimension x="-12" y="6" />
631 </Offset>
632 </Anchor>
633 </Anchors>
634 <NormalText inherits="GameFontHighlightSmall"/>
635 <DisabledText inherits="GameFontDisableSmall"/>
636 <HighlightText inherits="GameFontHighlightSmall"/>
637 <Scripts>
638 <OnEnter>
639 TrinketMenu_OnTooltip("Reset TrinketMenu","This will restore settings and more importantly bring the windows back on screen in the event you lose them from resizing and moving them around.")
640 </OnEnter>
641 <OnLeave>
642 GameTooltip:Hide()
643 </OnLeave>
644 <OnClick>
645 TrinketMenu_Opt_Reset()
646 </OnClick>
647 </Scripts>
648 </Button>
649  
650 <Button name="TrinketMenuOptHelp" inherits="UIPanelButtonGrayTemplate" text="?">
651 <Size>
652 <AbsDimension x="20" y="24"/>
653 </Size>
654 <Anchors>
655 <Anchor point="BOTTOM" relativePoint="BOTTOM">
656 <Offset>
657 <AbsDimension x="0" y="6"/>
658 </Offset>
659 </Anchor>
660 </Anchors>
661 <NormalText inherits="GameFontHighlightSmall"/>
662 <DisabledText inherits="GameFontDisableSmall"/>
663 <HighlightText inherits="GameFontHighlightSmall"/>
664 <Scripts>
665 <OnEnter>
666 TrinketMenu_OnTooltip("Help","This will explain how to use TrinketMenu.")
667 </OnEnter>
668 <OnLeave>
669 GameTooltip:Hide()
670 </OnLeave>
671 <OnClick>
672 TrinketMenu_OnTooltip(TrinketMenu_Title:GetText(),"This is a mod to make swapping trinkets easier.\n\nLeft-click a trinket to equip it to the top trinket slot. Right-click to equip to the bottom trinket slot.\n\nDrag the edge of a window to move it. You can dock the menu window to any corner of the equipped trinkets window by moving the corners together.\n\nDrag the lower right corner of either window to resize/scale them.\n\nRight-click the edge to rotate either window.\n\n/trinket reset : restore windows\n/trinket opt : display options")
673 </OnClick>
674 </Scripts>
675 </Button>
676  
677 </Frames>
678 <Scripts>
679 <OnLoad>
680 TrinketMenuOptBackdrop:SetVertexColor(.25,.25,.25,1)
681 </OnLoad>
682 <OnMouseDown>
683 this:StartMoving()
684 </OnMouseDown>
685 <OnMouseUp>
686 this:StopMovingOrSizing()
687 </OnMouseUp>
688 </Scripts>
689 </Frame>
690  
691 <Frame name="TrinketMenu_DebugFrame" parent="UIParent" hidden="true">
692 <Size>
693 <AbsDimension x="240" y="240"/>
694 </Size>
695 <Anchors>
696 <Anchor point="CENTER"/>
697 </Anchors>
698 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
699 <BackgroundInsets>
700 <AbsInset left="4" right="4" top="4" bottom="4" />
701 </BackgroundInsets>
702 <TileSize>
703 <AbsValue val="16" />
704 </TileSize>
705 <EdgeSize>
706 <AbsValue val="16" />
707 </EdgeSize>
708 </Backdrop>
709 <Layers>
710 <Layer level="BACKGROUND">
711 <FontString inherits="GameFontNormal" text="TrinketMenu Debug">
712 <Anchors>
713 <Anchor point="TOP">
714 <Offset>
715 <AbsDimension x="0" y="-8"/>
716 </Offset>
717 </Anchor>
718 </Anchors>
719 </FontString>
720 <FontString inherits="GameFontHighlight" text="CTRL+C to copy, ESC to exit">
721 <Anchors>
722 <Anchor point="TOP">
723 <Offset>
724 <AbsDimension x="0" y="-24"/>
725 </Offset>
726 </Anchor>
727 </Anchors>
728 </FontString>
729 </Layer>
730 </Layers>
731 <Frames>
732 <EditBox name="TrinketMenu_DebugEditBox" letters="1024" multiLine="true" enableMouse="true" autoFocus="true">
733 <Size>
734 <AbsDimension x="220" y="180"/>
735 </Size>
736 <Anchors>
737 <Anchor point="CENTER"/>
738 </Anchors>
739 <Scripts>
740 <OnEscapePressed>
741 this:ClearFocus()
742 TrinketMenu_DebugFrame:Hide()
743 </OnEscapePressed>
744 </Scripts>
745 <FontString inherits="GameFontHighlightSmall"/>
746 </EditBox>
747 </Frames>
748 </Frame>
749  
750 <!-- OnUpdate Frames used by demand only -->
751  
752 <Frame name="TrinketMenu_ScalingFrame" hidden="true">
753 <Scripts>
754 <OnUpdate>
755 TrinketMenu_ScalingFrame_OnUpdate(arg1)
756 </OnUpdate>
757 </Scripts>
758 </Frame>
759  
760 <Frame name="TrinketMenu_DockingFrame" hidden="true">
761 <Scripts>
762 <OnUpdate>
763 TrinketMenu_DockingFrame_OnUpdate(arg1)
764 </OnUpdate>
765 </Scripts>
766 </Frame>
767  
768 <Frame name="TrinketMenu_InventoryFrame" parent="TrinketMenu_MainFrame" hidden="true">
769 <Scripts>
770 <OnUpdate>
771 TrinketMenu_InventoryFrame_OnUpdate(arg1)
772 </OnUpdate>
773 </Scripts>
774 </Frame>
775  
776 <Frame name="TrinketMenu_TooltipFrame" hidden="true">
777 <Scripts>
778 <OnUpdate>
779 TrinketMenu_TooltipFrame_OnUpdate(arg1)
780 </OnUpdate>
781 </Scripts>
782 </Frame>
783  
784 <Frame name="TrinketMenu_IconDraggingFrame" hidden="true">
785 <Scripts>
786 <OnUpdate>
787 TrinketMenu_IconDraggingFrame_OnUpdate(arg1)
788 </OnUpdate>
789 </Scripts>
790 </Frame>
791  
792 <Frame name="TrinketMenu_CooldownCountFrame" parent="TrinketMenu_MainFrame" hidden="false">
793 <Scripts>
794 <OnUpdate>
795 TrinketMenu_CooldownCountFrame_OnUpdate(arg1)
796 </OnUpdate>
797 <OnHide>
798 TrinketMenu_CooldownCountFrame_OnHide()
799 </OnHide>
800 </Scripts>
801 </Frame>
802  
803 </Ui>