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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
2 <!--
3 Decursive (v 1.9.7) add-on for World of Warcraft UI
4 Copyright (C) 2005 Archarodim ( http://www.2072productions.com/?to=decursive-continued.txt )
5 This is the continued work of the original Decursive (v1.9.4) by Quu
6 Decursive 1.9.4 is in public domain ( www.quutar.com )
7  
8 License:
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13  
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18  
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 -->
23  
24 <Script file="Decursive.lua"/>
25  
26 <Button name="DecursiveDebuffTemplate" virtual="true">
27  
28 <Size>
29 <AbsDimension x="30" y="30"/>
30 </Size>
31  
32 <Layers>
33 <Layer level="OVERLAY">
34 <Texture name="$parentIcon"/>
35 </Layer>
36 </Layers>
37  
38 <Scripts>
39 <OnLoad>
40 this.unit = "player";
41 this.debuff = 1;
42 </OnLoad>
43 <OnEnter>
44 Dcr_DebuffTemplate_OnEnter();
45 </OnEnter>
46 <OnLeave>
47 DcrDisplay_Tooltip:Hide();
48 </OnLeave>
49 <OnClick>
50 Dcr_Clean(this.unit, (arg1 == "RightButton"));
51 </OnClick>
52 </Scripts>
53 </Button>
54  
55 <Frame name="DecursiveAfflictedTemplate" frameStrata="LOW" virtual="true" hidden="true">
56 <Size>
57 <AbsDimension x="180" y="32"/>
58 </Size>
59  
60 <Backdrop name="$parentBackdrop" bgFile="Interface\AddOns\Decursive\BackDrop.tga" tile="true">
61 <TileSize>
62 <AbsValue val="16"/>
63 </TileSize>
64 </Backdrop>
65  
66 <!-- The "name" field... is on a layer-->
67 <Layers>
68 <Layer level="OVERLAY">
69 <FontString name="$parentName" justifyH="LEFT" inherits="GameFontNormalSmall" maxLines="1" text="Name">
70 <Size>
71 <AbsDimension x="148" y="10"/>
72 </Size>
73 <Anchors>
74 <Anchor point="TOPLEFT" relativeTo="$parent">
75 <Offset>
76 <AbsDimension x="32" y="-2"/>
77 </Offset>
78 </Anchor>
79 </Anchors>
80 </FontString>
81 <FontString name="$parentAffliction" justifyH="LEFT" inherits="GameFontNormalSmall" maxLines="1" text="Affliction">
82 <Size>
83 <AbsDimension x="148" y="10"/>
84 </Size>
85 <Anchors>
86 <Anchor point="TOPLEFT" relativeTo="$parent">
87 <Offset>
88 <AbsDimension x="32" y="-15"/>
89 </Offset>
90 </Anchor>
91 </Anchors>
92  
93 </FontString>
94 </Layer>
95 </Layers>
96 <Frames>
97 <Button name="$parentDebuff" inherits="DecursiveDebuffTemplate" hidden="false">
98 <Anchors>
99 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
100 <Offset>
101 <AbsDimension x="0" y="0" />
102 </Offset>
103 </Anchor>
104 </Anchors>
105 </Button>
106 <Button name="$parentClickMe" >
107  
108 <Size>
109 <AbsDimension x="150" y="32"/>
110 </Size>
111  
112 <Anchors>
113 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentDebuff"/>
114 </Anchors>
115  
116 <Scripts>
117 <OnLoad>
118 this.unit = "player";
119 this.debuff = 1;
120 this:RegisterForClicks('LeftButtonDown', 'RightButtonDown', 'MiddleButtonDown', 'Button4Down', 'Button5Down');
121 </OnLoad>
122 <OnClick>
123 Dcr_Clean(this.unit, (arg1 == "RightButton"));
124 </OnClick>
125 <OnEnter>
126 Dcr_DebuffTemplate_OnEnter();
127 </OnEnter>
128 <OnLeave>
129 DcrDisplay_Tooltip:Hide();
130 </OnLeave>
131 </Scripts>
132 </Button>
133 </Frames>
134 <Scripts>
135 <OnLoad>
136 this.unit = "player";
137 this.debuff = 1;
138 this.UpdateMe = false;
139 </OnLoad>
140 <OnUpdate>
141 Dcr_LiveListItem_OnUpdate();
142 </OnUpdate>
143 </Scripts>
144 </Frame>
145  
146  
147 <Button name="DecursivePriorityListEntryTemplate" hidden="true" virtual="true" >
148 <Size>
149 <AbsDimension x="150" y="16"/>
150 </Size>
151 <NormalText name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT" text="Assistant">
152 <Size>
153 <AbsDimension x="150" y="16"/>
154 </Size>
155 <Anchors>
156 <Anchor point="TOPRIGHT"/>
157 </Anchors>
158 </NormalText>
159 <Scripts>
160 <OnLoad>
161 this.Priority = true;
162 this:RegisterForClicks('LeftButtonDown', 'RightButtonDown', 'MiddleButtonDown', 'Button4Down', 'Button5Down');
163 </OnLoad>
164 <OnShow>
165 this.UpdateYourself = true;
166 </OnShow>
167 <OnClick>
168 Dcr_PriorityListEntryTemplate_OnClick();
169 </OnClick>
170 <OnUpdate>
171 Dcr_PriorityListEntryTemplate_OnUpdate();
172 </OnUpdate>
173 <OnEnter>
174 Dcr_DisplayTooltip(DCR_RREMOVE_ID, this);
175 </OnEnter>
176 <OnLeave>
177 DcrDisplay_Tooltip:Hide();
178 </OnLeave>
179 </Scripts>
180 </Button>
181  
182 <Button name="DecursiveSkipListEntryTemplate" hidden="true" virtual="true" inherits="DecursivePriorityListEntryTemplate">
183 <Scripts>
184 <OnLoad>
185 this.Priority = false;
186 </OnLoad>
187 </Scripts>
188 </Button>
189  
190 <Frame name="DecursiveAfflictedListFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="false" parent="UIParent">
191 <Size>
192 <AbsDimension x="80" y="25" />
193 </Size>
194  
195 <Anchors>
196 <Anchor point="TOP">
197 <Offset>
198 <AbsDimension x="0" y="-50"/>
199 </Offset>
200 </Anchor>
201 </Anchors>
202  
203 <!--
204 <TitleRegion setAllPoints="true"/>
205 -->
206  
207 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
208 <EdgeSize>
209 <AbsValue val="16"/>
210 </EdgeSize>
211 <TileSize>
212 <AbsValue val="16"/>
213 </TileSize>
214 <BackgroundInsets>
215 <AbsInset left="5" right="5" top="5" bottom="5"/>
216 </BackgroundInsets>
217 </Backdrop>
218  
219 <Layers>
220 <Layer level="OVERLAY">
221 <FontString name="$parentText" inherits="GameFontNormal" text="BINDING_HEADER_DECURSIVE">
222 <Anchors>
223 <Anchor point="TOP" relativePoint="TOP">
224 <Offset>
225 <AbsDimension x="0" y="-5"/>
226 </Offset>
227 </Anchor>
228 </Anchors>
229 </FontString>
230 </Layer>
231 </Layers>
232  
233 <Scripts>
234 <OnUpdate>
235 Dcr_AfflictedListFrame_OnUpdate(arg1);
236 </OnUpdate>
237 <OnEnter>
238 Dcr_DisplayTooltip(DCR_VERSION_STRING, this);
239 </OnEnter>
240 <OnLeave>
241 DcrDisplay_Tooltip:Hide();
242 </OnLeave>
243  
244 <OnMouseUp>
245 if ( this.isMoving ) then
246 this:StopMovingOrSizing();
247 this.isMoving = false;
248 end
249 </OnMouseUp>
250 <OnMouseDown>
251 if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
252 this:StartMoving();
253 this.isMoving = true;
254 end
255 if (arg1 == "RightButton") then
256 Dcr_ShowHideButtons();
257 end
258 </OnMouseDown>
259 <OnHide>
260 if ( this.isMoving ) then
261 this:StopMovingOrSizing();
262 this.isMoving = false;
263 end
264 </OnHide>
265  
266  
267 </Scripts>
268  
269 <Frames>
270  
271 <Button name="$parentPriority" inherits="GameMenuButtonTemplate" text="P">
272 <Size>
273 <AbsDimension x="20" y="20" />
274 </Size>
275 <Anchors>
276 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent">
277 <Offset>
278 <AbsDimension x="0" y="0" />
279 </Offset>
280 </Anchor>
281 </Anchors>
282 <Scripts>
283 <OnLoad>
284 this:SetText(DCR_PRIORITY_SHOW);
285 </OnLoad>
286 <OnClick>
287 Dcr_ShowHidePriorityListUI();
288 </OnClick>
289 <OnEnter>
290 Dcr_DisplayTooltip(DCR_PRIORITY_LIST, this);
291 </OnEnter>
292 <OnLeave>
293 DcrDisplay_Tooltip:Hide();
294 </OnLeave>
295 </Scripts>
296 </Button>
297  
298 <Button name="$parentSkip" inherits="GameMenuButtonTemplate" text="S">
299 <Size>
300 <AbsDimension x="20" y="20" />
301 </Size>
302 <Anchors>
303 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentPriority">
304 <Offset>
305 <AbsDimension x="0" y="0" />
306 </Offset>
307 </Anchor>
308 </Anchors>
309 <Scripts>
310 <OnLoad>
311 this:SetText(DCR_SKIP_SHOW);
312 </OnLoad>
313 <OnClick>
314 Dcr_ShowHideSkipListUI();
315 </OnClick>
316 <OnEnter>
317 Dcr_DisplayTooltip(DCR_SKIP_LIST_STR, this);
318 </OnEnter>
319 <OnLeave>
320 DcrDisplay_Tooltip:Hide();
321 </OnLeave>
322 </Scripts>
323 </Button>
324  
325 <Button name="$parentOptions" inherits="GameMenuButtonTemplate" text="O">
326 <Size>
327 <AbsDimension x="20" y="20" />
328 </Size>
329 <Anchors>
330 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentSkip">
331 <Offset>
332 <AbsDimension x="0" y="0" />
333 </Offset>
334 </Anchor>
335 </Anchors>
336 <Scripts>
337 <OnLoad>
338 this:SetText(DCR_OPTION_SHOW);
339 </OnLoad>
340 <OnClick>
341 Dcr_ShowHideOptionsUI();
342 </OnClick>
343 <OnEnter>
344 Dcr_DisplayTooltip(DCR_SKIP_OPT_STR, this);
345 </OnEnter>
346 <OnLeave>
347 DcrDisplay_Tooltip:Hide();
348 </OnLeave>
349 </Scripts>
350 </Button>
351  
352 <Button name="$parentHide" inherits="GameMenuButtonTemplate" text="X">
353 <Size>
354 <AbsDimension x="20" y="20" />
355 </Size>
356 <Anchors>
357 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentOptions">
358 <Offset>
359 <AbsDimension x="2" y="0" />
360 </Offset>
361 </Anchor>
362 </Anchors>
363 <Scripts>
364 <OnClick>
365 Dcr_ShowHideAfflictedListUI();
366 Dcr_println( DCR_RESHOW_MSG);
367 </OnClick>
368 <OnEnter>
369 Dcr_DisplayTooltip(DCR_HIDE_MAIN, this);
370 </OnEnter>
371 <OnLeave>
372 DcrDisplay_Tooltip:Hide();
373 </OnLeave>
374 </Scripts>
375 </Button>
376  
377 <Frame name="$parentListItem1" inherits="DecursiveAfflictedTemplate">
378 <Anchors>
379 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent">
380 <Offset>
381 <AbsDimension x="5" y="0" />
382 </Offset>
383 </Anchor>
384 </Anchors>
385 </Frame>
386  
387 <Frame name="$parentListItem2" inherits="DecursiveAfflictedTemplate">
388 <Anchors>
389 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem1">
390 <Offset>
391 <AbsDimension x="0" y="1" />
392 </Offset>
393 </Anchor>
394 </Anchors>
395 </Frame>
396  
397 <Frame name="$parentListItem3" inherits="DecursiveAfflictedTemplate">
398 <Anchors>
399 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem2">
400 <Offset>
401 <AbsDimension x="0" y="1" />
402 </Offset>
403 </Anchor>
404 </Anchors>
405 </Frame>
406  
407 <Frame name="$parentListItem4" inherits="DecursiveAfflictedTemplate">
408 <Anchors>
409 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem3">
410 <Offset>
411 <AbsDimension x="0" y="1" />
412 </Offset>
413 </Anchor>
414 </Anchors>
415 </Frame>
416  
417 <Frame name="$parentListItem5" inherits="DecursiveAfflictedTemplate">
418 <Anchors>
419 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem4">
420 <Offset>
421 <AbsDimension x="0" y="1" />
422 </Offset>
423 </Anchor>
424 </Anchors>
425 </Frame>
426  
427 <Frame name="$parentListItem6" inherits="DecursiveAfflictedTemplate">
428 <Anchors>
429 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem5">
430 <Offset>
431 <AbsDimension x="0" y="1" />
432 </Offset>
433 </Anchor>
434 </Anchors>
435 </Frame>
436  
437 <Frame name="$parentListItem7" inherits="DecursiveAfflictedTemplate">
438 <Anchors>
439 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem6">
440 <Offset>
441 <AbsDimension x="0" y="1" />
442 </Offset>
443 </Anchor>
444 </Anchors>
445 </Frame>
446  
447 <Frame name="$parentListItem8" inherits="DecursiveAfflictedTemplate">
448 <Anchors>
449 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem7">
450 <Offset>
451 <AbsDimension x="0" y="1" />
452 </Offset>
453 </Anchor>
454 </Anchors>
455 </Frame>
456  
457 <Frame name="$parentListItem9" inherits="DecursiveAfflictedTemplate">
458 <Anchors>
459 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem8">
460 <Offset>
461 <AbsDimension x="0" y="1" />
462 </Offset>
463 </Anchor>
464 </Anchors>
465 </Frame>
466  
467 <Frame name="$parentListItem10" inherits="DecursiveAfflictedTemplate">
468 <Anchors>
469 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem9">
470 <Offset>
471 <AbsDimension x="0" y="1" />
472 </Offset>
473 </Anchor>
474 </Anchors>
475 </Frame>
476  
477 <Frame name="$parentListItem11" inherits="DecursiveAfflictedTemplate">
478 <Anchors>
479 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem10">
480 <Offset>
481 <AbsDimension x="0" y="1" />
482 </Offset>
483 </Anchor>
484 </Anchors>
485 </Frame>
486  
487 <Frame name="$parentListItem12" inherits="DecursiveAfflictedTemplate">
488 <Anchors>
489 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem11">
490 <Offset>
491 <AbsDimension x="0" y="1" />
492 </Offset>
493 </Anchor>
494 </Anchors>
495 </Frame>
496  
497 <Frame name="$parentListItem13" inherits="DecursiveAfflictedTemplate">
498 <Anchors>
499 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem12">
500 <Offset>
501 <AbsDimension x="0" y="1" />
502 </Offset>
503 </Anchor>
504 </Anchors>
505 </Frame>
506  
507 <Frame name="$parentListItem14" inherits="DecursiveAfflictedTemplate">
508 <Anchors>
509 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem13">
510 <Offset>
511 <AbsDimension x="0" y="1" />
512 </Offset>
513 </Anchor>
514 </Anchors>
515 </Frame>
516  
517 <Frame name="$parentListItem15" inherits="DecursiveAfflictedTemplate">
518 <Anchors>
519 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem14">
520 <Offset>
521 <AbsDimension x="0" y="1" />
522 </Offset>
523 </Anchor>
524 </Anchors>
525 </Frame>
526 </Frames>
527 </Frame>
528  
529 <Frame name="DecursivePriorityListFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
530 <Size>
531 <AbsDimension x="150" y="230" />
532 </Size>
533  
534 <Anchors>
535 <Anchor point="CENTER" />
536 </Anchors>
537  
538 <TitleRegion setAllPoints="true"/>
539  
540 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
541 <EdgeSize>
542 <AbsValue val="16"/>
543 </EdgeSize>
544 <TileSize>
545 <AbsValue val="16"/>
546 </TileSize>
547 <BackgroundInsets>
548 <AbsInset left="5" right="5" top="5" bottom="5"/>
549 </BackgroundInsets>
550 </Backdrop>
551  
552 <Scripts>
553 <OnEnter>
554 Dcr_DisplayTooltip(DCR_PRIORITY_LIST, this);
555 </OnEnter>
556 <OnLeave>
557 DcrDisplay_Tooltip:Hide();
558 </OnLeave>
559 <OnLoad>
560 this.Offset = 0;
561 </OnLoad>
562 <OnShow>
563 this.UpdateYourself = true;
564 </OnShow>
565  
566 <OnUpdate>
567 Dcr_PriorityListFrame_OnUpdate();
568 </OnUpdate>
569 </Scripts>
570  
571 <Layers>
572 <Layer level="BACKGROUND">
573 <FontString name="$parentText" inherits="GameFontNormal" text="DCR_STR_DCR_PRIO">
574 <Anchors>
575 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
576 <Offset>
577 <AbsDimension x="0" y="-5" />
578 </Offset>
579 </Anchor>
580 </Anchors>
581  
582 </FontString>
583 </Layer>
584 </Layers>
585  
586 <Frames>
587  
588 <Button name="$parentClear" inherits="GameMenuButtonTemplate" text="C">
589 <Size>
590 <AbsDimension x="20" y="20" />
591 </Size>
592 <Anchors>
593 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
594 <Offset>
595 <AbsDimension x="0" y="-20" />
596 </Offset>
597 </Anchor>
598 </Anchors>
599 <Scripts>
600 <OnLoad>
601 this:SetText(DCR_CLEAR_PRIO);
602 </OnLoad>
603 <OnClick>
604 Dcr_ClearPriorityList();
605 </OnClick>
606 <OnEnter>
607 Dcr_DisplayTooltip(BINDING_NAME_DCRPRCLEAR, this);
608 </OnEnter>
609 <OnLeave>
610 DcrDisplay_Tooltip:Hide();
611 </OnLeave>
612 </Scripts>
613 </Button>
614  
615 <Button name="$parentClose" inherits="GameMenuButtonTemplate" text="X">
616 <Size>
617 <AbsDimension x="20" y="20" />
618 </Size>
619 <Anchors>
620 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentClear"/>
621 </Anchors>
622 <Scripts>
623 <OnClick>
624 this:GetParent():Hide();
625 </OnClick>
626 <OnEnter>
627 Dcr_DisplayTooltip(BINDING_NAME_DCRPRSHOW, this);
628 </OnEnter>
629 <OnLeave>
630 DcrDisplay_Tooltip:Hide();
631 </OnLeave>
632 </Scripts>
633 </Button>
634  
635  
636 <Button name="$parentPopulate" inherits="GameMenuButtonTemplate" text="P">
637 <Size>
638 <AbsDimension x="20" y="20" />
639 </Size>
640 <Anchors>
641 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentClear"/>
642 </Anchors>
643 <Scripts>
644 <OnLoad>
645 this:SetText(DCR_POPULATE);
646 </OnLoad>
647 <OnClick>
648 DecursivePopulateListFrame.addFunction = DcrAddUnitToPriorityList;
649 DecursivePopulateListFrameText:SetText(DCR_PRIORITY_LIST);
650 DecursivePopulateListFrame:Show();
651 </OnClick>
652 <OnEnter>
653 Dcr_DisplayTooltip(DCR_POPULATE_LIST, this);
654 </OnEnter>
655 <OnLeave>
656 DcrDisplay_Tooltip:Hide();
657 </OnLeave>
658 </Scripts>
659 </Button>
660  
661 <Button name="$parentAdd" inherits="GameMenuButtonTemplate" text="+">
662 <Size>
663 <AbsDimension x="20" y="20" />
664 </Size>
665 <Anchors>
666 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentPopulate"/>
667 </Anchors>
668 <Scripts>
669 <OnClick>
670 Dcr_AddTargetToPriorityList();
671 </OnClick>
672 <OnEnter>
673 Dcr_DisplayTooltip(BINDING_NAME_DCRPRADD, this);
674 </OnEnter>
675 <OnLeave>
676 DcrDisplay_Tooltip:Hide();
677 </OnLeave>
678 </Scripts>
679 </Button>
680  
681 <Button name="$parentUp" inherits="GameMenuButtonTemplate" text="UP">
682 <Size>
683 <AbsDimension x="30" y="20" />
684 </Size>
685 <Anchors>
686 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent">
687 <Offset>
688 <AbsDimension x="5" y="5" />
689 </Offset>
690 </Anchor>
691 </Anchors>
692 <Scripts>
693 <OnLoad>
694 this:SetText(DCR_UP);
695 </OnLoad>
696 <OnClick>
697 this:GetParent().Offset = this:GetParent().Offset - 1;
698 this:GetParent().UpdateYourself = true;
699 </OnClick>
700 </Scripts>
701 </Button>
702  
703 <Button name="$parentDown" inherits="GameMenuButtonTemplate" text="DOWN">
704 <Size>
705 <AbsDimension x="50" y="20" />
706 </Size>
707 <Anchors>
708 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="$parent">
709 <Offset>
710 <AbsDimension x="-5" y="5" />
711 </Offset>
712 </Anchor>
713 </Anchors>
714 <Scripts>
715 <OnLoad>
716 this:SetText(DCR_DOWN);
717 </OnLoad>
718 <OnClick>
719 this:GetParent().Offset = this:GetParent().Offset + 1;
720 this:GetParent().UpdateYourself = true;
721 </OnClick>
722 </Scripts>
723 </Button>
724  
725 <Button name="$parentIndex01" id="1" inherits="DecursivePriorityListEntryTemplate">
726 <Anchors>
727 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent" >
728 <Offset>
729 <AbsDimension x="5" y="-40" />
730 </Offset>
731 </Anchor>
732 </Anchors>
733 </Button>
734 <Button name="$parentIndex02" id="2" inherits="DecursivePriorityListEntryTemplate">
735 <Anchors>
736 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex01"/>
737 </Anchors>
738 </Button>
739 <Button name="$parentIndex03" id="3" inherits="DecursivePriorityListEntryTemplate">
740 <Anchors>
741 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex02"/>
742 </Anchors>
743 </Button>
744 <Button name="$parentIndex04" id="4" inherits="DecursivePriorityListEntryTemplate">
745 <Anchors>
746 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex03"/>
747 </Anchors>
748 </Button>
749 <Button name="$parentIndex05" id="5" inherits="DecursivePriorityListEntryTemplate">
750 <Anchors>
751 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex04"/>
752 </Anchors>
753 </Button>
754 <Button name="$parentIndex06" id="6" inherits="DecursivePriorityListEntryTemplate">
755 <Anchors>
756 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex05"/>
757 </Anchors>
758 </Button>
759 <Button name="$parentIndex07" id="7" inherits="DecursivePriorityListEntryTemplate">
760 <Anchors>
761 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex06"/>
762 </Anchors>
763 </Button>
764 <Button name="$parentIndex08" id="8" inherits="DecursivePriorityListEntryTemplate">
765 <Anchors>
766 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex07"/>
767 </Anchors>
768 </Button>
769 <Button name="$parentIndex09" id="9" inherits="DecursivePriorityListEntryTemplate">
770 <Anchors>
771 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex08"/>
772 </Anchors>
773 </Button>
774 <Button name="$parentIndex10" id="10" inherits="DecursivePriorityListEntryTemplate">
775 <Anchors>
776 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex09"/>
777 </Anchors>
778 </Button>
779  
780 </Frames>
781 </Frame>
782  
783 <Frame name="DecursiveSkipListFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
784 <Size>
785 <AbsDimension x="150" y="230" />
786 </Size>
787  
788 <Anchors>
789 <Anchor point="CENTER" />
790 </Anchors>
791  
792 <TitleRegion setAllPoints="true"/>
793  
794 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
795 <EdgeSize>
796 <AbsValue val="16"/>
797 </EdgeSize>
798 <TileSize>
799 <AbsValue val="16"/>
800 </TileSize>
801 <BackgroundInsets>
802 <AbsInset left="5" right="5" top="5" bottom="5"/>
803 </BackgroundInsets>
804 </Backdrop>
805  
806 <Scripts>
807 <OnEnter>
808 Dcr_DisplayTooltip(DCR_SKIP_LIST_STR, this);
809 </OnEnter>
810 <OnLeave>
811 DcrDisplay_Tooltip:Hide();
812 </OnLeave>
813 <OnLoad>
814 this.Offset = 0;
815 </OnLoad>
816 <OnShow>
817 this.UpdateYourself = true;
818 </OnShow>
819 <OnUpdate>
820 Dcr_SkipListFrame_OnUpdate();
821 </OnUpdate>
822 </Scripts>
823  
824 <Layers>
825 <Layer level="BACKGROUND">
826 <FontString name="$parentText" inherits="GameFontNormal" text="DCR_STR_DCR_SKIP">
827 <Anchors>
828 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
829 <Offset>
830 <AbsDimension x="0" y="-5" />
831 </Offset>
832 </Anchor>
833 </Anchors>
834 </FontString>
835 </Layer>
836 </Layers>
837  
838 <Frames>
839  
840 <Button name="$parentClear" inherits="GameMenuButtonTemplate" text="C">
841 <Size>
842 <AbsDimension x="20" y="20" />
843 </Size>
844 <Anchors>
845 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
846 <Offset>
847 <AbsDimension x="0" y="-20" />
848 </Offset>
849 </Anchor>
850 </Anchors>
851 <Scripts>
852 <OnLoad>
853 this:SetText(DCR_CLEAR_SKIP);
854 </OnLoad>
855 <OnClick>
856 Dcr_ClearSkipList();
857 </OnClick>
858 <OnEnter>
859 Dcr_DisplayTooltip(BINDING_NAME_DCRSKCLEAR, this);
860 </OnEnter>
861 <OnLeave>
862 DcrDisplay_Tooltip:Hide();
863 </OnLeave>
864 </Scripts>
865 </Button>
866  
867 <Button name="$parentClose" inherits="GameMenuButtonTemplate" text="X">
868 <Size>
869 <AbsDimension x="20" y="20" />
870 </Size>
871 <Anchors>
872 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentClear"/>
873 </Anchors>
874 <Scripts>
875 <OnClick>
876 this:GetParent():Hide();
877 </OnClick>
878 <OnEnter>
879 Dcr_DisplayTooltip(BINDING_NAME_DCRSKSHOW, this);
880 </OnEnter>
881 <OnLeave>
882 DcrDisplay_Tooltip:Hide();
883 </OnLeave>
884 </Scripts>
885 </Button>
886  
887  
888 <Button name="$parentPopulate" inherits="GameMenuButtonTemplate" text="P">
889 <Size>
890 <AbsDimension x="20" y="20" />
891 </Size>
892 <Anchors>
893 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentClear"/>
894 </Anchors>
895 <Scripts>
896 <OnLoad>
897 this:SetText(DCR_POPULATE);
898 </OnLoad>
899 <OnClick>
900 DecursivePopulateListFrame.addFunction = DcrAddUnitToSkipList;
901 DecursivePopulateListFrameText:SetText(DCR_SKIP_LIST_STR);
902 DecursivePopulateListFrame:Show();
903 </OnClick>
904 <OnEnter>
905 Dcr_DisplayTooltip(DCR_POPULATE_LIST, this);
906 </OnEnter>
907 <OnLeave>
908 DcrDisplay_Tooltip:Hide();
909 </OnLeave>
910 </Scripts>
911 </Button>
912  
913 <Button name="$parentAdd" inherits="GameMenuButtonTemplate" text="+">
914 <Size>
915 <AbsDimension x="20" y="20" />
916 </Size>
917 <Anchors>
918 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentPopulate"/>
919 </Anchors>
920 <Scripts>
921 <OnClick>
922 Dcr_AddTargetToSkipList();
923 </OnClick>
924 <OnEnter>
925 Dcr_DisplayTooltip(BINDING_NAME_DCRSKADD, this);
926 </OnEnter>
927 <OnLeave>
928 DcrDisplay_Tooltip:Hide();
929 </OnLeave>
930 </Scripts>
931 </Button>
932  
933 <Button name="$parentUp" inherits="GameMenuButtonTemplate" text="UP">
934 <Size>
935 <AbsDimension x="30" y="20" />
936 </Size>
937 <Anchors>
938 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent">
939 <Offset>
940 <AbsDimension x="5" y="5" />
941 </Offset>
942 </Anchor>
943 </Anchors>
944 <Scripts>
945 <OnLoad>
946 this:SetText(DCR_UP);
947 </OnLoad>
948 <OnClick>
949 this:GetParent().Offset = this:GetParent().Offset - 1;
950 this:GetParent().UpdateYourself = true;
951 </OnClick>
952 </Scripts>
953 </Button>
954  
955 <Button name="$parentDown" inherits="GameMenuButtonTemplate" text="DOWN">
956 <Size>
957 <AbsDimension x="50" y="20" />
958 </Size>
959 <Anchors>
960 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="$parent">
961 <Offset>
962 <AbsDimension x="-5" y="5" />
963 </Offset>
964 </Anchor>
965 </Anchors>
966 <Scripts>
967 <OnLoad>
968 this:SetText(DCR_DOWN);
969 </OnLoad>
970 <OnClick>
971 this:GetParent().Offset = this:GetParent().Offset + 1;
972 this:GetParent().UpdateYourself = true;
973 </OnClick>
974 </Scripts>
975 </Button>
976  
977 <Button name="$parentIndex01" id="1" inherits="DecursiveSkipListEntryTemplate">
978 <Anchors>
979 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent" >
980 <Offset>
981 <AbsDimension x="5" y="-40" />
982 </Offset>
983 </Anchor>
984 </Anchors>
985 </Button>
986 <Button name="$parentIndex02" id="2" inherits="DecursiveSkipListEntryTemplate">
987 <Anchors>
988 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex01"/>
989 </Anchors>
990 </Button>
991 <Button name="$parentIndex03" id="3" inherits="DecursiveSkipListEntryTemplate">
992 <Anchors>
993 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex02"/>
994 </Anchors>
995 </Button>
996 <Button name="$parentIndex04" id="4" inherits="DecursiveSkipListEntryTemplate">
997 <Anchors>
998 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex03"/>
999 </Anchors>
1000 </Button>
1001 <Button name="$parentIndex05" id="5" inherits="DecursiveSkipListEntryTemplate">
1002 <Anchors>
1003 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex04"/>
1004 </Anchors>
1005 </Button>
1006 <Button name="$parentIndex06" id="6" inherits="DecursiveSkipListEntryTemplate">
1007 <Anchors>
1008 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex05"/>
1009 </Anchors>
1010 </Button>
1011 <Button name="$parentIndex07" id="7" inherits="DecursiveSkipListEntryTemplate">
1012 <Anchors>
1013 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex06"/>
1014 </Anchors>
1015 </Button>
1016 <Button name="$parentIndex08" id="8" inherits="DecursiveSkipListEntryTemplate">
1017 <Anchors>
1018 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex07"/>
1019 </Anchors>
1020 </Button>
1021 <Button name="$parentIndex09" id="9" inherits="DecursiveSkipListEntryTemplate">
1022 <Anchors>
1023 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex08"/>
1024 </Anchors>
1025 </Button>
1026 <Button name="$parentIndex10" id="10" inherits="DecursiveSkipListEntryTemplate">
1027 <Anchors>
1028 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentIndex09"/>
1029 </Anchors>
1030 </Button>
1031  
1032 </Frames>
1033 </Frame>
1034  
1035 <Frame name="DecursivePopulateListFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
1036 <Size>
1037 <AbsDimension x="168" y="245" />
1038 </Size>
1039  
1040 <Anchors>
1041 <Anchor point="CENTER" />
1042 </Anchors>
1043  
1044 <TitleRegion setAllPoints="true"/>
1045  
1046 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1047 <EdgeSize>
1048 <AbsValue val="16"/>
1049 </EdgeSize>
1050 <TileSize>
1051 <AbsValue val="16"/>
1052 </TileSize>
1053 <BackgroundInsets>
1054 <AbsInset left="5" right="5" top="5" bottom="5"/>
1055 </BackgroundInsets>
1056 </Backdrop>
1057  
1058 <Scripts>
1059 <OnShow>
1060 local _, faction = UnitFactionGroup("player");
1061 if (faction == DCR_ALLIANCE_NAME) then
1062 DecursivePopulateListFrameOther:SetText(DCR_LOC_CLASS_PALADIN);
1063 DecursivePopulateListFrameOther.ClassType = DCR_CLASS_PALADIN;
1064 else
1065 DecursivePopulateListFrameOther:SetText(DCR_LOC_CLASS_SHAMAN);
1066 DecursivePopulateListFrameOther.ClassType = DCR_CLASS_SHAMAN;
1067 end
1068 </OnShow>
1069 </Scripts>
1070 <Layers>
1071 <Layer level="BACKGROUND">
1072 <FontString name="$parentTitle" inherits="GameFontNormal" text="DCR_STR_QUICK_POP">
1073 <Anchors>
1074 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
1075 <Offset>
1076 <AbsDimension x="0" y="-10" />
1077 </Offset>
1078 </Anchor>
1079 </Anchors>
1080 </FontString>
1081 <FontString name="$parentText" inherits="GameFontNormal" text="DCR_STR_POP">
1082 <Anchors>
1083 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTitle">
1084 <Offset>
1085 <AbsDimension x="0" y="-5" />
1086 </Offset>
1087 </Anchor>
1088 </Anchors>
1089 </FontString>
1090 </Layer>
1091 </Layers>
1092 <Frames>
1093  
1094 <Button name="$parentGroup1" inherits="GameMenuButtonTemplate" text="Group 1">
1095 <Size>
1096 <AbsDimension x="80" y="20" />
1097 </Size>
1098 <Anchors>
1099 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
1100 <Offset>
1101 <AbsDimension x="5" y="-45" />
1102 </Offset>
1103 </Anchor>
1104 </Anchors>
1105 <Scripts>
1106 <OnClick>
1107 this.GroupNumber = 1;
1108 Dcr_PopulateButtonPress();
1109 </OnClick>
1110 <OnLoad>
1111 this:SetText(DCR_STR_GROUP .. '1');
1112 </OnLoad>
1113 </Scripts>
1114 </Button>
1115  
1116 <Button name="$parentGroup2" inherits="GameMenuButtonTemplate" text="Group 2">
1117 <Size>
1118 <AbsDimension x="80" y="20" />
1119 </Size>
1120 <Anchors>
1121 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="$parent">
1122 <Offset>
1123 <AbsDimension x="-5" y="-45" />
1124 </Offset>
1125 </Anchor>
1126 </Anchors>
1127 <Scripts>
1128 <OnClick>
1129 this.GroupNumber = 2;
1130 Dcr_PopulateButtonPress();
1131 </OnClick>
1132 <OnLoad>
1133 this:SetText(DCR_STR_GROUP .. '2');
1134 </OnLoad>
1135 </Scripts>
1136 </Button>
1137  
1138 <Button name="$parentGroup3" inherits="GameMenuButtonTemplate" text="Group 3">
1139 <Size>
1140 <AbsDimension x="80" y="20" />
1141 </Size>
1142 <Anchors>
1143 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup1">
1144 <Offset>
1145 <AbsDimension x="0" y="0" />
1146 </Offset>
1147 </Anchor>
1148 </Anchors>
1149 <Scripts>
1150 <OnClick>
1151 this.GroupNumber = 3;
1152 Dcr_PopulateButtonPress();
1153 </OnClick>
1154 <OnLoad>
1155 this:SetText(DCR_STR_GROUP .. '3');
1156 </OnLoad>
1157 </Scripts>
1158 </Button>
1159  
1160 <Button name="$parentGroup4" inherits="GameMenuButtonTemplate" text="Group 4">
1161 <Size>
1162 <AbsDimension x="80" y="20" />
1163 </Size>
1164 <Anchors>
1165 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup2">
1166 <Offset>
1167 <AbsDimension x="0" y="0" />
1168 </Offset>
1169 </Anchor>
1170 </Anchors>
1171 <Scripts>
1172 <OnClick>
1173 this.GroupNumber = 4;
1174 Dcr_PopulateButtonPress();
1175 </OnClick>
1176 <OnLoad>
1177 this:SetText(DCR_STR_GROUP .. '4');
1178 </OnLoad>
1179 </Scripts>
1180 </Button>
1181  
1182 <Button name="$parentGroup5" inherits="GameMenuButtonTemplate" text="Group 5">
1183 <Size>
1184 <AbsDimension x="80" y="20" />
1185 </Size>
1186 <Anchors>
1187 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup3">
1188 <Offset>
1189 <AbsDimension x="0" y="0" />
1190 </Offset>
1191 </Anchor>
1192 </Anchors>
1193 <Scripts>
1194 <OnClick>
1195 this.GroupNumber = 5;
1196 Dcr_PopulateButtonPress();
1197 </OnClick>
1198 <OnLoad>
1199 this:SetText(DCR_STR_GROUP .. '5');
1200 </OnLoad>
1201 </Scripts>
1202 </Button>
1203  
1204 <Button name="$parentGroup6" inherits="GameMenuButtonTemplate" text="Group 6">
1205 <Size>
1206 <AbsDimension x="80" y="20" />
1207 </Size>
1208 <Anchors>
1209 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup4">
1210 <Offset>
1211 <AbsDimension x="0" y="0" />
1212 </Offset>
1213 </Anchor>
1214 </Anchors>
1215 <Scripts>
1216 <OnClick>
1217 this.GroupNumber = 6;
1218 Dcr_PopulateButtonPress();
1219 </OnClick>
1220 <OnLoad>
1221 this:SetText(DCR_STR_GROUP .. '6');
1222 </OnLoad>
1223 </Scripts>
1224 </Button>
1225  
1226 <Button name="$parentGroup7" inherits="GameMenuButtonTemplate" text="Group 7">
1227 <Size>
1228 <AbsDimension x="80" y="20" />
1229 </Size>
1230 <Anchors>
1231 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup5">
1232 <Offset>
1233 <AbsDimension x="0" y="0" />
1234 </Offset>
1235 </Anchor>
1236 </Anchors>
1237 <Scripts>
1238 <OnClick>
1239 this.GroupNumber = 7;
1240 Dcr_PopulateButtonPress();
1241 </OnClick>
1242 <OnLoad>
1243 this:SetText(DCR_STR_GROUP .. '7');
1244 </OnLoad>
1245 </Scripts>
1246 </Button>
1247  
1248 <Button name="$parentGroup8" inherits="GameMenuButtonTemplate" text="Group 8">
1249 <Size>
1250 <AbsDimension x="80" y="20" />
1251 </Size>
1252 <Anchors>
1253 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup6">
1254 <Offset>
1255 <AbsDimension x="0" y="0" />
1256 </Offset>
1257 </Anchor>
1258 </Anchors>
1259 <Scripts>
1260 <OnClick>
1261 this.GroupNumber = 8;
1262 Dcr_PopulateButtonPress();
1263 </OnClick>
1264 <OnLoad>
1265 this:SetText(DCR_STR_GROUP .. '8');
1266 </OnLoad>
1267 </Scripts>
1268 </Button>
1269  
1270 <Button name="$parentWarrior" inherits="GameMenuButtonTemplate" text="Warrior">
1271 <Size>
1272 <AbsDimension x="80" y="20" />
1273 </Size>
1274 <Anchors>
1275 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup7">
1276 <Offset>
1277 <AbsDimension x="0" y="-5" />
1278 </Offset>
1279 </Anchor>
1280 </Anchors>
1281 <Scripts>
1282 <OnClick>
1283 this.ClassType = DCR_CLASS_WARRIOR;
1284 Dcr_PopulateButtonPress();
1285 </OnClick>
1286 <OnLoad>
1287 this:SetText(DCR_LOC_CLASS_WARRIOR);
1288 </OnLoad>
1289 </Scripts>
1290 </Button>
1291  
1292 <Button name="$parentPriest" inherits="GameMenuButtonTemplate" text="Priest">
1293 <Size>
1294 <AbsDimension x="80" y="20" />
1295 </Size>
1296 <Anchors>
1297 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup8">
1298 <Offset>
1299 <AbsDimension x="0" y="-5" />
1300 </Offset>
1301 </Anchor>
1302 </Anchors>
1303 <Scripts>
1304 <OnClick>
1305 this.ClassType = DCR_CLASS_PRIEST;
1306 Dcr_PopulateButtonPress();
1307 </OnClick>
1308 <OnLoad>
1309 this:SetText(DCR_LOC_CLASS_PRIEST);
1310 </OnLoad>
1311 </Scripts>
1312 </Button>
1313  
1314 <Button name="$parentMage" inherits="GameMenuButtonTemplate" text="Mage">
1315 <Size>
1316 <AbsDimension x="80" y="20" />
1317 </Size>
1318 <Anchors>
1319 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentWarrior">
1320 <Offset>
1321 <AbsDimension x="0" y="0" />
1322 </Offset>
1323 </Anchor>
1324 </Anchors>
1325 <Scripts>
1326 <OnClick>
1327 this.ClassType = DCR_CLASS_MAGE;
1328 Dcr_PopulateButtonPress();
1329 </OnClick>
1330 <OnLoad>
1331 this:SetText(DCR_LOC_CLASS_MAGE);
1332 </OnLoad>
1333 </Scripts>
1334 </Button>
1335  
1336 <Button name="$parentWarlock" inherits="GameMenuButtonTemplate" text="Warlock">
1337 <Size>
1338 <AbsDimension x="80" y="20" />
1339 </Size>
1340 <Anchors>
1341 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentPriest">
1342 <Offset>
1343 <AbsDimension x="0" y="0" />
1344 </Offset>
1345 </Anchor>
1346 </Anchors>
1347 <Scripts>
1348 <OnClick>
1349 this.ClassType = DCR_CLASS_WARLOCK;
1350 Dcr_PopulateButtonPress();
1351 </OnClick>
1352 <OnLoad>
1353 this:SetText(DCR_LOC_CLASS_WARLOCK);
1354 </OnLoad>
1355 </Scripts>
1356 </Button>
1357  
1358 <Button name="$parentHunter" inherits="GameMenuButtonTemplate" text="Hunter">
1359 <Size>
1360 <AbsDimension x="80" y="20" />
1361 </Size>
1362 <Anchors>
1363 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMage">
1364 <Offset>
1365 <AbsDimension x="0" y="0" />
1366 </Offset>
1367 </Anchor>
1368 </Anchors>
1369 <Scripts>
1370 <OnClick>
1371 this.ClassType = DCR_CLASS_HUNTER;
1372 Dcr_PopulateButtonPress();
1373 </OnClick>
1374 <OnLoad>
1375 this:SetText(DCR_LOC_CLASS_HUNTER);
1376 </OnLoad>
1377 </Scripts>
1378 </Button>
1379  
1380 <Button name="$parentRogue" inherits="GameMenuButtonTemplate" text="Rogue">
1381 <Size>
1382 <AbsDimension x="80" y="20" />
1383 </Size>
1384 <Anchors>
1385 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentWarlock">
1386 <Offset>
1387 <AbsDimension x="0" y="0" />
1388 </Offset>
1389 </Anchor>
1390 </Anchors>
1391 <Scripts>
1392 <OnClick>
1393 this.ClassType = DCR_CLASS_ROGUE;
1394 Dcr_PopulateButtonPress();
1395 </OnClick>
1396 <OnLoad>
1397 this:SetText(DCR_LOC_CLASS_ROGUE);
1398 </OnLoad>
1399 </Scripts>
1400 </Button>
1401  
1402 <Button name="$parentDruid" inherits="GameMenuButtonTemplate" text="Druid">
1403 <Size>
1404 <AbsDimension x="80" y="20" />
1405 </Size>
1406 <Anchors>
1407 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentHunter">
1408 <Offset>
1409 <AbsDimension x="0" y="0" />
1410 </Offset>
1411 </Anchor>
1412 </Anchors>
1413 <Scripts>
1414 <OnClick>
1415 this.ClassType = DCR_CLASS_DRUID;
1416 Dcr_PopulateButtonPress();
1417 </OnClick>
1418 <OnLoad>
1419 this:SetText(DCR_LOC_CLASS_DRUID);
1420 </OnLoad>
1421 </Scripts>
1422 </Button>
1423  
1424 <Button name="$parentOther" inherits="GameMenuButtonTemplate" text="Other">
1425 <Size>
1426 <AbsDimension x="80" y="20" />
1427 </Size>
1428 <Anchors>
1429 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentRogue">
1430 <Offset>
1431 <AbsDimension x="0" y="0" />
1432 </Offset>
1433 </Anchor>
1434 </Anchors>
1435 <Scripts>
1436 <OnClick>
1437 --this.ClassType = "OTHER";
1438 Dcr_PopulateButtonPress();
1439 </OnClick>
1440 <OnLoad>
1441 this:SetText(DCR_STR_OTHER);
1442 </OnLoad>
1443 </Scripts>
1444 </Button>
1445  
1446 <Button name="$parentClose" inherits="GameMenuButtonTemplate" text="Close">
1447 <Size>
1448 <AbsDimension x="100" y="20" />
1449 </Size>
1450 <Anchors>
1451 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeTo="$parent">
1452 <Offset>
1453 <AbsDimension x="0" y="10" />
1454 </Offset>
1455 </Anchor>
1456 </Anchors>
1457 <Scripts>
1458 <OnClick>
1459 DecursivePopulateListFrame:Hide();
1460 </OnClick>
1461 <OnLoad>
1462 this:SetText(DCR_STR_CLOSE);
1463 </OnLoad>
1464 </Scripts>
1465 </Button>
1466 </Frames>
1467 </Frame>
1468  
1469 <!-- ================================================================== -->
1470 <!-- The options frame -->
1471 <Frame name="DcrOptionsFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
1472 <Size>
1473 <AbsDimension x="270" y="460" />
1474 </Size>
1475  
1476 <Anchors>
1477 <Anchor point="CENTER" />
1478 </Anchors>
1479  
1480 <TitleRegion setAllPoints="true"/>
1481  
1482 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1483 <EdgeSize>
1484 <AbsValue val="16"/>
1485 </EdgeSize>
1486 <TileSize>
1487 <AbsValue val="16"/>
1488 </TileSize>
1489 <BackgroundInsets>
1490 <AbsInset left="5" right="5" top="5" bottom="5"/>
1491 </BackgroundInsets>
1492 </Backdrop>
1493  
1494 <Layers>
1495 <Layer level="BACKGROUND">
1496 <FontString name="$parentText" inherits="GameFontNormal" text="DCR_STR_OPTIONS">
1497 <Anchors>
1498 <Anchor point="TOP">
1499 <Offset>
1500 <AbsDimension x="0" y="-8"/>
1501 </Offset>
1502 </Anchor>
1503 </Anchors>
1504 </FontString>
1505 </Layer>
1506 </Layers>
1507  
1508  
1509 <Frames>
1510 <Button name="$parentAnchor" inherits="GameMenuButtonTemplate" text="A">
1511 <Size>
1512 <AbsDimension x="20" y="20" />
1513 </Size>
1514 <Anchors>
1515 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="$parent">
1516 <Offset>
1517 <AbsDimension x="-10" y="-10" />
1518 </Offset>
1519 </Anchor>
1520 </Anchors>
1521 <Scripts>
1522 <OnLoad>
1523 this:SetText(DCR_ANCHOR_SHOW);
1524 </OnLoad>
1525 <OnClick>
1526 Dcr_ShowHideTextAnchor();
1527 </OnClick>
1528 <OnEnter>
1529 Dcr_DisplayTooltip(DCR_ANCHOR, this);
1530 </OnEnter>
1531 <OnLeave>
1532 DcrDisplay_Tooltip:Hide();
1533 </OnLeave>
1534 </Scripts>
1535 </Button>
1536 <Slider name="$parentAmountOfAfflictedSlider" inherits="OptionsSliderTemplate">
1537 <Size>
1538 <AbsDimension x="220" y="17"/>
1539 </Size>
1540 <Anchors>
1541 <Anchor point="TOPLEFT" >
1542 <Offset>
1543 <AbsDimension x="10" y="-45" />
1544 </Offset>
1545 </Anchor>
1546 </Anchors>
1547 <Scripts>
1548 <OnValueChanged>
1549 Dcr_AmountOfAfflictedSlider_OnValueChanged();
1550 </OnValueChanged>
1551 <OnShow>
1552 Dcr_AmountOfAfflictedSlider_OnShow();
1553 </OnShow>
1554 </Scripts>
1555 </Slider>
1556  
1557  
1558 <Slider name="$parentCureBlacklistSlider" inherits="OptionsSliderTemplate">
1559 <Size>
1560 <AbsDimension x="220" y="17"/>
1561 </Size>
1562 <Anchors>
1563 <Anchor point="TOPLEFT" relativeTo="$parentAmountOfAfflictedSlider">
1564 <Offset>
1565 <AbsDimension x="0" y="-40" />
1566 </Offset>
1567 </Anchor>
1568 </Anchors>
1569 <Scripts>
1570 <OnValueChanged>
1571 Dcr_CureBlacklistSlider_OnValueChanged();
1572 </OnValueChanged>
1573 <OnShow>
1574 Dcr_CureBlacklistSlider_OnShow();
1575 </OnShow>
1576 </Scripts>
1577 </Slider>
1578  
1579 <Slider name="$parentScanTimeSlider" inherits="OptionsSliderTemplate">
1580 <Size>
1581 <AbsDimension x="220" y="17"/>
1582 </Size>
1583 <Anchors>
1584 <Anchor point="TOPLEFT" relativeTo="$parentCureBlacklistSlider">
1585 <Offset>
1586 <AbsDimension x="0" y="-40" />
1587 </Offset>
1588 </Anchor>
1589 </Anchors>
1590 <Scripts>
1591 <OnValueChanged>
1592 Dcr_ScanTimeSlider_OnValueChanged();
1593 </OnValueChanged>
1594 <OnShow>
1595 Dcr_ScanTimeSlider_OnShow();
1596 </OnShow>
1597 </Scripts>
1598 </Slider>
1599  
1600 <CheckButton name="$parentPrintDefault" inherits="OptionsCheckButtonTemplate">
1601 <Anchors>
1602 <Anchor point="TOPLEFT" relativeTo="$parentScanTimeSlider">
1603 <Offset>
1604 <AbsDimension x="-5" y="-25" />
1605 </Offset>
1606 </Anchor>
1607 </Anchors>
1608 <Scripts>
1609 <OnClick>
1610 Dcr_Saved.Print_ChatFrame = (this:GetChecked() == 1);
1611 </OnClick>
1612 <OnLoad>
1613 Dcr_ThisSetText(DCR_PRINT_CHATFRAME);
1614 </OnLoad>
1615 <OnShow>
1616 if (Dcr_Saved.Print_ChatFrame) then
1617 this:SetChecked(1);
1618 else
1619 this:SetChecked(0);
1620 end
1621 </OnShow>
1622 </Scripts>
1623 </CheckButton>
1624  
1625 <CheckButton name="$parentPrintCustomFrame" inherits="OptionsCheckButtonTemplate">
1626 <Anchors>
1627 <Anchor point="TOPLEFT" relativeTo="$parentPrintDefault">
1628 <Offset>
1629 <AbsDimension x="0" y="-25" />
1630 </Offset>
1631 </Anchor>
1632 </Anchors>
1633 <Scripts>
1634 <OnClick>
1635 Dcr_Saved.Print_CustomFrame = (this:GetChecked() == 1);
1636 </OnClick>
1637 <OnLoad>
1638 Dcr_ThisSetText(DCR_PRINT_CUSTOM);
1639 </OnLoad>
1640 <OnShow>
1641 if (Dcr_Saved.Print_CustomFrame) then
1642 this:SetChecked(1);
1643 else
1644 this:SetChecked(0);
1645 end
1646 </OnShow>
1647 </Scripts>
1648 </CheckButton>
1649  
1650 <CheckButton name="$parentCheckForAbolish" inherits="OptionsCheckButtonTemplate">
1651 <Anchors>
1652 <Anchor point="TOPLEFT" relativeTo="$parentPrintCustomFrame">
1653 <Offset>
1654 <AbsDimension x="0" y="-25" />
1655 </Offset>
1656 </Anchor>
1657 </Anchors>
1658 <Scripts>
1659 <OnClick>
1660 Dcr_Saved.Check_For_Abolish = (this:GetChecked() == 1);
1661 </OnClick>
1662 <OnLoad>
1663 Dcr_ThisSetText(DCR_ABOLISH_CHECK);
1664 </OnLoad>
1665 <OnShow>
1666 if (Dcr_Saved.Check_For_Abolish) then
1667 this:SetChecked(1);
1668 else
1669 this:SetChecked(0);
1670 end
1671 </OnShow>
1672 </Scripts>
1673 </CheckButton>
1674 <!--
1675 <CheckButton name="$parentCheckForRange" inherits="OptionsCheckButtonTemplate">
1676 <Anchors>
1677 <Anchor point="TOPLEFT" relativeTo="$parentCheckForAbolish">
1678 <Offset>
1679 <AbsDimension x="0" y="-25" />
1680 </Offset>
1681 </Anchor>
1682 </Anchors>
1683 <Scripts>
1684 <OnClick>
1685 Dcr_Saved.RangeCheck = (this:GetChecked() == 1);
1686 </OnClick>
1687 <OnLoad>
1688 Dcr_ThisSetText(DCR_CHECK_RANGE);
1689 </OnLoad>
1690 <OnShow>
1691 if (Dcr_Saved.RangeCheck) then
1692 this:SetChecked(1);
1693 else
1694 this:SetChecked(0);
1695 end
1696 </OnShow>
1697 </Scripts>
1698 </CheckButton>
1699 -->
1700  
1701 <CheckButton name="$parentDoNotBLPrio" inherits="OptionsCheckButtonTemplate">
1702 <Anchors>
1703 <Anchor point="TOPLEFT" relativeTo="$parentCheckForAbolish">
1704 <Offset>
1705 <AbsDimension x="0" y="-25" />
1706 </Offset>
1707 </Anchor>
1708 </Anchors>
1709 <Scripts>
1710 <OnClick>
1711 Dcr_Saved.DoNot_Blacklist_Prio_List = (this:GetChecked() == 1);
1712 </OnClick>
1713 <OnLoad>
1714 Dcr_ThisSetText(DCR_DONOT_BL_PRIO);
1715 </OnLoad>
1716 <OnShow>
1717 if (Dcr_Saved.DoNot_Blacklist_Prio_List) then
1718 this:SetChecked(1);
1719 else
1720 this:SetChecked(0);
1721 end
1722 </OnShow>
1723 </Scripts>
1724 </CheckButton>
1725  
1726 <CheckButton name="$parentAlwaysUseBestSpell" inherits="OptionsCheckButtonTemplate">
1727 <Anchors>
1728 <Anchor point="TOPLEFT" relativeTo="$parentDoNotBLPrio">
1729 <Offset>
1730 <AbsDimension x="0" y="-25" />
1731 </Offset>
1732 </Anchor>
1733 </Anchors>
1734 <Scripts>
1735 <OnClick>
1736 Dcr_Saved.AlwaysUseBestSpell = (this:GetChecked() == 1);
1737 </OnClick>
1738 <OnLoad>
1739 Dcr_ThisSetText(DCR_BEST_SPELL);
1740 </OnLoad>
1741 <OnShow>
1742 if (Dcr_Saved.AlwaysUseBestSpell) then
1743 this:SetChecked(1);
1744 else
1745 this:SetChecked(0);
1746 end
1747 </OnShow>
1748 </Scripts>
1749 </CheckButton>
1750  
1751 <CheckButton name="$parentRandomOrder" inherits="OptionsCheckButtonTemplate">
1752 <Anchors>
1753 <Anchor point="TOPLEFT" relativeTo="$parentAlwaysUseBestSpell">
1754 <Offset>
1755 <AbsDimension x="0" y="-25" />
1756 </Offset>
1757 </Anchor>
1758 </Anchors>
1759 <Scripts>
1760 <OnClick>
1761 Dcr_Saved.Random_Order = (this:GetChecked() == 1);
1762 </OnClick>
1763 <OnLoad>
1764 Dcr_ThisSetText(DCR_RANDOM_ORDER);
1765 </OnLoad>
1766 <OnShow>
1767 if (Dcr_Saved.Random_Order) then
1768 this:SetChecked(1);
1769 else
1770 this:SetChecked(0);
1771 end
1772 </OnShow>
1773 </Scripts>
1774 </CheckButton>
1775  
1776 <CheckButton name="$parentCurePets" inherits="OptionsCheckButtonTemplate">
1777 <Anchors>
1778 <Anchor point="TOPLEFT" relativeTo="$parentRandomOrder">
1779 <Offset>
1780 <AbsDimension x="0" y="-25" />
1781 </Offset>
1782 </Anchor>
1783 </Anchors>
1784 <Scripts>
1785 <OnClick>
1786 Dcr_Saved.Scan_Pets = (this:GetChecked() == 1);
1787 </OnClick>
1788 <OnLoad>
1789 Dcr_ThisSetText(DCR_CURE_PETS);
1790 </OnLoad>
1791 <OnShow>
1792 if (Dcr_Saved.Scan_Pets) then
1793 this:SetChecked(1);
1794 else
1795 this:SetChecked(0);
1796 end
1797 </OnShow>
1798 </Scripts>
1799 </CheckButton>
1800  
1801 <CheckButton name="$parentSkipStealth" inherits="OptionsCheckButtonTemplate">
1802 <Anchors>
1803 <Anchor point="TOPLEFT" relativeTo="$parentCurePets">
1804 <Offset>
1805 <AbsDimension x="0" y="-25" />
1806 </Offset>
1807 </Anchor>
1808 </Anchors>
1809 <Scripts>
1810 <OnClick>
1811 Dcr_Saved.Ingore_Stealthed = (this:GetChecked() == 1);
1812 </OnClick>
1813 <OnLoad>
1814 Dcr_ThisSetText(DCR_IGNORE_STEALTH);
1815 </OnLoad>
1816 <OnShow>
1817 if (Dcr_Saved.Ingore_Stealthed) then
1818 this:SetChecked(1);
1819 else
1820 this:SetChecked(0);
1821 end
1822 </OnShow>
1823 </Scripts>
1824 </CheckButton>
1825 <CheckButton name="$parentPlaySound" inherits="OptionsCheckButtonTemplate">
1826 <Anchors>
1827 <Anchor point="TOPLEFT" relativeTo="$parentSkipStealth">
1828 <Offset>
1829 <AbsDimension x="0" y="-25" />
1830 </Offset>
1831 </Anchor>
1832 </Anchors>
1833 <Scripts>
1834 <OnClick>
1835 Dcr_Saved.PlaySound = (this:GetChecked() == 1);
1836 </OnClick>
1837 <OnLoad>
1838 Dcr_ThisSetText(DCR_PLAY_SOUND);
1839 </OnLoad>
1840 <OnShow>
1841 if (Dcr_Saved.PlaySound) then
1842 this:SetChecked(1);
1843 else
1844 this:SetChecked(0);
1845 end
1846 </OnShow>
1847 </Scripts>
1848 </CheckButton>
1849  
1850 <CheckButton name="$parentPrintError" inherits="OptionsCheckButtonTemplate">
1851 <Anchors>
1852 <Anchor point="TOPLEFT" relativeTo="$parentPlaySound">
1853 <Offset>
1854 <AbsDimension x="0" y="-25" />
1855 </Offset>
1856 </Anchor>
1857 </Anchors>
1858 <Scripts>
1859 <OnClick>
1860 Dcr_Saved.Print_Error = (this:GetChecked() == 1);
1861 </OnClick>
1862 <OnLoad>
1863 Dcr_ThisSetText(DCR_PRINT_ERRORS);
1864 </OnLoad>
1865 <OnShow>
1866 if (Dcr_Saved.Print_Error) then
1867 this:SetChecked(1);
1868 else
1869 this:SetChecked(0);
1870 end
1871 </OnShow>
1872 </Scripts>
1873 </CheckButton>
1874  
1875  
1876  
1877 <Button name="$parentSave" inherits="GameMenuButtonTemplate" text="CLOSE">
1878 <Anchors>
1879 <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="$parent">
1880 <Offset>
1881 <AbsDimension x="0" y="25" />
1882 </Offset>
1883 </Anchor>
1884 </Anchors>
1885 <Scripts>
1886 <OnLoad>
1887 this:SetText(DCR_STR_CLOSE);
1888 </OnLoad>
1889 <OnClick>
1890 Dcr_ShowHideOptionsUI();
1891 </OnClick>
1892 </Scripts>
1893 </Button>
1894 </Frames>
1895  
1896 </Frame>
1897  
1898 <Frame name="DecursiveAnchor" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
1899 <Size>
1900 <AbsDimension x="150" y="25"/>
1901 </Size>
1902  
1903 <Anchors>
1904 <Anchor point="TOP" relativeTo="UIErrorsFrame" relativePoint="BOTTOM">
1905 <Offset>
1906 <AbsDimension x="0" y="0"/>
1907 </Offset>
1908 </Anchor>
1909 </Anchors>
1910  
1911 <TitleRegion setAllPoints="true"/>
1912  
1913 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1914 <EdgeSize>
1915 <AbsValue val="16"/>
1916 </EdgeSize>
1917 <TileSize>
1918 <AbsValue val="16"/>
1919 </TileSize>
1920 <BackgroundInsets>
1921 <AbsInset left="5" right="5" top="5" bottom="5"/>
1922 </BackgroundInsets>
1923 </Backdrop>
1924  
1925 <Layers>
1926 <Layer level="BACKGROUND">
1927 <FontString name="$parentText" inherits="GameFontNormal" text="DCR_ANCHOR">
1928 <Anchors>
1929 <Anchor point="TOP">
1930 <Offset>
1931 <AbsDimension x="0" y="-5"/>
1932 </Offset>
1933 </Anchor>
1934 </Anchors>
1935 </FontString>
1936 </Layer>
1937 </Layers>
1938 </Frame>
1939  
1940 <MessageFrame name="DecursiveTextFrame" insertMode="TOP" parent="UIParent" frameStrata="HIGH" toplevel="true" >
1941 <Size>
1942 <AbsDimension x="600" y="140"/>
1943 </Size>
1944 <Anchors>
1945 <Anchor point="TOP" relativeTo="DecursiveAnchor" relativePoint="BOTTOM">
1946 <Offset>
1947 <AbsDimension x="0" y="0"/>
1948 </Offset>
1949 </Anchor>
1950 </Anchors>
1951  
1952 <FontString inherits="MasterFont" font="Fonts\FRIZQT__.TTF" justifyH="CENTER">
1953 <FontHeight>
1954 <AbsValue val="12"/>
1955 </FontHeight>
1956 </FontString>
1957 </MessageFrame>
1958  
1959 <!-- read http://www.wowwiki.com/UIOBJECT_GameTooltip for more information -->
1960 <GameTooltip name="Dcr_ScanningTooltip" inherits="GameTooltipTemplate">
1961 <Scripts>
1962 <Onload>
1963 this:SetOwner(this, "ANCHOR_NONE");
1964 </Onload>
1965 </Scripts>
1966 </GameTooltip>
1967  
1968 <GameTooltip name="DcrDisplay_Tooltip" hidden="true" inherits="GameTooltipTemplate" parent="DecursiveAfflictedListFrame" />
1969  
1970 <!-- Frame to handle all core events -->
1971 <Frame name="Decursive">
1972 <Scripts>
1973 <OnLoad>
1974 Dcr_OnLoad(this);
1975  
1976 </OnLoad>
1977 <OnEvent>
1978 Dcr_OnEvent(event);
1979  
1980  
1981 </OnEvent>
1982 <OnUpdate>
1983 Dcr_OnUpdate(arg1);
1984 </OnUpdate>
1985 </Scripts>
1986 </Frame>
1987 <GameTooltip name="Dcr_Tooltip" hidden="true" inherits="GameTooltipTemplate"/>
1988 </Ui>