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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
2 <Script file="SmartPetGUI.lua"/>
3 <Frame name="SmartPetOptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
4 <Size>
5 <AbsDimension x="500" y="400"/>
6 </Size>
7 <Anchors>
8 <Anchor point="CENTER"/>
9 </Anchors>
10 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
11 <BackgroundInsets>
12 <AbsInset left="11" right="12" top="12" bottom="11"/>
13 </BackgroundInsets>
14 <TileSize>
15 <AbsValue val="32"/>
16 </TileSize>
17 <EdgeSize>
18 <AbsValue val="32"/>
19 </EdgeSize>
20 </Backdrop>
21  
22 <Layers>
23 <Layer level="ARTWORK">
24 <Texture name="SmartPetOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
25 <Size>
26 <AbsDimension x="256" y="64"/>
27 </Size>
28 <Anchors>
29 <Anchor point="TOP">
30 <Offset>
31 <AbsDimension x="0" y="12"/>
32 </Offset>
33 </Anchor>
34 </Anchors>
35 </Texture>
36 <FontString inherits="GameFontNormal" text="SmartPet Options">
37 <Anchors>
38 <Anchor point="TOP" relativeTo="SmartPetOptionsFrameHeader">
39 <Offset>
40 <AbsDimension x="0" y="-14"/>
41 </Offset>
42 </Anchor>
43 </Anchors>
44 </FontString>
45 </Layer>
46 </Layers>
47  
48 <Frames>
49 <CheckButton name="SmartPetEnableToggleButton" inherits="UICheckButtonTemplate">
50 <Size>
51 <AbsDimension x="40" y="40"/>
52 </Size>
53 <Anchors>
54 <Anchor point="TOP" relativeTo="SmartPetOptionsFrameHeader">
55 <Offset>
56 <AbsDimension x="-60" y="-30"/>
57 </Offset>
58 </Anchor>
59 </Anchors>
60 <Layers>
61 <Layer level="ARTWORK">
62 <FontString text="Smartpet Enabled" name="$parentLabel" inherits="GameFontHighlight">
63 <Anchors>
64 <Anchor point="LEFT" relativePoint="RIGHT"/>
65 </Anchors>
66 </FontString>
67 </Layer>
68 </Layers>
69 <Scripts>
70 <OnClick>
71 if ( this:GetChecked() ) then
72 PlaySound("igMainMenuOptionCheckBoxOff");
73 else
74 PlaySound("igMainMenuOptionCheckBoxOn");
75 end
76 SmartPetEnable_Toggle();
77 </OnClick>
78 </Scripts>
79 </CheckButton>
80  
81 <CheckButton name="SmartPetOptionsToggleButton" inherits="UICheckButtonTemplate">
82 <Size>
83 <AbsDimension x="24" y="24"/>
84 </Size>
85 <Anchors>
86 <Anchor point="TOPLEFT" relativeTo="SmartPetOptionsFrame" relativePoint="TOPLEFT">
87 <Offset>
88 <AbsDimension x="100" y="-60"/>
89 </Offset>
90 </Anchor>
91 </Anchors>
92 <Layers>
93 <Layer level="ARTWORK">
94 <FontString text="Show Options Icon" name="$parentLabel" inherits="GameFontHighlight">
95 <Anchors>
96 <Anchor point="LEFT" relativePoint="RIGHT"/>
97 </Anchors>
98 </FontString>
99 </Layer>
100 </Layers>
101 <Scripts>
102 <OnClick>
103 if ( this:GetChecked() ) then
104 PlaySound("igMainMenuOptionCheckBoxOff");
105 SmartPetOptionButton:Show();
106 SmartPet_Config.Icon = true;
107 else
108 PlaySound("igMainMenuOptionCheckBoxOn");
109 SmartPetOptionButton:Hide();
110 SmartPet_Config.Icon = false;
111 end
112  
113 </OnClick>
114 </Scripts>
115 </CheckButton>
116  
117 <CheckButton name="SmartPetToolTipsToggleButton" inherits="UICheckButtonTemplate">
118 <Size>
119 <AbsDimension x="24" y="24"/>
120 </Size>
121 <Anchors>
122 <Anchor point="TOPLEFT" relativeTo="SmartPetOptionsToggleButton" relativePoint="TOPRIGHT">
123 <Offset>
124 <AbsDimension x="140" y="0"/>
125 </Offset>
126 </Anchor>
127 </Anchors>
128 <Layers>
129 <Layer level="ARTWORK">
130 <FontString text="Enable ToolTips" name="$parentLabel" inherits="GameFontHighlight">
131 <Anchors>
132 <Anchor point="LEFT" relativePoint="RIGHT"/>
133 </Anchors>
134 </FontString>
135 </Layer>
136 </Layers>
137 <Scripts>
138 <OnClick>
139 if ( this:GetChecked() ) then
140 PlaySound("igMainMenuOptionCheckBoxOff");
141 else
142 PlaySound("igMainMenuOptionCheckBoxOn");
143 end
144 SmartPet_OnSlashCommand(SMARTPET_TOOLTIPS);
145  
146 </OnClick>
147 </Scripts>
148 </CheckButton>
149  
150 <Frame name="SmartPet_AllOptions" toplevel="false" enableMouse="true" movable="true" parent="SmartPetOptionsFrame" hidden="true">
151 <Size>
152 <AbsDimension x="500" y="200"/>
153 </Size>
154 <Anchors>
155 <Anchor point="CENTER">
156 <Offset>
157 <AbsDimension x="0" y="20"/>
158 </Offset>
159 </Anchor>
160 </Anchors>
161  
162 <Frames>
163 <CheckButton name="SmartPetAttackAlert" inherits="UICheckButtonTemplate">
164 <Size>
165 <AbsDimension x="24" y="24"/>
166 </Size>
167 <Anchors>
168 <Anchor point="TOPLEFT" relativeTo="SmartPet_AllOptions">
169 <Offset>
170 <AbsDimension x="80" y="-20"/>
171 </Offset>
172 </Anchor>
173 </Anchors>
174 <Layers>
175 <Layer level="ARTWORK">
176 <FontString text="Give Alert On Attack" name="$parentLabel" inherits="GameFontHighlight">
177 <Anchors>
178 <Anchor point="LEFT" relativePoint="RIGHT"/>
179 </Anchors>
180 </FontString>
181 </Layer>
182 </Layers>
183 <Scripts>
184 <OnClick>
185 if ( this:GetChecked() ) then
186 PlaySound("igMainMenuOptionCheckBoxOff");
187 SmartPet_Config.Alert = true;
188 SmartPet_AddInfoMessage("You will now give an alert on attack");
189 else
190 PlaySound("igMainMenuOptionCheckBoxOn");
191 SmartPet_Config.Alert = false;
192 SmartPet_AddInfoMessage("You will no longer give an alert on attack");
193 end
194  
195  
196 </OnClick>
197 </Scripts>
198 </CheckButton>
199  
200 <CheckButton name="SmartPetSmartFocusCheckBox" inherits="UICheckButtonTemplate">
201 <Size>
202 <AbsDimension x="24" y="24"/>
203 </Size>
204 <Anchors>
205 <Anchor point="TOPLEFT" relativeTo="SmartPetAttackAlert" relativePoint="BOTTOMLEFT">
206 <Offset>
207 <AbsDimension x="0" y="0"/>
208 </Offset>
209 </Anchor>
210 </Anchors>
211 <Layers>
212 <Layer level="ARTWORK">
213 <FontString text="Use Smart Focus" name="$parentLabel" inherits="GameFontHighlight">
214 <Anchors>
215 <Anchor point="LEFT" relativePoint="RIGHT"/>
216 </Anchors>
217 </FontString>
218 </Layer>
219 </Layers>
220 <Scripts>
221 <OnClick>
222 if ( this:GetChecked() ) then
223 PlaySound("igMainMenuOptionCheckBoxOff");
224 else
225 PlaySound("igMainMenuOptionCheckBoxOn");
226 end
227 SmartPet_OnSlashCommand(SMARTPET_SMARTFOCUS);
228  
229 </OnClick>
230 </Scripts>
231 </CheckButton>
232  
233  
234 <CheckButton name="SmartPetAttackRunCheckBox" inherits="UICheckButtonTemplate">
235 <Size>
236 <AbsDimension x="24" y="24"/>
237 </Size>
238 <Anchors>
239 <Anchor point="LEFT" relativeTo="SmartPetSmartFocusCheckBox" relativePoint="RIGHT">
240 <Offset>
241 <AbsDimension x="150" y="0"/>
242 </Offset>
243 </Anchor>
244 </Anchors>
245 <Layers>
246 <Layer level="ARTWORK">
247 <FontString text="Use Dash/Dive On Attack" name="$parentLabel" inherits="GameFontHighlight">
248 <Anchors>
249 <Anchor point="LEFT" relativePoint="RIGHT"/>
250 </Anchors>
251 </FontString>
252 </Layer>
253 </Layers>
254 <Scripts>
255 <OnClick>
256 if (this:GetChecked()) then
257 PlaySound("igMainMenuOptionCheckBoxOff");
258 SmartPet_Config.RushAttack = true;
259 SmartPet_AddInfoMessage("Dash/Dive On Attack Enabled");
260 else
261 PlaySound("igMainMenuOptionCheckBoxOn");
262 SmartPet_Config.RushAttack = false;
263 SmartPet_AddInfoMessage("Dash/Dive On Attack Disabled");
264 end
265  
266  
267 </OnClick>
268 </Scripts>
269 </CheckButton>
270  
271  
272 <CheckButton name="SmartPetNoChaseToggleButton" inherits="UICheckButtonTemplate">
273 <Size>
274 <AbsDimension x="24" y="24"/>
275 </Size>
276 <Anchors>
277 <Anchor point="TOPLEFT" relativeTo="SmartPetSmartFocusCheckBox" relativePoint="BOTTOMLEFT">
278 <Offset>
279 <AbsDimension x="0" y="0"/>
280 </Offset>
281 </Anchor>
282 </Anchors>
283 <Layers>
284 <Layer level="ARTWORK">
285 <FontString text="Enable NoChase" name="$parentLabel" inherits="GameFontHighlight">
286 <Anchors>
287 <Anchor point="LEFT" relativePoint="RIGHT"/>
288 </Anchors>
289 </FontString>
290 </Layer>
291 </Layers>
292 <Scripts>
293 <OnClick>
294 if ( this:GetChecked() ) then
295 PlaySound("igMainMenuOptionCheckBoxOff");
296 else
297 PlaySound("igMainMenuOptionCheckBoxOn");
298 end
299 SmartPet_OnSlashCommand(SMARTPET_NOCHASE);
300 </OnClick>
301 </Scripts>
302 </CheckButton>
303  
304 <CheckButton name="SmartPetRecallAlert" inherits="UICheckButtonTemplate">
305 <Size>
306 <AbsDimension x="24" y="24"/>
307 </Size>
308 <Anchors>
309 <Anchor point="LEFT" relativeTo="SmartPetNoChaseToggleButton" relativePoint="RIGHT">
310 <Offset>
311 <AbsDimension x="150" y="0"/>
312 </Offset>
313 </Anchor>
314 </Anchors>
315 <Layers>
316 <Layer level="ARTWORK">
317 <FontString text="Show Recall Warning" name="$parentLabel" inherits="GameFontHighlight">
318 <Anchors>
319 <Anchor point="LEFT" relativePoint="RIGHT"/>
320 </Anchors>
321 </FontString>
322 </Layer>
323 </Layers>
324 <Scripts>
325 <OnClick>
326 if ( this:GetChecked() ) then
327 PlaySound("igMainMenuOptionCheckBoxOff");
328 SmartPet_Config.RecallWarn = true;
329 SmartPet_AddInfoMessage("Recall Warning Shown");
330 else
331 PlaySound("igMainMenuOptionCheckBoxOn");
332 SmartPet_Config.RecallWarn = false;
333 SmartPet_AddInfoMessage("Recall Warning Hidden");
334 end
335  
336  
337 </OnClick>
338 </Scripts>
339 </CheckButton>
340  
341 <CheckButton name="SmartPetAutoCowerToggleButton" inherits="UICheckButtonTemplate">
342 <Size>
343 <AbsDimension x="24" y="24"/>
344 </Size>
345 <Anchors>
346 <Anchor point="TOPLEFT" relativeTo="SmartPetNoChaseToggleButton" relativePoint="BOTTOMLEFT">
347 <Offset>
348 <AbsDimension x="0" y="0"/>
349 </Offset>
350 </Anchor>
351 </Anchors>
352 <Layers>
353 <Layer level="ARTWORK">
354 <FontString text="Use AutoCower" name="$parentLabel" inherits="GameFontHighlight">
355 <Anchors>
356 <Anchor point="LEFT" relativePoint="RIGHT"/>
357 </Anchors>
358 </FontString>
359 </Layer>
360 </Layers>
361 <Scripts>
362 <OnClick>
363 if ( this:GetChecked() ) then
364 PlaySound("igMainMenuOptionCheckBoxOff");
365 else
366 PlaySound("igMainMenuOptionCheckBoxOn");
367 end
368 SmartPet_OnSlashCommand(SMARTPET_AUTOCOWER);
369 </OnClick>
370 </Scripts>
371 </CheckButton>
372  
373  
374 <EditBox name="SmartPetAutoCowerPercentEditBox" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
375 <Size>
376 <AbsDimension x="30" y="16"/>
377 </Size>
378 <Anchors>
379 <Anchor point="LEFT" relativeTo="SmartPetAutoCowerToggleButton" relativePoint="RIGHT">
380 <Offset>
381 <AbsDimension x="250" y="0"/>
382 </Offset>
383 </Anchor>
384 </Anchors>
385 <Layers>
386 <Layer level="ARTWORK">
387 <FontString inherits="GameFontHighlight" name="$parentLabel" text="Auto Cower%:">
388 <Anchors>
389 <Anchor point="RIGHT" relativePoint="LEFT">
390 <Offset>
391 <AbsDimension x="-5" y="1"/>
392 </Offset>
393 </Anchor>
394 </Anchors>
395 </FontString>
396 </Layer>
397 </Layers>
398 <Scripts>
399 <OnTabPressed>
400 SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
401  
402 </OnTabPressed>
403 <OnEnterPressed>
404 SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
405 </OnEnterPressed>
406 <OnValueChanged>
407 SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
408 </OnValueChanged>
409 <OnEditFocusLost>
410 SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
411 </OnEditFocusLost>
412 </Scripts>
413 </EditBox>
414  
415  
416 <CheckButton name="SmartPetSpellOnAttackToggleButton" inherits="UICheckButtonTemplate">
417 <Size>
418 <AbsDimension x="24" y="24"/>
419 </Size>
420 <Anchors>
421 <Anchor point="TOPLEFT" relativeTo="SmartPetAutoCowerToggleButton" relativePoint="BOTTOMLEFT">
422 <Offset>
423 <AbsDimension x="0" y="0"/>
424 </Offset>
425 </Anchor>
426 </Anchors>
427 <Layers>
428 <Layer level="ARTWORK">
429 <FontString text="Cast Spell on Pet Attack" name="$parentLabel" inherits="GameFontHighlight">
430 <Anchors>
431 <Anchor point="LEFT" relativePoint="RIGHT"/>
432 </Anchors>
433 </FontString>
434 </Layer>
435 </Layers>
436 <Scripts>
437 <OnClick>
438 if (this:GetChecked()) then
439 PlaySound("igMainMenuOptionCheckBoxOff");
440 SmartPet_Config.SpellAttack = true;
441 SmartPet_AddInfoMessage( "Spell Attack");
442 else
443 PlaySound("igMainMenuOptionCheckBoxOn");
444 SmartPet_Config.SpellAttack = false;
445 SmartPet_AddInfoMessage( "no Spell Attack");
446 end
447  
448 </OnClick>
449 </Scripts>
450 </CheckButton>
451  
452 <Button name="SmartPetAttackSpell" inherits="ActionButtonTemplate" frameStrata="DIALOG" virtual="true">
453 <Anchors>
454 <Anchor point="BOTTOMLEFT" relativeTo="SmartPetSpellOnAttackToggleButton" relativePoint="BOTTOMRIGHT">
455 <Offset>
456 <AbsDimension x="170" y="-10"/>
457 </Offset>
458 </Anchor>
459 </Anchors>
460 <Size>
461 <AbsDimension x="35" y="35"/>
462 </Size>
463 <Layers>
464 <Layer level="ARTWORK">
465 <FontString name="SmartPetAttackSpellText" inherits="GameFontHighlight">
466 <Anchors>
467 <Anchor point="LEFT" relativePoint="RIGHT"/>
468 </Anchors>
469 </FontString>
470 </Layer>
471 </Layers>
472 <Scripts>
473 <OnLoad>
474 this:RegisterForDrag("LeftButton", "RightButton");
475 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
476 this:RegisterEvent("UPDATE_BINDINGS");
477 </OnLoad>
478 <OnClick>
479 SmartPetSelectedSpell();
480 </OnClick>
481 <OnDragStart>
482 SmartPetClearSpell();
483 </OnDragStart>
484 <OnReceiveDrag>
485 SmartPetSelectedSpell();
486 </OnReceiveDrag>
487 </Scripts>
488 <NormalTexture name="defaultNormalTexture2" file="Interface\Buttons\UI-EmptySlot-Disabled">
489 <Size>
490 <AbsDimension x="35" y="35"/>
491 </Size>
492 <Anchors>
493 <Anchor point="CENTER">
494 <Offset>
495 <AbsDimension x="0" y="0"/>
496 </Offset>
497 </Anchor>
498 </Anchors>
499 </NormalTexture>
500 </Button>
501  
502  
503 <CheckButton name="SmartPetScatterToggleButton" inherits="UICheckButtonTemplate">
504 <Size>
505 <AbsDimension x="24" y="24"/>
506 </Size>
507 <Anchors>
508 <Anchor point="TOPLEFT" relativeTo="SmartPetSpellOnAttackToggleButton" relativePoint="BOTTOMLEFT">
509 <Offset>
510 <AbsDimension x="0" y="0"/>
511 </Offset>
512 </Anchor>
513 </Anchors>
514 <Layers>
515 <Layer level="ARTWORK">
516 <FontString text="Use Scatter Shot Call Off" name="$parentLabel" inherits="GameFontHighlight">
517 <Anchors>
518 <Anchor point="LEFT" relativePoint="RIGHT"/>
519 </Anchors>
520 </FontString>
521 </Layer>
522 </Layers>
523 <Scripts>
524 <OnClick>
525 if ( this:GetChecked() ) then
526 PlaySound("igMainMenuOptionCheckBoxOff");
527 SmartPet_Config.Scatter = true;
528 SmartPet_ScatterOptions:Show();
529  
530 else
531 PlaySound("igMainMenuOptionCheckBoxOn");
532 SmartPet_Config.Scatter = false;
533 SmartPet_ScatterOptions:Hide();
534  
535 end
536  
537 </OnClick>
538 </Scripts>
539 </CheckButton>
540  
541 <Frame name="SmartPet_ScatterOptions" toplevel="true" enableMouse="true" movable="true" parent="SmartPet_AllOptions" hidden="true">
542 <Size>
543 <AbsDimension x="500" y="45"/>
544 </Size>
545 <Anchors>
546 <Anchor point="TOPLEFT" relativeTo="SmartPetScatterToggleButton" relativePoint="BOTTOMLEFT">
547 <Offset>
548 <AbsDimension x="-80" y="0"/>
549 </Offset>
550 </Anchor>
551 </Anchors>
552 <Backdrop edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
553 <BackgroundInsets>
554 <AbsInset left="11" right="12" top="12" bottom="11"/>
555 </BackgroundInsets>
556 <TileSize>
557 <AbsValue val="32"/>
558 </TileSize>
559 <EdgeSize>
560 <AbsValue val="32"/>
561 </EdgeSize>
562 </Backdrop>
563 <Frames>
564  
565 <CheckButton name="SmartPetScatterDefensiveButton" inherits="UICheckButtonTemplate">
566 <Size>
567 <AbsDimension x="24" y="24"/>
568 </Size>
569 <Anchors>
570 <Anchor point="TOPLEFT">
571 <Offset>
572 <AbsDimension x="70" y="-10"/>
573 </Offset>
574 </Anchor>
575 </Anchors>
576 <Layers>
577 <Layer level="ARTWORK">
578 <FontString text="Defensive" name="$parentLabel" inherits="GameFontHighlight">
579 <Anchors>
580 <Anchor point="LEFT" relativePoint="RIGHT"/>
581 </Anchors>
582 </FontString>
583 </Layer>
584 </Layers>
585 <Scripts>
586 <OnClick>
587 if ( this:GetChecked() ) then
588 PlaySound("igMainMenuOptionCheckBoxOff");
589 SmartPetScatterMoodToggle("defensive");
590 else
591 PlaySound("igMainMenuOptionCheckBoxOn");
592 SmartPetScatterMoodToggle("clear");
593  
594 end
595  
596 </OnClick>
597 </Scripts>
598 </CheckButton>
599 <CheckButton name="SmartPetScatterPassiveButton" inherits="UICheckButtonTemplate">
600 <Size>
601 <AbsDimension x="24" y="24"/>
602 </Size>
603 <Anchors>
604 <Anchor point="TOPLEFT" relativeTo="SmartPetScatterDefensiveButton" relativePoint="TOPRIGHT">
605 <Offset>
606 <AbsDimension x="75" y="0"/>
607 </Offset>
608 </Anchor>
609 </Anchors>
610 <Layers>
611 <Layer level="ARTWORK">
612 <FontString text="Passive" name="$parentLabel" inherits="GameFontHighlight">
613 <Anchors>
614 <Anchor point="LEFT" relativePoint="RIGHT"/>
615 </Anchors>
616 </FontString>
617 </Layer>
618 </Layers>
619 <Scripts>
620 <OnClick>
621 if ( this:GetChecked() ) then
622 PlaySound("igMainMenuOptionCheckBoxOff");
623 SmartPetScatterMoodToggle("passive");
624 else
625 PlaySound("igMainMenuOptionCheckBoxOn");
626 SmartPetScatterMoodToggle("clear");
627 end
628  
629 </OnClick>
630 </Scripts>
631 </CheckButton>
632  
633  
634  
635 <CheckButton name="SmartPetScatterStayButton" inherits="UICheckButtonTemplate">
636 <Size>
637 <AbsDimension x="24" y="24"/>
638 </Size>
639 <Anchors>
640 <Anchor point="TOPLEFT" relativeTo="SmartPetScatterPassiveButton" relativePoint="TOPRIGHT">
641 <Offset>
642 <AbsDimension x="75" y="0"/>
643 </Offset>
644 </Anchor>
645 </Anchors>
646 <Layers>
647 <Layer level="ARTWORK">
648 <FontString text="Stay" name="$parentLabel" inherits="GameFontHighlight">
649 <Anchors>
650 <Anchor point="LEFT" relativePoint="RIGHT"/>
651 </Anchors>
652 </FontString>
653 </Layer>
654 </Layers>
655 <Scripts>
656 <OnClick>
657 if ( this:GetChecked() ) then
658 PlaySound("igMainMenuOptionCheckBoxOff");
659 SmartPetScatterCommandToggle("stay");
660 else
661 PlaySound("igMainMenuOptionCheckBoxOn");
662 SmartPetScatterCommandToggle("clear");
663 end
664  
665 </OnClick>
666 </Scripts>
667 </CheckButton>
668 <CheckButton name="SmartPetScatterFollowButton" inherits="UICheckButtonTemplate">
669 <Size>
670 <AbsDimension x="24" y="24"/>
671 </Size>
672 <Anchors>
673 <Anchor point="TOPLEFT" relativeTo="SmartPetScatterStayButton" relativePoint="TOPRIGHT">
674 <Offset>
675 <AbsDimension x="75" y="0"/>
676 </Offset>
677 </Anchor>
678 </Anchors>
679 <Layers>
680 <Layer level="ARTWORK">
681 <FontString text="Follow" name="$parentLabel" inherits="GameFontHighlight">
682 <Anchors>
683 <Anchor point="LEFT" relativePoint="RIGHT"/>
684 </Anchors>
685 </FontString>
686 </Layer>
687 </Layers>
688 <Scripts>
689 <OnClick>
690 if ( this:GetChecked() ) then
691 PlaySound("igMainMenuOptionCheckBoxOff");
692 SmartPetScatterCommandToggle("follow");
693 else
694 PlaySound("igMainMenuOptionCheckBoxOn");
695 SmartPetScatterCommandToggle("clear");
696 end
697  
698 </OnClick>
699 </Scripts>
700 </CheckButton>
701  
702 </Frames>
703 </Frame>
704  
705  
706  
707  
708 <CheckButton name="SmartPetAutoWarnToggleButton" inherits="UICheckButtonTemplate">
709 <Size>
710 <AbsDimension x="24" y="24"/>
711 </Size>
712 <Anchors>
713 <Anchor point="TOPLEFT" relativeTo="SmartPet_ScatterOptions" relativePoint="BOTTOMLEFT">
714 <Offset>
715 <AbsDimension x="80" y="0"/>
716 </Offset>
717 </Anchor>
718 </Anchors>
719 <Layers>
720 <Layer level="ARTWORK">
721 <FontString text="Use AutoWarn" name="$parentLabel" inherits="GameFontHighlight">
722 <Anchors>
723 <Anchor point="LEFT" relativePoint="RIGHT"/>
724 </Anchors>
725 </FontString>
726 </Layer>
727 </Layers>
728 <Scripts>
729 <OnClick>
730 if ( this:GetChecked() ) then
731 PlaySound("igMainMenuOptionCheckBoxOff");
732 SmartPet_HealthWarningChanels:Show();
733 else
734 PlaySound("igMainMenuOptionCheckBoxOn");
735 SmartPet_HealthWarningChanels:Hide();
736 end
737 SmartPetAutowarn_Toggle();
738  
739 </OnClick>
740 </Scripts>
741 </CheckButton>
742  
743 <EditBox name="SmartPetAutoWarnPercentEditBox" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
744 <Size>
745 <AbsDimension x="30" y="16"/>
746 </Size>
747 <Anchors>
748 <Anchor point="LEFT" relativeTo="SmartPetAutoWarnToggleButton" relativePoint="RIGHT">
749 <Offset>
750 <AbsDimension x="250" y="0"/>
751 </Offset>
752 </Anchor>
753 </Anchors>
754 <Layers>
755 <Layer level="ARTWORK">
756 <FontString inherits="GameFontHighlight" name="$parentLabel" text="Auto Warn%:">
757 <Anchors>
758 <Anchor point="RIGHT" relativePoint="LEFT">
759 <Offset>
760 <AbsDimension x="-5" y="1"/>
761 </Offset>
762 </Anchor>
763 </Anchors>
764 </FontString>
765 </Layer>
766 </Layers>
767 <Scripts>
768 <OnTabPressed>
769 SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
770  
771 </OnTabPressed>
772 <OnEnterPressed>
773 SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
774 </OnEnterPressed>
775 <OnValueChanged>
776 SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
777 </OnValueChanged>
778 <OnEditFocusLost>
779 SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
780 </OnEditFocusLost>
781 </Scripts>
782 </EditBox>
783 <Frame name="SmartPet_HealthWarningChanels" toplevel="true" enableMouse="true" movable="true" parent="SmartPet_AllOptions" hidden="true">
784 <Size>
785 <AbsDimension x="500" y="45"/>
786 </Size>
787 <Anchors>
788 <Anchor point="TOPLEFT" relativeTo="SmartPetAutoWarnToggleButton" relativePoint="BOTTOMLEFT">
789 <Offset>
790 <AbsDimension x="-80" y="0"/>
791 </Offset>
792 </Anchor>
793 </Anchors>
794 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
795 <BackgroundInsets>
796 <AbsInset left="11" right="12" top="12" bottom="11"/>
797 </BackgroundInsets>
798 <TileSize>
799 <AbsValue val="32"/>
800 </TileSize>
801 <EdgeSize>
802 <AbsValue val="32"/>
803 </EdgeSize>
804 </Backdrop>
805 <Frames>
806  
807 <CheckButton name="SmartPetHealthWarning_Say" inherits="UICheckButtonTemplate">
808 <Size>
809 <AbsDimension x="24" y="24"/>
810 </Size>
811 <Anchors>
812 <Anchor point="TOPLEFT">
813 <Offset>
814 <AbsDimension x="70" y="-10"/>
815 </Offset>
816 </Anchor>
817 </Anchors>
818 <Layers>
819 <Layer level="ARTWORK">
820 <FontString text="SAY" name="$parentLabel" inherits="GameFontHighlight">
821 <Anchors>
822 <Anchor point="LEFT" relativePoint="RIGHT"/>
823 </Anchors>
824 </FontString>
825 </Layer>
826 </Layers>
827 <Scripts>
828 <OnClick>
829 if ( this:GetChecked() ) then
830 PlaySound("igMainMenuOptionCheckBoxOff");
831 SmartPetHealthWarning_Group:SetChecked(0);
832 SmartPetHealthWarning_Raid:SetChecked(0);
833 SmartPetHealthWarning_Channel:SetChecked(0);
834 SmartPetHealthWarning_Guild:SetChecked(0);
835 SmartPet_Config.Channel = "say";
836  
837 else
838 PlaySound("igMainMenuOptionCheckBoxOn");
839 SmartPetHealthWarning_Say:SetChecked(1);
840 end
841 </OnClick>
842 </Scripts>
843 </CheckButton>
844  
845 <CheckButton name="SmartPetHealthWarning_Group" inherits="UICheckButtonTemplate">
846 <Size>
847 <AbsDimension x="24" y="24"/>
848 </Size>
849 <Anchors>
850 <Anchor point="LEFT" relativeTo="SmartPetHealthWarning_Say" relativePoint="RIGHT">
851 <Offset>
852 <AbsDimension x="35" y="0"/>
853 </Offset>
854 </Anchor>
855 </Anchors>
856 <Layers>
857 <Layer level="ARTWORK">
858 <FontString text="GROUP" name="$parentLabel" inherits="GameFontHighlight">
859 <Anchors>
860 <Anchor point="LEFT" relativePoint="RIGHT"/>
861 </Anchors>
862 </FontString>
863 </Layer>
864 </Layers>
865 <Scripts>
866 <OnClick>
867 if ( this:GetChecked() ) then
868 PlaySound("igMainMenuOptionCheckBoxOff");
869 SmartPetHealthWarning_Raid:SetChecked(0);
870 SmartPetHealthWarning_Say:SetChecked(0);
871 SmartPetHealthWarning_Channel:SetChecked(0);
872 SmartPetHealthWarning_Guild:SetChecked(0);
873 SmartPet_Config.Channel = "party";
874  
875 else
876 PlaySound("igMainMenuOptionCheckBoxOn");
877 SmartPetHealthWarning_Group:SetChecked(1);
878 end
879 </OnClick>
880 </Scripts>
881 </CheckButton>
882  
883 <CheckButton name="SmartPetHealthWarning_Guild" inherits="UICheckButtonTemplate">
884 <Size>
885 <AbsDimension x="24" y="24"/>
886 </Size>
887 <Anchors>
888 <Anchor point="LEFT" relativeTo="SmartPetHealthWarning_Group" relativePoint="RIGHT">
889 <Offset>
890 <AbsDimension x="50" y="0"/>
891 </Offset>
892 </Anchor>
893 </Anchors>
894 <Layers>
895 <Layer level="ARTWORK">
896 <FontString text="GUILD" name="$parentLabel" inherits="GameFontHighlight">
897 <Anchors>
898 <Anchor point="LEFT" relativePoint="RIGHT"/>
899 </Anchors>
900 </FontString>
901 </Layer>
902 </Layers>
903 <Scripts>
904 <OnClick>
905 if ( this:GetChecked() ) then
906 PlaySound("igMainMenuOptionCheckBoxOff");
907 SmartPetHealthWarning_Group:SetChecked(0);
908 SmartPetHealthWarning_Say:SetChecked(0);
909 SmartPetHealthWarning_Channel:SetChecked(0);
910 SmartPetHealthWarning_Raid:SetChecked(0);
911 SmartPet_Config.Channel = "guild";
912  
913 else
914 PlaySound("igMainMenuOptionCheckBoxOn");
915 SmartPetHealthWarning_Guild:SetChecked(1);
916 end
917 </OnClick>
918 </Scripts>
919 </CheckButton>
920  
921 <CheckButton name="SmartPetHealthWarning_Raid" inherits="UICheckButtonTemplate">
922 <Size>
923 <AbsDimension x="24" y="24"/>
924 </Size>
925 <Anchors>
926 <Anchor point="LEFT" relativeTo="SmartPetHealthWarning_Guild" relativePoint="RIGHT">
927 <Offset>
928 <AbsDimension x="45" y="0"/>
929 </Offset>
930 </Anchor>
931 </Anchors>
932 <Layers>
933 <Layer level="ARTWORK">
934 <FontString text="RAID" name="$parentLabel" inherits="GameFontHighlight">
935 <Anchors>
936 <Anchor point="LEFT" relativePoint="RIGHT"/>
937 </Anchors>
938 </FontString>
939 </Layer>
940 </Layers>
941 <Scripts>
942 <OnClick>
943 if ( this:GetChecked() ) then
944 PlaySound("igMainMenuOptionCheckBoxOff");
945 SmartPetHealthWarning_Group:SetChecked(0);
946 SmartPetHealthWarning_Say:SetChecked(0);
947 SmartPetHealthWarning_Channel:SetChecked(0);
948 SmartPetHealthWarning_Guild:SetChecked(0);
949 SmartPet_Config.Channel = "raid";
950 else
951 PlaySound("igMainMenuOptionCheckBoxOn");
952 SmartPetHealthWarning_Raid:SetChecked(1);
953 end
954 </OnClick>
955 </Scripts>
956 </CheckButton>
957  
958 <CheckButton name="SmartPetHealthWarning_Channel" inherits="UICheckButtonTemplate">
959 <Size>
960 <AbsDimension x="24" y="24"/>
961 </Size>
962 <Anchors>
963 <Anchor point="LEFT" relativeTo="SmartPetHealthWarning_Raid" relativePoint="RIGHT">
964 <Offset>
965 <AbsDimension x="35" y="0"/>
966 </Offset>
967 </Anchor>
968 </Anchors>
969 <Layers>
970 <Layer level="ARTWORK">
971 <FontString text="Channel #" name="$parentLabel" inherits="GameFontHighlight">
972 <Anchors>
973 <Anchor point="LEFT" relativePoint="RIGHT"/>
974 </Anchors>
975 </FontString>
976 </Layer>
977 </Layers>
978 <Scripts>
979 <OnClick>
980 if ( this:GetChecked() ) then
981 PlaySound("igMainMenuOptionCheckBoxOff");
982 SmartPetHealthWarning_Group:SetChecked(0);
983 SmartPetHealthWarning_Say:SetChecked(0);
984 SmartPetHealthWarning_Raid:SetChecked(0);
985 SmartPetHealthWarning_Guild:SetChecked(0);
986 SmartPet_Config.Channel = "channel";
987 else
988 PlaySound("igMainMenuOptionCheckBoxOn");
989 SmartPetHealthWarning_Channel:SetChecked(1);
990 end
991 </OnClick>
992 </Scripts>
993 </CheckButton>
994  
995 <EditBox name="SmartPet_AutoWarnChannelEditBox" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
996 <Size>
997 <AbsDimension x="30" y="16"/>
998 </Size>
999 <Anchors>
1000 <Anchor point="LEFT" relativeTo="SmartPetHealthWarning_Channel" relativePoint="RIGHT">
1001 <Offset>
1002 <AbsDimension x="60" y="0"/>
1003 </Offset>
1004 </Anchor>
1005 </Anchors>
1006 <Layers>
1007 <Layer level="ARTWORK">
1008 <FontString inherits="GameFontHighlight" name="$parentLabel" >
1009 <Anchors>
1010 <Anchor point="RIGHT" relativePoint="LEFT">
1011 <Offset>
1012 <AbsDimension x="-5" y="1"/>
1013 </Offset>
1014 </Anchor>
1015 </Anchors>
1016 </FontString>
1017 </Layer>
1018 </Layers>
1019 <Scripts>
1020 <OnTabPressed>
1021 SmartPetChannelSet;()
1022 </OnTabPressed>
1023 <OnEnterPressed>
1024 SmartPetChannelSet();
1025 </OnEnterPressed>
1026 <OnTextChanged>
1027 PlaySound("igMainMenuOptionCheckBoxOff");
1028  
1029 </OnTextChanged>
1030 <OnEditFocusGained>
1031 SmartPetHealthWarning_Group:SetChecked(0);
1032 SmartPetHealthWarning_Say:SetChecked(0);
1033 SmartPetHealthWarning_Raid:SetChecked(0);
1034 SmartPetHealthWarning_Guild:SetChecked(0);
1035 SmartPetHealthWarning_Channel:SetChecked(1);
1036 SmartPet_Config.Channel = "channel";
1037 </OnEditFocusGained>
1038 <OnEditFocusLost>
1039 SmartPetChannelSet();
1040 </OnEditFocusLost>
1041 </Scripts>
1042 </EditBox>
1043  
1044  
1045 </Frames>
1046 </Frame>
1047  
1048  
1049  
1050 </Frames>
1051 </Frame>
1052  
1053  
1054  
1055  
1056  
1057  
1058 <Button name="SmartPetOptionsFrameDone" inherits="OptionsButtonTemplate" text="Done">
1059 <Anchors>
1060 <Anchor point="BOTTOM">
1061 <Offset>
1062 <AbsDimension x="0" y="20"/>
1063 </Offset>
1064 </Anchor>
1065 </Anchors>
1066 <Scripts>
1067 <OnClick>
1068 HideUIPanel(SmartPetOptionsFrame);
1069 </OnClick>
1070 </Scripts>
1071 </Button>
1072 </Frames>
1073 <Scripts>
1074 <OnLoad>
1075 UIPanelWindows["SmartPetOptionsFrame"] = {area = "center", pushable = 0};
1076 SmartPetOptions_OnLoad();
1077 </OnLoad>
1078 <OnShow>
1079 SmartPetOptions_OnShow();
1080 </OnShow>
1081 <OnHide>
1082 SmartPetOptions_OnHide();
1083 </OnHide>
1084 </Scripts>
1085 </Frame>
1086 </Ui>