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 ..\FrameXML\UI.xsd">
3 <Script file="IMBA_Options.lua"/>
4  
5 <Frame name="IMBA_Options" toplevel="true" parent="UIParent" enableMouse="true" movable="true" hidden="true">
6 <Size>
7 <AbsDimension x="600" y="365"/>
8 </Size>
9 <Anchors>
10 <Anchor point="CENTER"/>
11 </Anchors>
12 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
13 <EdgeSize>
14 <AbsValue val="16"/>
15 </EdgeSize>
16 <TileSize>
17 <AbsValue val="16"/>
18 </TileSize>
19 <BackgroundInsets>
20 <AbsInset left="5" right="5" top="5" bottom="5"/>
21 </BackgroundInsets>
22 </Backdrop>
23 <Frames>
24 <Frame name="$parent_Title" inherits="IMBA_MainTitleTemplate">
25 <Anchors>
26 <Anchor point="TOP">
27 <Offset>
28 <AbsDimension x="0" y="-12"/>
29 </Offset>
30 </Anchor>
31 </Anchors>
32 </Frame>
33  
34  
35 <Frame name="$parent_BossFrame" inherits="OptionFrameBoxTemplate">
36 <Size>
37 <AbsDimension x="580" y="300"/>
38 </Size>
39 <Anchors>
40 <Anchor point="BOTTOM">
41 <Offset>
42 <AbsDimension x="0" y="8"/>
43 </Offset>
44 </Anchor>
45 </Anchors>
46 <Frames>
47 <Frame name="$parent_BossMod1" id="1" inherits="IMBA_BossModTemplate" hidden="false">
48 <Anchors>
49 <Anchor point="TOPLEFT">
50 <Offset>
51 <AbsDimension x="24" y="-10"/>
52 </Offset>
53 </Anchor>
54 </Anchors>
55 </Frame>
56 <Frame name="$parent_BossMod2" id="2" inherits="IMBA_BossModTemplate" hidden="false">
57 <Anchors>
58 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod1">
59 <Offset>
60 <AbsDimension x="0" y="-8"/>
61 </Offset>
62 </Anchor>
63 </Anchors>
64 </Frame>
65 <Frame name="$parent_BossMod3" id="3" inherits="IMBA_BossModTemplate" hidden="false">
66 <Anchors>
67 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod2">
68 <Offset>
69 <AbsDimension x="0" y="-8"/>
70 </Offset>
71 </Anchor>
72 </Anchors>
73 </Frame>
74 <Frame name="$parent_BossMod4" id="4" inherits="IMBA_BossModTemplate" hidden="false">
75 <Anchors>
76 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod3">
77 <Offset>
78 <AbsDimension x="0" y="-8"/>
79 </Offset>
80 </Anchor>
81 </Anchors>
82 </Frame>
83 <Frame name="$parent_BossMod5" id="5" inherits="IMBA_BossModTemplate" hidden="false">
84 <Anchors>
85 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod4">
86 <Offset>
87 <AbsDimension x="0" y="-8"/>
88 </Offset>
89 </Anchor>
90 </Anchors>
91 </Frame>
92 <Frame name="$parent_BossMod6" id="6" inherits="IMBA_BossModTemplate" hidden="false">
93 <Anchors>
94 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod5">
95 <Offset>
96 <AbsDimension x="0" y="-8"/>
97 </Offset>
98 </Anchor>
99 </Anchors>
100 </Frame>
101 <Frame name="$parent_BossMod7" id="7" inherits="IMBA_BossModTemplate" hidden="false">
102 <Anchors>
103 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod6">
104 <Offset>
105 <AbsDimension x="0" y="-8"/>
106 </Offset>
107 </Anchor>
108 </Anchors>
109 </Frame>
110 <Frame name="$parent_BossMod8" id="8" inherits="IMBA_BossModTemplate" hidden="false">
111 <Anchors>
112 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod7">
113 <Offset>
114 <AbsDimension x="0" y="-8"/>
115 </Offset>
116 </Anchor>
117 </Anchors>
118 </Frame>
119 <ScrollFrame name="$parent_ScrollFrame" inherits="FauxScrollFrameTemplate">
120 <Size>
121 <AbsDimension x="500" y="280"/>
122 </Size>
123 <Anchors>
124 <Anchor point="TOPLEFT">
125 <Offset>
126 <AbsDimension x="44" y="-10"/>
127 </Offset>
128 </Anchor>
129 </Anchors>
130 <Scripts>
131 <OnVerticalScroll>
132 FauxScrollFrame_OnVerticalScroll(25, IMBA_Options_Update);
133 </OnVerticalScroll>
134 </Scripts>
135 </ScrollFrame>
136 </Frames>
137 <Scripts>
138 <OnLoad>
139 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
140 this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
141 </OnLoad>
142 </Scripts>
143 </Frame>
144 <Frame name="$parent_GraphicsFrame" inherits="OptionFrameBoxTemplate">
145 <Size>
146 <AbsDimension x="580" y="300"/>
147 </Size>
148 <Anchors>
149 <Anchor point="BOTTOM">
150 <Offset>
151 <AbsDimension x="0" y="8"/>
152 </Offset>
153 </Anchor>
154 </Anchors>
155 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
156 <EdgeSize>
157 <AbsValue val="16"/>
158 </EdgeSize>
159 <TileSize>
160 <AbsValue val="16"/>
161 </TileSize>
162 <BackgroundInsets>
163 <AbsInset left="5" right="5" top="5" bottom="5"/>
164 </BackgroundInsets>
165 </Backdrop>
166 <Frames>
167 <Slider name="$parent_Slider_Scale" inherits="OptionsSliderTemplate">
168 <Size>
169 <AbsDimension x="260" y="16"/>
170 </Size>
171 <Anchors>
172 <Anchor point="TOP">
173 <Offset>
174 <AbsDimension x="-140" y="-24"/>
175 </Offset>
176 </Anchor>
177 </Anchors>
178 <Scripts>
179 <OnLoad>
180 this:SetMinMaxValues(0.5,1.25);
181 getglobal(this:GetName().."High"):SetText("1.25");
182 getglobal(this:GetName().."Low"):SetText("0.5");
183 getglobal(this:GetName()):SetValue(1.0);
184 getglobal(this:GetName().."Text"):SetText(string.format("Window Scale Size : %.2f",this:GetValue()));
185 this:SetValueStep(0.05);
186 </OnLoad>
187 <OnValueChanged>
188 IMBA_SavedVariables.Scale=this:GetValue();
189 getglobal(this:GetName().."Text"):SetText(string.format("Window Scale Size : %.2f",this:GetValue()));
190 IMBA_SetScale();
191 </OnValueChanged>
192 </Scripts>
193 </Slider>
194 <Slider name="$parent_Slider_Icon" inherits="OptionsSliderTemplate">
195 <Size>
196 <AbsDimension x="260" y="16"/>
197 </Size>
198 <Anchors>
199 <Anchor point="TOP">
200 <Offset>
201 <AbsDimension x="140" y="-24"/>
202 </Offset>
203 </Anchor>
204 </Anchors>
205 <Scripts>
206 <OnLoad>
207 this:SetMinMaxValues(0,360);
208 getglobal(this:GetName().."High"):SetText("360");
209 getglobal(this:GetName().."Low"):SetText("0");
210 getglobal(this:GetName()):SetValue(0);
211 getglobal(this:GetName().."Text"):SetText(string.format("Minimap Icon Position : %.0f",this:GetValue()));
212 this:SetValueStep(1);
213 </OnLoad>
214 <OnValueChanged>
215 IMBA_SavedVariables.ButtonPos=this:GetValue();
216 IMBA_OptionButton_MoveButton();
217 getglobal(this:GetName().."Text"):SetText(string.format("Minimap Icon Position : %.0f",this:GetValue()));
218 </OnValueChanged>
219 </Scripts>
220 </Slider>
221 <Slider name="$parent_Slider_ScaleAlert" inherits="OptionsSliderTemplate">
222 <Size>
223 <AbsDimension x="260" y="16"/>
224 </Size>
225 <Anchors>
226 <Anchor point="TOP">
227 <Offset>
228 <AbsDimension x="-140" y="-72"/>
229 </Offset>
230 </Anchor>
231 </Anchors>
232 <Scripts>
233 <OnLoad>
234 this:SetMinMaxValues(0.5,1.0);
235 getglobal(this:GetName().."High"):SetText("1.0");
236 getglobal(this:GetName().."Low"):SetText("0.5");
237 getglobal(this:GetName()):SetValue(1.0);
238 getglobal(this:GetName().."Text"):SetText(string.format("Alert Scale Size : %.2f",this:GetValue()));
239 this:SetValueStep(0.05);
240 </OnLoad>
241 <OnValueChanged>
242 IMBA_SavedVariables.ScaleAlert=this:GetValue();
243 IMBA_SetScaleAlert();
244 IMBA_AddAlert("Alert Test Message 3");
245 IMBA_AddAlert("Alert Test Message 2");
246 IMBA_AddAlert("Alert Test Message 1");
247 </OnValueChanged>
248 </Scripts>
249 </Slider>
250  
251 <Slider name="$parent_Slider_CombatLogDist" inherits="OptionsSliderTemplate">
252 <Size>
253 <AbsDimension x="260" y="16"/>
254 </Size>
255 <Anchors>
256 <Anchor point="TOP">
257 <Offset>
258 <AbsDimension x="140" y="-72"/>
259 </Offset>
260 </Anchor>
261 </Anchors>
262 <Scripts>
263 <OnLoad>
264 this:SetMinMaxValues(30,200);
265 getglobal(this:GetName().."High"):SetText("200");
266 getglobal(this:GetName().."Low"):SetText("30");
267 getglobal(this:GetName()):SetValue(1.0);
268 getglobal(this:GetName().."Text"):SetText(string.format("Combat Log Distance : %.0f",this:GetValue()));
269 this:SetValueStep(10);
270 </OnLoad>
271 <OnValueChanged>
272 IMBA_SavedVariables.CombatLogDist=this:GetValue();
273 getglobal(this:GetName().."Text"):SetText(string.format("Combat Log Distance : %.0f",this:GetValue()));
274 if IMBA_Loaded then
275 IMBA_SetLogDistance(IMBA_SavedVariables.CombatLogDist);
276 end
277 </OnValueChanged>
278 </Scripts>
279 </Slider>
280 <CheckButton name="$parent_HideMinimapIcon" hidden="false" inherits="OptionsCheckButtonTemplate">
281 <Anchors>
282 <Anchor point="TOPLEFT">
283 <Offset>
284 <AbsDimension x="14" y="-106"/>
285 </Offset>
286 </Anchor>
287 </Anchors>
288 <HitRectInsets>
289 <AbsInset left="0" right="0" top="0" bottom="0"/>
290 </HitRectInsets>
291 <Size>
292 <AbsDimension x="24" y="24"/>
293 </Size>
294 <Layers>
295 <Layer level="OVERLAY">
296 <FontString name="$parent_Text" inherits="GameFontNormal" text="Hide Minimap Icon">
297 <Anchors>
298 <Anchor point="LEFT">
299 <Offset>
300 <AbsDimension x="28" y="1"/>
301 </Offset>
302 </Anchor>
303 </Anchors>
304 </FontString>
305 </Layer>
306 </Layers>
307 <Scripts>
308 <OnClick>
309 if ( this:GetChecked() ) then
310 PlaySound("igMainMenuOptionCheckBoxOff");
311 else
312 PlaySound("igMainMenuOptionCheckBoxOn");
313 end
314 IMBA_HideMinimapIcon_Clicked();
315 </OnClick>
316 </Scripts>
317 </CheckButton>
318 <CheckButton name="$parent_ShowAlertWindow" hidden="false" inherits="OptionsCheckButtonTemplate">
319 <Anchors>
320 <Anchor point="LEFT" relativeTo="$parent_HideMinimapIcon" relativePoint="RIGHT">
321 <Offset>
322 <AbsDimension x="135" y="0"/>
323 </Offset>
324 </Anchor>
325 </Anchors>
326 <HitRectInsets>
327 <AbsInset left="0" right="0" top="0" bottom="0"/>
328 </HitRectInsets>
329 <Size>
330 <AbsDimension x="24" y="24"/>
331 </Size>
332 <Layers>
333 <Layer level="OVERLAY">
334 <FontString name="$parent_Text" inherits="GameFontNormal" text="Show Alert Window">
335 <Anchors>
336 <Anchor point="LEFT">
337 <Offset>
338 <AbsDimension x="28" y="1"/>
339 </Offset>
340 </Anchor>
341 </Anchors>
342 </FontString>
343 </Layer>
344 </Layers>
345 <Scripts>
346 <OnClick>
347 if ( this:GetChecked() ) then
348 PlaySound("igMainMenuOptionCheckBoxOff");
349 else
350 PlaySound("igMainMenuOptionCheckBoxOn");
351 end
352 IMBA_ShowAlertWindow_Clicked();
353 </OnClick>
354 </Scripts>
355 </CheckButton>
356 <CheckButton name="$parent_DontRaidBroadcast" hidden="false" inherits="OptionsCheckButtonTemplate">
357 <Anchors>
358 <Anchor point="LEFT" relativeTo="$parent_ShowAlertWindow" relativePoint="RIGHT">
359 <Offset>
360 <AbsDimension x="135" y="0"/>
361 </Offset>
362 </Anchor>
363 </Anchors>
364 <HitRectInsets>
365 <AbsInset left="0" right="0" top="0" bottom="0"/>
366 </HitRectInsets>
367 <Size>
368 <AbsDimension x="24" y="24"/>
369 </Size>
370 <Layers>
371 <Layer level="OVERLAY">
372 <FontString name="$parent_Text" inherits="GameFontNormal" text="No Raid Warnings">
373 <Anchors>
374 <Anchor point="LEFT">
375 <Offset>
376 <AbsDimension x="28" y="1"/>
377 </Offset>
378 </Anchor>
379 </Anchors>
380 </FontString>
381 </Layer>
382 </Layers>
383 <Scripts>
384 <OnClick>
385 if ( this:GetChecked() ) then
386 PlaySound("igMainMenuOptionCheckBoxOff");
387 else
388 PlaySound("igMainMenuOptionCheckBoxOn");
389 end
390 IMBA_DontRaidBroadcast_Clicked();
391 </OnClick>
392 </Scripts>
393 </CheckButton>
394  
395 <CheckButton name="$parent_UseSCTForAlerts" hidden="false" inherits="OptionsCheckButtonTemplate">
396 <Anchors>
397 <Anchor point="LEFT" relativeTo="$parent_DontRaidBroadcast" relativePoint="RIGHT">
398 <Offset>
399 <AbsDimension x="130" y="0"/>
400 </Offset>
401 </Anchor>
402 </Anchors>
403 <HitRectInsets>
404 <AbsInset left="0" right="0" top="0" bottom="0"/>
405 </HitRectInsets>
406 <Size>
407 <AbsDimension x="24" y="24"/>
408 </Size>
409 <Layers>
410 <Layer level="OVERLAY">
411 <FontString name="$parent_Text" inherits="GameFontNormal" text="Use SCT">
412 <Anchors>
413 <Anchor point="LEFT">
414 <Offset>
415 <AbsDimension x="28" y="1"/>
416 </Offset>
417 </Anchor>
418 </Anchors>
419 </FontString>
420 </Layer>
421 </Layers>
422 <Scripts>
423 <OnClick>
424 if ( this:GetChecked() ) then
425 PlaySound("igMainMenuOptionCheckBoxOff");
426 else
427 PlaySound("igMainMenuOptionCheckBoxOn");
428 end
429 IMBA_UseSCTForAlerts_Clicked();
430 </OnClick>
431 </Scripts>
432 </CheckButton>
433  
434 <Frame name="$parent_FrameSettings" inherits="OptionFrameBoxTemplate">
435 <Size>
436 <AbsDimension x="280" y="140"/>
437 </Size>
438 <Anchors>
439 <Anchor point="BOTTOMLEFT">
440 <Offset>
441 <AbsDimension x="10" y="8"/>
442 </Offset>
443 </Anchor>
444 </Anchors>
445 <Frames>
446 <Frame name="$parent_Title" inherits="IMBA_TitleTemplate">
447 <Anchors>
448 <Anchor point="BOTTOM" relativePoint="TOP">
449 <Offset>
450 <AbsDimension x="0" y="2"/>
451 </Offset>
452 </Anchor>
453 </Anchors>
454 </Frame>
455 <Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" id="1">
456 <Anchors>
457 <Anchor point="TOPLEFT">
458 <Offset>
459 <AbsDimension x="0" y="-20"/>
460 </Offset>
461 </Anchor>
462 </Anchors>
463 <Layers>
464 <Layer level="OVERLAY">
465 <FontString inherits="GameFontHighlightSmall" text="Frame Type">
466 <Anchors>
467 <Anchor point="TOPLEFT">
468 <Offset>
469 <AbsDimension x="20" y="7"/>
470 </Offset>
471 </Anchor>
472 </Anchors>
473 </FontString>
474 </Layer>
475 </Layers>
476 <Scripts>
477 <OnLoad>
478 IMBA_FrameSettingsDropDown_OnLoad();
479 </OnLoad>
480 <OnShow>
481 IMBA_FrameSettingsDropDown_OnLoad();
482 </OnShow>
483 </Scripts>
484 </Frame>
485 <Button name="$parent_BGColor" inherits="IMBA_ColorButton">
486 <Anchors>
487 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_DropDown">
488 <Offset>
489 <AbsDimension x="135" y="8"/>
490 </Offset>
491 </Anchor>
492 </Anchors>
493 <Scripts>
494 <OnLoad>
495 this.AttachFrame="IMBA_Options"
496 this.color={r=1.0, g=0.0, b=0.0};
497 this.callback=IMBA_FrameColorsChanged;
498 </OnLoad>
499 </Scripts>
500 </Button>
501 <Button name="$parent_BorderColor" inherits="IMBA_ColorButton">
502 <Anchors>
503 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_BGColor">
504 <Offset>
505 <AbsDimension x="8" y="0"/>
506 </Offset>
507 </Anchor>
508 </Anchors>
509 <Scripts>
510 <OnLoad>
511 this.AttachFrame="IMBA_Options"
512 this.color={r=1.0, g=0.0, b=0.0};
513 this.callback=IMBA_FrameColorsChanged;
514 </OnLoad>
515 </Scripts>
516 </Button>
517 <CheckButton name="$parent_CloseButtons" hidden="false" inherits="OptionsCheckButtonTemplate">
518 <Anchors>
519 <Anchor point="TOPLEFT">
520 <Offset>
521 <AbsDimension x="14" y="-54"/>
522 </Offset>
523 </Anchor>
524 </Anchors>
525 <HitRectInsets>
526 <AbsInset left="0" right="0" top="0" bottom="0"/>
527 </HitRectInsets>
528 <Size>
529 <AbsDimension x="24" y="24"/>
530 </Size>
531 <Layers>
532 <Layer level="OVERLAY">
533 <FontString name="$parent_Text" inherits="GameFontNormal" text="Hide Close Buttons">
534 <Anchors>
535 <Anchor point="LEFT">
536 <Offset>
537 <AbsDimension x="28" y="1"/>
538 </Offset>
539 </Anchor>
540  
541 </Anchors>
542 </FontString>
543 </Layer>
544 </Layers>
545 <Scripts>
546 <OnClick>
547 if ( this:GetChecked() ) then
548 PlaySound("igMainMenuOptionCheckBoxOff");
549 else
550 PlaySound("igMainMenuOptionCheckBoxOn");
551 end
552 IMBA_HideCloseButtons_Clicked()
553 </OnClick>
554 </Scripts>
555 </CheckButton>
556 <Button name="$parent_Reset" inherits="OptionsButtonTemplate" text="Reset to Defaults">
557 <Anchors>
558 <Anchor point="BOTTOM">
559 <Offset>
560 <AbsDimension x="-67.5" y="8"/>
561 </Offset>
562 </Anchor>
563 </Anchors>
564 <Size>
565 <AbsDimension x="135" y="24"/>
566 </Size>
567 <Scripts>
568 <OnClick>
569 IMBA_LoadDefault_FrameSettings();
570 </OnClick>
571 </Scripts>
572 </Button>
573 <Button name="$parent_ResetPos" inherits="OptionsButtonTemplate" text="Reset Positions">
574 <Anchors>
575 <Anchor point="BOTTOM">
576 <Offset>
577 <AbsDimension x="67.5" y="8"/>
578 </Offset>
579 </Anchor>
580 </Anchors>
581 <Size>
582 <AbsDimension x="135" y="24"/>
583 </Size>
584 <Scripts>
585 <OnClick>
586 IMBA_ResetPositions();
587 </OnClick>
588 </Scripts>
589 </Button>
590 </Frames>
591 <Scripts>
592 <OnLoad>
593 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
594 this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
595 getglobal(this:GetName().."_Title"):SetText("Frame Settings");
596 </OnLoad>
597 </Scripts>
598 </Frame>
599  
600  
601 <Frame name="$parent_BarSettings" inherits="OptionFrameBoxTemplate">
602 <Size>
603 <AbsDimension x="280" y="140"/>
604 </Size>
605 <Anchors>
606 <Anchor point="BOTTOMRIGHT">
607 <Offset>
608 <AbsDimension x="-10" y="8"/>
609 </Offset>
610 </Anchor>
611 </Anchors>
612 <Frames>
613 <Frame name="$parent_Title" inherits="IMBA_TitleTemplate">
614 <Anchors>
615 <Anchor point="BOTTOM" relativePoint="TOP">
616 <Offset>
617 <AbsDimension x="0" y="2"/>
618 </Offset>
619 </Anchor>
620 </Anchors>
621 </Frame>
622 <Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" id="1">
623 <Anchors>
624 <Anchor point="TOPLEFT">
625 <Offset>
626 <AbsDimension x="0" y="-20"/>
627 </Offset>
628 </Anchor>
629 </Anchors>
630 <Layers>
631 <Layer level="OVERLAY">
632 <FontString inherits="GameFontHighlightSmall" text="Bar Type">
633 <Anchors>
634 <Anchor point="TOPLEFT">
635 <Offset>
636 <AbsDimension x="20" y="7"/>
637 </Offset>
638 </Anchor>
639 </Anchors>
640 </FontString>
641 </Layer>
642 </Layers>
643 <Scripts>
644 <OnLoad>
645 IMBA_BarSettingsDropDown_OnLoad();
646 </OnLoad>
647 <OnShow>
648 IMBA_BarSettingsDropDown_OnLoad();
649 </OnShow>
650 </Scripts>
651 </Frame>
652 <Button name="$parent_EndColor" inherits="IMBA_ColorButton">
653 <Anchors>
654 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_DropDown">
655 <Offset>
656 <AbsDimension x="135" y="12"/>
657 </Offset>
658 </Anchor>
659 </Anchors>
660 <Scripts>
661 <OnLoad>
662 this.AttachFrame="IMBA_Options"
663 this.color={r=1.0, g=0.0, b=0.0};
664 this.callback=IMBA_BarColorsChanged;
665 </OnLoad>
666 </Scripts>
667 </Button>
668 <Button name="$parent_StartColor" inherits="IMBA_ColorButton">
669 <Anchors>
670 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_EndColor">
671 <Offset>
672 <AbsDimension x="8" y="0"/>
673 </Offset>
674 </Anchor>
675 </Anchors>
676 <Scripts>
677 <OnLoad>
678 this.AttachFrame="IMBA_Options"
679 this.color={r=1.0, g=0.0, b=0.0};
680 this.callback=IMBA_BarColorsChanged;
681 </OnLoad>
682 </Scripts>
683 </Button>
684 <Button name="$parent_InnerColor" inherits="IMBA_ColorButton">
685 <Anchors>
686 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_EndColor">
687 <Offset>
688 <AbsDimension x="0" y="-4"/>
689 </Offset>
690 </Anchor>
691 </Anchors>
692 <Scripts>
693 <OnLoad>
694 this.AttachFrame="IMBA_Options"
695 this.color={r=1.0, g=0.0, b=0.0, a=0.0};
696 this.callback=IMBA_BarColors2Changed;
697 </OnLoad>
698 </Scripts>
699 </Button>
700 <Button name="$parent_BorderColor" inherits="IMBA_ColorButton">
701 <Anchors>
702 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_StartColor">
703 <Offset>
704 <AbsDimension x="0" y="-4"/>
705 </Offset>
706 </Anchor>
707 </Anchors>
708 <Scripts>
709 <OnLoad>
710 this.AttachFrame="IMBA_Options"
711 this.color={r=1.0, g=0.0, b=0.0, a=0.0};
712 this.callback=IMBA_BarColors2Changed;
713 </OnLoad>
714 </Scripts>
715 </Button>
716 <CheckButton name="$parent_CustomColors" hidden="false" inherits="OptionsCheckButtonTemplate">
717 <Anchors>
718 <Anchor point="TOPLEFT">
719 <Offset>
720 <AbsDimension x="14" y="-54"/>
721 </Offset>
722 </Anchor>
723 </Anchors>
724 <HitRectInsets>
725 <AbsInset left="0" right="0" top="0" bottom="0"/>
726 </HitRectInsets>
727 <Size>
728 <AbsDimension x="24" y="24"/>
729 </Size>
730 <Layers>
731 <Layer level="OVERLAY">
732 <FontString name="$parent_Text" inherits="GameFontNormal" text="Custom Colors">
733 <Anchors>
734 <Anchor point="LEFT">
735 <Offset>
736 <AbsDimension x="28" y="1"/>
737 </Offset>
738 </Anchor>
739  
740 </Anchors>
741 </FontString>
742 </Layer>
743 </Layers>
744 <Scripts>
745 <OnClick>
746 if ( this:GetChecked() ) then
747 PlaySound("igMainMenuOptionCheckBoxOff");
748 else
749 PlaySound("igMainMenuOptionCheckBoxOn");
750 end
751 IMBA_CustomColors_Clicked();
752 </OnClick>
753 </Scripts>
754 </CheckButton>
755  
756 <StatusBar name="$parent_SampleBar" inherits="IMBA_BarTimerTemplate">
757 <Anchors>
758 <Anchor point="BOTTOM">
759 <Offset>
760 <AbsDimension x="0" y="12"/>
761 </Offset>
762 </Anchor>
763 </Anchors>
764 <Size>
765 <AbsDimension x="240" y="16"/>
766 </Size>
767 </StatusBar>
768 <Button name="$parent_Reset" inherits="OptionsButtonTemplate" text="Reset to Defaults">
769 <Anchors>
770 <Anchor point="BOTTOM" relativeTo="$parent_SampleBar" relativePoint="TOP">
771 <Offset>
772 <AbsDimension x="0" y="8"/>
773 </Offset>
774 </Anchor>
775 </Anchors>
776 <Size>
777 <AbsDimension x="160" y="24"/>
778 </Size>
779 <Scripts>
780 <OnClick>
781 IMBA_LoadDefault_BarSettings();
782 </OnClick>
783 </Scripts>
784 </Button>
785 </Frames>
786 <Scripts>
787 <OnLoad>
788 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
789 this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
790 getglobal(this:GetName().."_Title"):SetText("Bar Settings");
791 getglobal(this:GetName().."_SampleBar"):SetBarText("Sample Bar");
792 getglobal(this:GetName().."_SampleBar"):StartTimer(10,true);
793 getglobal(this:GetName().."_SampleBarBG"):SetWidth(240)
794 </OnLoad>
795 </Scripts>
796 </Frame>
797  
798 </Frames>
799 <Scripts>
800 <OnLoad>
801 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
802 this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
803 this:Hide();
804 </OnLoad>
805 </Scripts>
806 </Frame>
807  
808 <Button name="$parent_Tab1" id="1" text="Mod Options">
809 <Size>
810 <AbsDimension x="115" y="42"/>
811 </Size>
812 <Anchors>
813 <Anchor point="BOTTOMLEFT" relativeTo="$parent_BossFrame" relativePoint="TOPLEFT">
814 <Offset>
815 <AbsDimension x="20" y="-4"/>
816 </Offset>
817 </Anchor>
818 </Anchors>
819 <Layers>
820 <Layer level="BACKGROUND">
821 <Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
822 <Size>
823 <AbsDimension x="16" y="42"/>
824 </Size>
825 <Anchors>
826 <Anchor point="BOTTOMLEFT"/>
827 </Anchors>
828 <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
829 </Texture>
830 <Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
831 <Size>
832 <AbsDimension x="32" y="42"/>
833 </Size>
834 <Anchors>
835 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
836 </Anchors>
837 <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
838 </Texture>
839 <Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
840 <Size>
841 <AbsDimension x="16" y="42"/>
842 </Size>
843 <Anchors>
844 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
845 </Anchors>
846 <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
847 </Texture>
848 </Layer>
849 </Layers>
850 <Scripts>
851 <OnLoad>
852 PanelTemplates_TabResize(0);
853 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
854 --IMBA_Options_Tab1LeftDisabled:SetTexture("Interface\\OptionsFrame\\OptionsFrameTab-Active");
855 --IMBA_Options_Tab1MiddleDisabled:SetTexture("Interface\\OptionsFrame\\OptionsFrameTab-Active");
856 --IMBA_Options_Tab1RightDisabled:SetTexture("Interface\\OptionsFrame\\OptionsFrameTab-Active");
857 </OnLoad>
858 <OnClick>
859 PanelTemplates_Tab_OnClick(UIOptionsFrame);
860 IMBA_ShowModOptions();
861 PlaySound("igCharacterInfoTab");
862 IMBA_Options_Tab2:SetPoint("LEFT", "IMBA_Options_Tab1", "RIGHT", 3, -1);
863 IMBA_Options_Tab1:SetPoint("BOTTOMLEFT", "IMBA_Options_BossFrame", "TOPLEFT", 20, -4);
864  
865 IMBA_Options_Tab1:SetAlpha(1.0);
866 IMBA_Options_Tab2:SetAlpha(0.6);
867 </OnClick>
868 </Scripts>
869 <ButtonText name="$parentText">
870 <Size>
871 <AbsDimension x="0" y="13"/>
872 </Size>
873 <Anchors>
874 <Anchor point="BOTTOM">
875 <Offset>
876 <AbsDimension x="0" y="5"/>
877 </Offset>
878 </Anchor>
879 </Anchors>
880 </ButtonText>
881 <NormalFont inherits="GameFontNormal"/>
882 <HighlightFont inherits="GameFontHighlight"/>
883 <DisabledFont inherits="GameFontHighlight"/>
884 <HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
885 <Size>
886 <AbsDimension x="5" y="32"/>
887 </Size>
888 <Anchors>
889 <Anchor point="BOTTOM">
890 <Offset>
891 <AbsDimension x="2" y="-8"/>
892 </Offset>
893 </Anchor>
894 </Anchors>
895 </HighlightTexture>
896 </Button>
897 <Button name="$parent_Tab2" id="2" text="IMBA Options">
898 <Size>
899 <AbsDimension x="115" y="42"/>
900 </Size>
901 <Anchors>
902 <Anchor point="LEFT" relativeTo="IMBA_Options_Tab1" relativePoint="RIGHT">
903 <Offset>
904 <AbsDimension x="3" y="-1"/>
905 </Offset>
906 </Anchor>
907 </Anchors>
908 <Layers>
909 <Layer level="BACKGROUND">
910 <Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
911 <Size>
912 <AbsDimension x="16" y="42"/>
913 </Size>
914 <Anchors>
915 <Anchor point="BOTTOMLEFT"/>
916 </Anchors>
917 <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
918 </Texture>
919 <Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
920 <Size>
921 <AbsDimension x="32" y="42"/>
922 </Size>
923 <Anchors>
924 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
925 </Anchors>
926 <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
927 </Texture>
928 <Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
929 <Size>
930 <AbsDimension x="16" y="42"/>
931 </Size>
932 <Anchors>
933 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
934 </Anchors>
935 <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
936 </Texture>
937 </Layer>
938 </Layers>
939 <Scripts>
940 <OnLoad>
941 PanelTemplates_TabResize(0);
942 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
943 this:SetAlpha(0.6);
944 </OnLoad>
945 <OnClick>
946 PanelTemplates_Tab_OnClick(UIOptionsFrame);
947 IMBA_ShowGraphicsOptions();
948 PlaySound("igCharacterInfoTab");
949 IMBA_Options_Tab2:SetPoint("LEFT", "IMBA_Options_Tab1", "RIGHT", 3, 1);
950 IMBA_Options_Tab1:SetPoint("BOTTOMLEFT", "IMBA_Options_GraphicsFrame", "TOPLEFT", 20, -4);
951  
952 IMBA_Options_Tab1:SetAlpha(0.6);
953 IMBA_Options_Tab2:SetAlpha(1.0);
954 </OnClick>
955 </Scripts>
956 <ButtonText name="$parentText">
957 <Size>
958 <AbsDimension x="0" y="13"/>
959 </Size>
960 <Anchors>
961 <Anchor point="BOTTOM">
962 <Offset>
963 <AbsDimension x="0" y="5"/>
964 </Offset>
965 </Anchor>
966 </Anchors>
967 </ButtonText>
968 <NormalFont inherits="GameFontNormal"/>
969 <HighlightFont inherits="GameFontHighlight"/>
970 <DisabledFont inherits="GameFontHighlight"/>
971 <HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
972 <Size>
973 <AbsDimension x="5" y="32"/>
974 </Size>
975 <Anchors>
976 <Anchor point="BOTTOM">
977 <Offset>
978 <AbsDimension x="2" y="-8"/>
979 </Offset>
980 </Anchor>
981 </Anchors>
982 </HighlightTexture>
983 </Button>
984  
985  
986 <Frame name="$parent_Close" enableMouse="true">
987 <Size>
988 <AbsDimension x="24" y="24"/>
989 </Size>
990 <Anchors>
991 <Anchor point="TOPRIGHT">
992 <Offset>
993 <AbsDimension x="0" y="0"/>
994 </Offset>
995 </Anchor>
996 </Anchors>
997 <Layers>
998 <Layer level="OVERLAY">
999 <Texture name="$parent_Image" file="Interface\AddOns\IMBA\textures\close.blp">
1000 <Size>
1001 <AbsDimension x="32" y="32"/>
1002 </Size>
1003 <Anchors>
1004 <Anchor point="TOPRIGHT"/>
1005 </Anchors>
1006 </Texture>
1007 </Layer>
1008 </Layers>
1009 <Scripts>
1010 <OnLoad>
1011 this:SetBackdropBorderColor(1, 1, 1, 1);
1012 this:SetBackdropColor(0.0,0.0,0.0,0.6);
1013 </OnLoad>
1014 <OnMouseDown>
1015 IMBA_Options:Hide();
1016 </OnMouseDown>
1017 </Scripts>
1018 </Frame>
1019  
1020 </Frames>
1021 <Scripts>
1022 <OnLoad>
1023 IMBA_Options_OnLoad();
1024  
1025 </OnLoad>
1026 <OnEvent>
1027 IMBA_Options_OnEvent(event);
1028 </OnEvent>
1029 <OnMouseUp>
1030 if ( this.isMoving ) then
1031 this:StopMovingOrSizing();
1032 this.isMoving = false;
1033 end
1034 </OnMouseUp>
1035 <OnMouseDown>
1036 if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
1037 this:StartMoving();
1038 this.isMoving = true;
1039 end
1040 </OnMouseDown>
1041 <OnHide>
1042 if ( this.isMoving ) then
1043 this:StopMovingOrSizing();
1044 this.isMoving = false;
1045 end
1046 </OnHide>
1047 </Scripts>
1048 </Frame>
1049 </Ui>