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 <!--
3 $Id: CleanMinimapOptions.xml 73 2005-08-29 06:25:39Z joev $
4 -->
5 <Script file="localization.lua" />
6 <Script file="CleanMinimapOptions.lua"/>
7 <!-- Templates -->
8 <Frame name="OptionGroupTemplate" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true" virtual="true">
9 <Frames>
10 <Frame name="$parentTitle">
11 <Size>
12 <AbsDimension x="196" y="20"/>
13 </Size>
14 <Anchors>
15 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
16 <Offset>
17 <AbsDimension x="2" y="-2"/>
18 </Offset>
19 </Anchor>
20 </Anchors>
21 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
22 <EdgeSize>
23 <AbsValue val="8"/>
24 </EdgeSize>
25 <TileSize>
26 <AbsValue val="8"/>
27 </TileSize>
28 <BackgroundInsets>
29 <AbsInset left="2" right="2" top="2" bottom="2"/>
30 </BackgroundInsets>
31 </Backdrop>
32 <Layers>
33 <Layer>
34 <FontString name="$parentText" inherits="GameFontHighlight">
35 <Anchors>
36 <Anchor point="LEFT">
37 <Offset>
38 <AbsDimension x="10" y="0"/>
39 </Offset>
40 </Anchor>
41 </Anchors>
42 </FontString>
43 </Layer>
44 </Layers>
45 <Scripts>
46 <OnLoad>
47 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
48 this:SetBackdropColor(0.15, 0.15, 0.15);
49 </OnLoad>
50 </Scripts>
51 </Frame>
52 </Frames>
53 <Scripts>
54 <OnLoad>
55 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
56 this:SetBackdropColor(0.15, 0.15, 0.15);
57 </OnLoad>
58 </Scripts>
59 </Frame>
60 <Slider name="CleanMinimapSliderTemplate" orientation="HORIZONTAL" virtual="true" enableMouse="true">
61 <Size>
62 <AbsDimension x="128" y="17"/>
63 </Size>
64 <HitRectInsets>
65 <AbsInset left="0" right="0" top="-10" bottom="-10"/>
66 </HitRectInsets>
67 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
68 <EdgeSize>
69 <AbsValue val="8"/>
70 </EdgeSize>
71 <TileSize>
72 <AbsValue val="8"/>
73 </TileSize>
74 <BackgroundInsets>
75 <AbsInset left="3" right="3" top="6" bottom="6"/>
76 </BackgroundInsets>
77 </Backdrop>
78 <Layers>
79 <Layer level="ARTWORK">
80 <FontString name="$parentText" inherits="GameFontNormalSmall">
81 <Anchors>
82 <Anchor point="BOTTOM" relativePoint="TOP">
83 <Offset>
84 <AbsDimension x="0" y="-1"/>
85 </Offset>
86 </Anchor>
87 </Anchors>
88 </FontString>
89 <FontString name="$parentLow" inherits="GameFontHighlightSmall" text="LOW">
90 <Anchors>
91 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
92 <Offset>
93 <AbsDimension x="2" y="3"/>
94 </Offset>
95 </Anchor>
96 </Anchors>
97 </FontString>
98 <FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="HIGH">
99 <Anchors>
100 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
101 <Offset>
102 <AbsDimension x="-2" y="3"/>
103 </Offset>
104 </Anchor>
105 </Anchors>
106 </FontString>
107 </Layer>
108 <Layer level="ARTWORK">
109 <FontString name="$parentTextUpdate" inherits="GameFontNormal" text="">
110 <Anchors>
111 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
112 <Offset>
113 <AbsDimension x="5" y="0.5"/>
114 </Offset>
115 </Anchor>
116 </Anchors>
117 </FontString>
118 </Layer>
119 </Layers>
120 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
121 <Size>
122 <AbsDimension x="32" y="32"/>
123 </Size>
124 </ThumbTexture>
125 </Slider>
126  
127 <!-- Frames -->
128 <Frame name="CleanMinimapOptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
129 <Size>
130 <AbsDimension x="655" y="460"/>
131 </Size>
132 <Anchors>
133 <Anchor point="CENTER"/>
134 </Anchors>
135 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
136 <BackgroundInsets>
137 <AbsInset left="11" right="12" top="12" bottom="11"/>
138 </BackgroundInsets>
139 <TileSize>
140 <AbsValue val="32"/>
141 </TileSize>
142 <EdgeSize>
143 <AbsValue val="32"/>
144 </EdgeSize>
145 </Backdrop>
146 <Layers>
147 <Layer level="ARTWORK">
148 <Texture name="CleanMinimapOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
149 <Size>
150 <AbsDimension x="400" y="64"/>
151 </Size>
152 <Anchors>
153 <Anchor point="TOP">
154 <Offset>
155 <AbsDimension x="0" y="12"/>
156 </Offset>
157 </Anchor>
158 </Anchors>
159 </Texture>
160 <FontString inherits="GameFontNormal" text="CMMOPTIONS_TITLE">
161 <Anchors>
162 <Anchor point="TOP" relativeTo="CleanMinimapOptionsFrameHeader">
163 <Offset>
164 <AbsDimension x="0" y="-14"/>
165 </Offset>
166 </Anchor>
167 </Anchors>
168 </FontString>
169 </Layer>
170 </Layers>
171 <Frames>
172 <!-- CleanMinimap On/Off options -->
173 <Frame name="CleanMinimapButtonOnOffGroup" inherits="OptionGroupTemplate">
174 <Size>
175 <AbsDimension x="200" y="50"/>
176 </Size>
177 <Anchors>
178 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
179 <Offset>
180 <AbsDimension x="10" y="-50"/>
181 </Offset>
182 </Anchor>
183 </Anchors>
184 <Frames>
185 <CheckButton name="CMMToggleCleanMinimap" inherits="OptionsCheckButtonTemplate">
186 <Anchors>
187 <Anchor point="TOPLEFT">
188 <Offset>
189 <AbsDimension x="10" y="-10"/>
190 </Offset>
191 </Anchor>
192 </Anchors>
193 <Scripts>
194 <OnLoad>
195 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.enableCleanMinimap);
196 </OnLoad>
197 <OnClick>
198 CleanMinimapOptions_ToggleCMM();
199 </OnClick>
200 </Scripts>
201 </CheckButton>
202 </Frames>
203 <Scripts>
204 <OnShow>
205 getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.buttonOnOffGroupTitle);
206 </OnShow>
207 </Scripts>
208 </Frame>
209  
210 <!-- Minimap Button options -->
211 <Frame name="CleanMinimapButtonOptionsGroup" inherits="OptionGroupTemplate">
212 <Size>
213 <AbsDimension x="200" y="100"/>
214 </Size>
215 <Anchors>
216 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
217 <Offset>
218 <AbsDimension x="10" y="-120"/>
219 </Offset>
220 </Anchor>
221 </Anchors>
222 <Frames>
223 <CheckButton name="CMMToggleMinimapButton" inherits="OptionsCheckButtonTemplate">
224 <Anchors>
225 <Anchor point="TOPLEFT">
226 <Offset>
227 <AbsDimension x="10" y="-20"/>
228 </Offset>
229 </Anchor>
230 </Anchors>
231 <Scripts>
232 <OnLoad>
233 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showMinimapButton);
234 </OnLoad>
235 <OnClick>
236 CleanMinimapButton_Toggle();
237 </OnClick>
238 </Scripts>
239 </CheckButton>
240 <Slider name="CMMSliderButtonPos" inherits="CleanMinimapSliderTemplate">
241 <Size>
242 <AbsDimension x="180" y="16"/>
243 </Size>
244 <Anchors>
245 <Anchor point="TOPLEFT">
246 <Offset>
247 <AbsDimension x="10" y="-65" />
248 </Offset>
249 </Anchor>
250 </Anchors>
251 <Scripts>
252 <OnLoad>
253 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.buttonPosition);
254 getglobal(this:GetName().."High"):SetText();
255 getglobal(this:GetName().."Low"):SetText();
256 getglobal(this:GetName()):SetMinMaxValues(0,360);
257 getglobal(this:GetName()):SetValueStep(1);
258 </OnLoad>
259 <OnValueChanged>
260 CleanMinimapConfig[CleanMinimap_player].buttonPos = getglobal(this:GetName()):GetValue();
261 CleanMinimapButton_UpdatePosition();
262 </OnValueChanged>
263 </Scripts>
264 </Slider>
265 </Frames>
266 <Scripts>
267 <OnShow>
268 getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.buttonOptionsGroupTitle);
269 </OnShow>
270 </Scripts>
271 </Frame>
272  
273 <!-- Minimap components -->
274 <Frame name="CleanMinimapMapOptionsGroup" inherits="OptionGroupTemplate">
275 <Size>
276 <AbsDimension x="200" y="170"/>
277 </Size>
278 <Anchors>
279 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
280 <Offset>
281 <AbsDimension x="210" y="-50"/>
282 </Offset>
283 </Anchor>
284 </Anchors>
285 <Frames>
286 <CheckButton name="CMMToggleClockButton" inherits="OptionsCheckButtonTemplate">
287 <Anchors>
288 <Anchor point="TOPLEFT">
289 <Offset>
290 <AbsDimension x="10" y="-20"/>
291 </Offset>
292 </Anchor>
293 </Anchors>
294 <Scripts>
295 <OnLoad>
296 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showClockButton);
297 </OnLoad>
298 <OnClick>
299 CleanMinimap_ToggleClock();
300 </OnClick>
301 </Scripts>
302 </CheckButton>
303 <CheckButton name="CMMToggleZoomButton" inherits="OptionsCheckButtonTemplate">
304 <Anchors>
305 <Anchor point="TOPLEFT">
306 <Offset>
307 <AbsDimension x="10" y="-50"/>
308 </Offset>
309 </Anchor>
310 </Anchors>
311 <Scripts>
312 <OnLoad>
313 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showZoomButton);
314 </OnLoad>
315 <OnClick>
316 CleanMinimap_ToggleZoom();
317 </OnClick>
318 </Scripts>
319 </CheckButton>
320 <CheckButton name="CMMToggleTitleButton" inherits="OptionsCheckButtonTemplate">
321 <Anchors>
322 <Anchor point="TOPLEFT">
323 <Offset>
324 <AbsDimension x="10" y="-80"/>
325 </Offset>
326 </Anchor>
327 </Anchors>
328 <Scripts>
329 <OnLoad>
330 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showTitleButton);
331 </OnLoad>
332 <OnClick>
333 CleanMinimap_ToggleTitle();
334 </OnClick>
335 </Scripts>
336 </CheckButton>
337 <CheckButton name="CMMToggleNSEWButton" inherits="OptionsCheckButtonTemplate">
338 <Anchors>
339 <Anchor point="TOPLEFT">
340 <Offset>
341 <AbsDimension x="10" y="-110"/>
342 </Offset>
343 </Anchor>
344 </Anchors>
345 <Scripts>
346 <OnLoad>
347 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showNSEWButton);
348 </OnLoad>
349 <OnClick>
350 CleanMinimap_ToggleNsew();
351 </OnClick>
352 </Scripts>
353 </CheckButton>
354 </Frames>
355 <Scripts>
356 <OnShow>
357 getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.mapOptionsGroupTitle);
358 </OnShow>
359 </Scripts>
360 </Frame>
361  
362 <!-- Opacity and Sizing options -->
363 <Frame name="CleanMinimapSliderGroup" inherits="OptionGroupTemplate">
364 <Size>
365 <AbsDimension x="235" y="170"/>
366 </Size>
367 <Anchors>
368 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
369 <Offset>
370 <AbsDimension x="410" y="-50"/>
371 </Offset>
372 </Anchor>
373 </Anchors>
374 <Frames>
375 <Slider name="CMMSliderOpacity" inherits="CleanMinimapSliderTemplate">
376 <Size>
377 <AbsDimension x="180" y="16"/>
378 </Size>
379 <Anchors>
380 <Anchor point="TOPLEFT">
381 <Offset>
382 <AbsDimension x="10" y="-20" />
383 </Offset>
384 </Anchor>
385 </Anchors>
386 <Scripts>
387 <OnLoad>
388 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.opacity);
389 getglobal(this:GetName().."High"):SetText("100%");
390 getglobal(this:GetName().."Low"):SetText("0%");
391 getglobal(this:GetName()):SetMinMaxValues(0,100);
392 getglobal(this:GetName()):SetValueStep(1);
393 </OnLoad>
394 <OnValueChanged>
395 local val = getglobal(this:GetName()):GetValue();
396 CleanMinimap_SilentSetAlpha(val);
397 getglobal(this:GetName().."TextUpdate"):SetText(val.."\%");
398 </OnValueChanged>
399 </Scripts>
400 </Slider>
401 <Slider name="CMMSliderLargeSize" inherits="CleanMinimapSliderTemplate">
402 <Size>
403 <AbsDimension x="180" y="16"/>
404 </Size>
405 <Anchors>
406 <Anchor point="TOPLEFT">
407 <Offset>
408 <AbsDimension x="10" y="-55" />
409 </Offset>
410 </Anchor>
411 </Anchors>
412 <Scripts>
413 <OnLoad>
414 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.largeSize);
415 getglobal(this:GetName().."High"):SetText("300%");
416 getglobal(this:GetName().."Low"):SetText("100%");
417 getglobal(this:GetName()):SetMinMaxValues(100,300);
418 getglobal(this:GetName()):SetValueStep(20);
419 </OnLoad>
420 <OnValueChanged>
421 local val = getglobal(this:GetName()):GetValue();
422 CleanMinimap_SilentSetLargeSize(val);
423 getglobal(this:GetName().."TextUpdate"):SetText(val.."\%");
424 </OnValueChanged>
425 </Scripts>
426 </Slider>
427 <Slider name="CMMSliderSmallSize" inherits="CleanMinimapSliderTemplate">
428 <Size>
429 <AbsDimension x="180" y="16"/>
430 </Size>
431 <Anchors>
432 <Anchor point="TOPLEFT">
433 <Offset>
434 <AbsDimension x="10" y="-90" />
435 </Offset>
436 </Anchor>
437 </Anchors>
438 <Scripts>
439 <OnLoad>
440 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.smallSize);
441 getglobal(this:GetName().."High"):SetText("100%");
442 getglobal(this:GetName().."Low"):SetText("30%");
443 getglobal(this:GetName()):SetMinMaxValues(30,100);
444 getglobal(this:GetName()):SetValueStep(7);
445 </OnLoad>
446 <OnValueChanged>
447 local val = getglobal(this:GetName()):GetValue();
448 CleanMinimap_SilentSetSmallSize(val);
449 getglobal(this:GetName().."TextUpdate"):SetText(val.."\%");
450 </OnValueChanged>
451 </Scripts>
452 </Slider>
453 </Frames>
454 <Scripts>
455 <OnShow>
456 getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.sliderGroupTitle);
457 </OnShow>
458 </Scripts>
459 </Frame>
460  
461 <!-- Movement Modifier key settings -->
462 <Frame name="CleanMinimapMapModifierGroup" inherits="OptionGroupTemplate">
463 <Size>
464 <AbsDimension x="200" y="120"/>
465 </Size>
466 <Anchors>
467 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
468 <Offset>
469 <AbsDimension x="10" y="-240"/>
470 </Offset>
471 </Anchor>
472 </Anchors>
473 <Frames>
474 <CheckButton name="CMMUseShiftButton" inherits="OptionsCheckButtonTemplate">
475 <Anchors>
476 <Anchor point="TOPLEFT">
477 <Offset>
478 <AbsDimension x="10" y="-20"/>
479 </Offset>
480 </Anchor>
481 </Anchors>
482 <Scripts>
483 <OnLoad>
484 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useShiftButton);
485 </OnLoad>
486 <OnClick>
487 this:SetChecked(1);
488 getglobal("CMMUseCtrlButton"):SetChecked(0);
489 getglobal("CMMUseAltButton"):SetChecked(0);
490 CleanMinimap_SetModifier("SHIFT");
491 </OnClick>
492 </Scripts>
493 </CheckButton>
494 <CheckButton name="CMMUseCtrlButton" inherits="OptionsCheckButtonTemplate">
495 <Anchors>
496 <Anchor point="TOPLEFT">
497 <Offset>
498 <AbsDimension x="10" y="-50"/>
499 </Offset>
500 </Anchor>
501 </Anchors>
502 <Scripts>
503 <OnLoad>
504 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useCtrlButton);
505 </OnLoad>
506 <OnClick>
507 this:SetChecked(1);
508 getglobal("CMMUseShiftButton"):SetChecked(0);
509 getglobal("CMMUseAltButton"):SetChecked(0);
510 CleanMinimap_SetModifier("CTRL");
511 </OnClick>
512 </Scripts>
513 </CheckButton>
514 <CheckButton name="CMMUseAltButton" inherits="OptionsCheckButtonTemplate">
515 <Anchors>
516 <Anchor point="TOPLEFT">
517 <Offset>
518 <AbsDimension x="10" y="-80"/>
519 </Offset>
520 </Anchor>
521 </Anchors>
522 <Scripts>
523 <OnLoad>
524 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useAltButton);
525 </OnLoad>
526 <OnClick>
527 this:SetChecked(1);
528 getglobal("CMMUseCtrlButton"):SetChecked(0);
529 getglobal("CMMUseShiftButton"):SetChecked(0);
530 CleanMinimap_SetModifier("ALT");
531 </OnClick>
532 </Scripts>
533 </CheckButton>
534 </Frames>
535 <Scripts>
536 <OnShow>
537 getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.modifierOptionsGroupTitle);
538 </OnShow>
539 </Scripts>
540 </Frame>
541  
542 <!-- Icons options -->
543 <Frame name="CleanMinimapIconsGroup" inherits="OptionGroupTemplate">
544 <Size>
545 <AbsDimension x="430" y="120"/>
546 </Size>
547 <Anchors>
548 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
549 <Offset>
550 <AbsDimension x="210" y="-240"/>
551 </Offset>
552 </Anchor>
553 </Anchors>
554 <Frames>
555 <Slider name="CMMSliderZoomIn" inherits="CleanMinimapSliderTemplate">
556 <Size>
557 <AbsDimension x="180" y="16"/>
558 </Size>
559 <Anchors>
560 <Anchor point="TOPLEFT">
561 <Offset>
562 <AbsDimension x="10" y="-20" />
563 </Offset>
564 </Anchor>
565 </Anchors>
566 <Scripts>
567 <OnLoad>
568 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.zoomInPosition);
569 getglobal(this:GetName().."High"):SetText();
570 getglobal(this:GetName().."Low"):SetText();
571 getglobal(this:GetName()):SetMinMaxValues(0,360);
572 getglobal(this:GetName()):SetValueStep(1);
573 </OnLoad>
574 <OnValueChanged>
575 CleanMinimap_SetIconPosition("MinimapZoomIn",getglobal(this:GetName()):GetValue());
576 </OnValueChanged>
577 <OnMouseDown>
578 CleanMinimapOptions_ShowIcon("MinimapZoomIn");
579 </OnMouseDown>
580 <OnMouseUp>
581 CleanMinimapOptions_HideIcon("MinimapZoomIn");
582 </OnMouseUp>
583 </Scripts>
584 </Slider>
585 <Slider name="CMMSliderZoomOut" inherits="CleanMinimapSliderTemplate">
586 <Size>
587 <AbsDimension x="180" y="16"/>
588 </Size>
589 <Anchors>
590 <Anchor point="TOPLEFT">
591 <Offset>
592 <AbsDimension x="10" y="-55" />
593 </Offset>
594 </Anchor>
595 </Anchors>
596 <Scripts>
597 <OnLoad>
598 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.zoomOutPosition);
599 getglobal(this:GetName().."High"):SetText();
600 getglobal(this:GetName().."Low"):SetText();
601 getglobal(this:GetName()):SetMinMaxValues(0,360);
602 getglobal(this:GetName()):SetValueStep(1);
603 </OnLoad>
604 <OnValueChanged>
605 CleanMinimap_SetIconPosition("MinimapZoomOut",getglobal(this:GetName()):GetValue());
606 </OnValueChanged>
607 <OnMouseDown>
608 CleanMinimapOptions_ShowIcon("MinimapZoomOut");
609 </OnMouseDown>
610 <OnMouseUp>
611 CleanMinimapOptions_HideIcon("MinimapZoomOut");
612 </OnMouseUp>
613 </Scripts>
614 </Slider>
615 <Slider name="CMMSliderMail" inherits="CleanMinimapSliderTemplate">
616 <Size>
617 <AbsDimension x="180" y="16"/>
618 </Size>
619 <Anchors>
620 <Anchor point="TOPLEFT">
621 <Offset>
622 <AbsDimension x="10" y="-90" />
623 </Offset>
624 </Anchor>
625 </Anchors>
626 <Scripts>
627 <OnLoad>
628 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.mailPosition);
629 getglobal(this:GetName().."High"):SetText();
630 getglobal(this:GetName().."Low"):SetText();
631 getglobal(this:GetName()):SetMinMaxValues(0,360);
632 getglobal(this:GetName()):SetValueStep(1);
633 </OnLoad>
634 <OnValueChanged>
635 CleanMinimap_SetIconPosition("MiniMapMailFrame",getglobal(this:GetName()):GetValue());
636 </OnValueChanged>
637 <OnMouseDown>
638 CleanMinimapOptions_ShowIcon("MiniMapMailFrame");
639 </OnMouseDown>
640 <OnMouseUp>
641 CleanMinimapOptions_HideIcon("MiniMapMailFrame");
642 </OnMouseUp>
643 </Scripts>
644 </Slider>
645 <Slider name="CMMSliderTracking" inherits="CleanMinimapSliderTemplate">
646 <Size>
647 <AbsDimension x="180" y="16"/>
648 </Size>
649 <Anchors>
650 <Anchor point="TOPLEFT">
651 <Offset>
652 <AbsDimension x="200" y="-20" />
653 </Offset>
654 </Anchor>
655 </Anchors>
656 <Scripts>
657 <OnLoad>
658 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.trackingPosition);
659 getglobal(this:GetName().."High"):SetText();
660 getglobal(this:GetName().."Low"):SetText();
661 getglobal(this:GetName()):SetMinMaxValues(0,360);
662 getglobal(this:GetName()):SetValueStep(1);
663 </OnLoad>
664 <OnValueChanged>
665 CleanMinimap_SetIconPosition("MiniMapTrackingFrame",getglobal(this:GetName()):GetValue());
666 </OnValueChanged>
667 <OnMouseDown>
668 CleanMinimapOptions_ShowIcon("MiniMapTrackingFrame");
669 </OnMouseDown>
670 <OnMouseUp>
671 CleanMinimapOptions_HideIcon("MiniMapTrackingFrame");
672 </OnMouseUp>
673 </Scripts>
674 </Slider>
675 <Slider name="CMMSliderBattleGrounds" inherits="CleanMinimapSliderTemplate">
676 <Size>
677 <AbsDimension x="180" y="16"/>
678 </Size>
679 <Anchors>
680 <Anchor point="TOPLEFT">
681 <Offset>
682 <AbsDimension x="200" y="-55" />
683 </Offset>
684 </Anchor>
685 </Anchors>
686 <Scripts>
687 <OnLoad>
688 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.battleGroundPosition);
689 getglobal(this:GetName().."High"):SetText();
690 getglobal(this:GetName().."Low"):SetText();
691 getglobal(this:GetName()):SetMinMaxValues(0,360);
692 getglobal(this:GetName()):SetValueStep(1);
693 </OnLoad>
694 <OnValueChanged>
695 CleanMinimap_SetIconPosition("MiniMapBattlefieldFrame",getglobal(this:GetName()):GetValue());
696 </OnValueChanged>
697 <OnMouseDown>
698 CleanMinimapOptions_ShowIcon("MiniMapBattlefieldFrame");
699 </OnMouseDown>
700 <OnMouseUp>
701 CleanMinimapOptions_HideIcon("MiniMapBattlefieldFrame");
702 </OnMouseUp>
703 </Scripts>
704 </Slider>
705 <Slider name="CMMSliderMeetingStone" inherits="CleanMinimapSliderTemplate">
706 <Size>
707 <AbsDimension x="180" y="16"/>
708 </Size>
709 <Anchors>
710 <Anchor point="TOPLEFT">
711 <Offset>
712 <AbsDimension x="200" y="-90" />
713 </Offset>
714 </Anchor>
715 </Anchors>
716 <Scripts>
717 <OnLoad>
718 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.meetingStonePosition);
719 getglobal(this:GetName().."High"):SetText();
720 getglobal(this:GetName().."Low"):SetText();
721 getglobal(this:GetName()):SetMinMaxValues(0,360);
722 getglobal(this:GetName()):SetValueStep(1);
723 </OnLoad>
724 <OnValueChanged>
725 CleanMinimap_SetIconPosition("MiniMapMeetingStoneFrame",getglobal(this:GetName()):GetValue());
726 </OnValueChanged>
727 <OnMouseDown>
728 CleanMinimapOptions_ShowIcon("MiniMapMeetingStoneFrame");
729 </OnMouseDown>
730 <OnMouseUp>
731 CleanMinimapOptions_HideIcon("MiniMapMeetingStoneFrame");
732 </OnMouseUp>
733 </Scripts>
734 </Slider>
735 </Frames>
736 <Scripts>
737 <OnShow>
738 getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.iconsGroupTitle);
739 </OnShow>
740 </Scripts>
741 </Frame>
742  
743 <Button name="CleanMinimapOptionsFrameDone" inherits="OptionsButtonTemplate" text="CMMOPTIONS_DONE">
744 <Anchors>
745 <Anchor point="BOTTOM">
746 <Offset>
747 <AbsDimension x="0" y="20"/>
748 </Offset>
749 </Anchor>
750 </Anchors>
751 <Scripts>
752 <OnClick>
753 CleanMinimapOptions_Toggle();
754 </OnClick>
755 </Scripts>
756 </Button>
757 <CheckButton name="CMMUseOneConfigButton" inherits="OptionsCheckButtonTemplate">
758 <Anchors>
759 <Anchor point="BOTTOMLEFT">
760 <Offset>
761 <AbsDimension x="10" y="20"/>
762 </Offset>
763 </Anchor>
764 </Anchors>
765 <Scripts>
766 <OnLoad>
767 getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useOneConfig);
768 </OnLoad>
769 <OnClick>
770 CleanMinimap_SetOneConfig(this:GetChecked());
771 </OnClick>
772 </Scripts>
773 </CheckButton>
774 </Frames>
775 <Scripts>
776 <OnShow>
777 CleanMinimapOptions_OnShow();
778 </OnShow>
779 <OnHide>
780 CleanMinimapOptions_OnHide();
781 </OnHide>
782 <OnLoad>
783 CleanMinimapOptions_OnLoad();
784 </OnLoad>
785 </Scripts>
786 </Frame>
787 </Ui>