vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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">
  <!--
    $Id: CleanMinimapOptions.xml 73 2005-08-29 06:25:39Z joev $
  -->
  <Script file="localization.lua" />
  <Script file="CleanMinimapOptions.lua"/>
  <!-- Templates -->
  <Frame name="OptionGroupTemplate" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true" virtual="true">
    <Frames>  
      <Frame name="$parentTitle">
        <Size>
          <AbsDimension x="196" y="20"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="2" y="-2"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
          <EdgeSize>
            <AbsValue val="8"/>
          </EdgeSize>
          <TileSize>
            <AbsValue val="8"/>
          </TileSize>
          <BackgroundInsets>
            <AbsInset left="2" right="2" top="2" bottom="2"/>
          </BackgroundInsets>
        </Backdrop>
        <Layers>
          <Layer>
            <FontString name="$parentText" inherits="GameFontHighlight">
              <Anchors>
                <Anchor point="LEFT">
                  <Offset>
                    <AbsDimension x="10" y="0"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
        <Scripts>
          <OnLoad>
            this:SetBackdropBorderColor(0.4, 0.4, 0.4);
            this:SetBackdropColor(0.15, 0.15, 0.15);
          </OnLoad>
        </Scripts>
      </Frame>
     </Frames>
    <Scripts>
      <OnLoad>
        this:SetBackdropBorderColor(0.4, 0.4, 0.4);
        this:SetBackdropColor(0.15, 0.15, 0.15);
      </OnLoad>
    </Scripts>
  </Frame>
  <Slider name="CleanMinimapSliderTemplate" orientation="HORIZONTAL" virtual="true" enableMouse="true">
    <Size>
      <AbsDimension x="128" y="17"/>
    </Size>
    <HitRectInsets>
      <AbsInset left="0" right="0" top="-10" bottom="-10"/>
    </HitRectInsets>
    <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
      <EdgeSize>
        <AbsValue val="8"/>
      </EdgeSize>
      <TileSize>
        <AbsValue val="8"/>
      </TileSize>
      <BackgroundInsets>
        <AbsInset left="3" right="3" top="6" bottom="6"/>
      </BackgroundInsets>
    </Backdrop>
    <Layers>
      <Layer level="ARTWORK">
        <FontString name="$parentText" inherits="GameFontNormalSmall">
          <Anchors>
            <Anchor point="BOTTOM" relativePoint="TOP">
              <Offset>
                <AbsDimension x="0" y="-1"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentLow" inherits="GameFontHighlightSmall" text="LOW">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="2" y="3"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="HIGH">
          <Anchors>
            <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="-2" y="3"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
      <Layer level="ARTWORK">
        <FontString name="$parentTextUpdate" inherits="GameFontNormal" text="">
          <Anchors>
            <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
              <Offset>
                <AbsDimension x="5" y="0.5"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
      <Size>
        <AbsDimension x="32" y="32"/>
      </Size>
    </ThumbTexture>
  </Slider>
  
  <!-- Frames -->
  <Frame name="CleanMinimapOptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
    <Size>
      <AbsDimension x="655" y="460"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER"/>
    </Anchors>
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="11" right="12" top="12" bottom="11"/>
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="32"/>
      </TileSize>
      <EdgeSize>
        <AbsValue val="32"/>
      </EdgeSize>
    </Backdrop>
    <Layers>
      <Layer level="ARTWORK">
        <Texture name="CleanMinimapOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
          <Size>
            <AbsDimension x="400" y="64"/>
          </Size>
            <Anchors>
              <Anchor point="TOP">
                <Offset>
                  <AbsDimension x="0" y="12"/>
                </Offset>
            </Anchor>
            </Anchors>
        </Texture>
        <FontString inherits="GameFontNormal" text="CMMOPTIONS_TITLE">
          <Anchors>
            <Anchor point="TOP" relativeTo="CleanMinimapOptionsFrameHeader">
              <Offset>
                <AbsDimension x="0" y="-14"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <!-- CleanMinimap On/Off options -->
      <Frame name="CleanMinimapButtonOnOffGroup" inherits="OptionGroupTemplate">
         <Size>
          <AbsDimension x="200" y="50"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="10" y="-50"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Frames>     
          <CheckButton name="CMMToggleCleanMinimap" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-10"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.enableCleanMinimap);
              </OnLoad>
              <OnClick>
                CleanMinimapOptions_ToggleCMM();
              </OnClick>
            </Scripts>
          </CheckButton>
        </Frames>
        <Scripts>
         <OnShow>
           getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.buttonOnOffGroupTitle);
         </OnShow>
        </Scripts>
      </Frame>

      <!-- Minimap Button options -->
      <Frame name="CleanMinimapButtonOptionsGroup" inherits="OptionGroupTemplate">
         <Size>
          <AbsDimension x="200" y="100"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="10" y="-120"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Frames>     
          <CheckButton name="CMMToggleMinimapButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-20"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showMinimapButton);
              </OnLoad>
              <OnClick>
                CleanMinimapButton_Toggle();
              </OnClick>
            </Scripts>
          </CheckButton>
          <Slider name="CMMSliderButtonPos" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-65" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.buttonPosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimapConfig[CleanMinimap_player].buttonPos = getglobal(this:GetName()):GetValue();
                CleanMinimapButton_UpdatePosition();
              </OnValueChanged>
            </Scripts>
          </Slider>
        </Frames>
        <Scripts>
         <OnShow>
           getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.buttonOptionsGroupTitle);
         </OnShow>
        </Scripts>
      </Frame>
      
      <!-- Minimap components -->
      <Frame name="CleanMinimapMapOptionsGroup" inherits="OptionGroupTemplate">
         <Size>
          <AbsDimension x="200" y="170"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="210" y="-50"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Frames>     
          <CheckButton name="CMMToggleClockButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-20"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showClockButton);
              </OnLoad>
              <OnClick>
                CleanMinimap_ToggleClock();
              </OnClick>
            </Scripts>
          </CheckButton>
          <CheckButton name="CMMToggleZoomButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-50"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showZoomButton);
              </OnLoad>
              <OnClick>
                CleanMinimap_ToggleZoom();
              </OnClick>
            </Scripts>
          </CheckButton>
          <CheckButton name="CMMToggleTitleButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-80"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showTitleButton);
              </OnLoad>
              <OnClick>
                CleanMinimap_ToggleTitle();
              </OnClick>
            </Scripts>
          </CheckButton>
          <CheckButton name="CMMToggleNSEWButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-110"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.showNSEWButton);
              </OnLoad>
              <OnClick>
                CleanMinimap_ToggleNsew();
              </OnClick>
            </Scripts>
          </CheckButton>
        </Frames>
        <Scripts>
         <OnShow>
           getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.mapOptionsGroupTitle);
         </OnShow>
        </Scripts>
      </Frame>      
      
      <!-- Opacity and Sizing options -->
      <Frame name="CleanMinimapSliderGroup" inherits="OptionGroupTemplate">
         <Size>
          <AbsDimension x="235" y="170"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="410" y="-50"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Frames>     
          <Slider name="CMMSliderOpacity" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-20" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.opacity);
                getglobal(this:GetName().."High"):SetText("100%");
                getglobal(this:GetName().."Low"):SetText("0%");
                getglobal(this:GetName()):SetMinMaxValues(0,100);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                local val = getglobal(this:GetName()):GetValue();
                CleanMinimap_SilentSetAlpha(val);
                getglobal(this:GetName().."TextUpdate"):SetText(val.."\%");
              </OnValueChanged>
            </Scripts>
          </Slider>
          <Slider name="CMMSliderLargeSize" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-55" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.largeSize);
                getglobal(this:GetName().."High"):SetText("300%");
                getglobal(this:GetName().."Low"):SetText("100%");
                getglobal(this:GetName()):SetMinMaxValues(100,300);
                getglobal(this:GetName()):SetValueStep(20);
              </OnLoad>
              <OnValueChanged>
                local val = getglobal(this:GetName()):GetValue();
                CleanMinimap_SilentSetLargeSize(val);
                getglobal(this:GetName().."TextUpdate"):SetText(val.."\%");
              </OnValueChanged>
            </Scripts>
          </Slider>
          <Slider name="CMMSliderSmallSize" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-90" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.smallSize);
                getglobal(this:GetName().."High"):SetText("100%");
                getglobal(this:GetName().."Low"):SetText("30%");
                getglobal(this:GetName()):SetMinMaxValues(30,100);
                getglobal(this:GetName()):SetValueStep(7);
              </OnLoad>
              <OnValueChanged>
                local val = getglobal(this:GetName()):GetValue();
                CleanMinimap_SilentSetSmallSize(val);
                getglobal(this:GetName().."TextUpdate"):SetText(val.."\%");
              </OnValueChanged>
            </Scripts>
          </Slider>
        </Frames>
        <Scripts>
         <OnShow>
           getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.sliderGroupTitle);
         </OnShow>
        </Scripts>
      </Frame>
      
      <!-- Movement Modifier key settings -->
      <Frame name="CleanMinimapMapModifierGroup" inherits="OptionGroupTemplate">
         <Size>
          <AbsDimension x="200" y="120"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="10" y="-240"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Frames>     
          <CheckButton name="CMMUseShiftButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-20"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useShiftButton);
              </OnLoad>
              <OnClick>
                this:SetChecked(1);
                getglobal("CMMUseCtrlButton"):SetChecked(0);
                getglobal("CMMUseAltButton"):SetChecked(0);
                CleanMinimap_SetModifier("SHIFT");
              </OnClick>
            </Scripts>
          </CheckButton>
          <CheckButton name="CMMUseCtrlButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-50"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useCtrlButton);
              </OnLoad>
              <OnClick>
                this:SetChecked(1);
                getglobal("CMMUseShiftButton"):SetChecked(0);
                getglobal("CMMUseAltButton"):SetChecked(0);
                CleanMinimap_SetModifier("CTRL");
              </OnClick>
            </Scripts>
          </CheckButton>
          <CheckButton name="CMMUseAltButton" inherits="OptionsCheckButtonTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-80"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useAltButton);
              </OnLoad>
              <OnClick>
                this:SetChecked(1);
                getglobal("CMMUseCtrlButton"):SetChecked(0);
                getglobal("CMMUseShiftButton"):SetChecked(0);
                CleanMinimap_SetModifier("ALT");
              </OnClick>
            </Scripts>
          </CheckButton>
        </Frames>
        <Scripts>
         <OnShow>
           getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.modifierOptionsGroupTitle);
         </OnShow>
        </Scripts>
      </Frame>
      
      <!-- Icons options -->
      <Frame name="CleanMinimapIconsGroup" inherits="OptionGroupTemplate">
         <Size>
          <AbsDimension x="430" y="120"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="210" y="-240"/>
            </Offset>
          </Anchor>
        </Anchors>      
        <Frames>     
          <Slider name="CMMSliderZoomIn" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-20" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.zoomInPosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimap_SetIconPosition("MinimapZoomIn",getglobal(this:GetName()):GetValue()); 
              </OnValueChanged>
              <OnMouseDown>
                CleanMinimapOptions_ShowIcon("MinimapZoomIn");
              </OnMouseDown>
              <OnMouseUp>
                CleanMinimapOptions_HideIcon("MinimapZoomIn");             
              </OnMouseUp>
            </Scripts>
          </Slider>
          <Slider name="CMMSliderZoomOut" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-55" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.zoomOutPosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimap_SetIconPosition("MinimapZoomOut",getglobal(this:GetName()):GetValue()); 
              </OnValueChanged>
              <OnMouseDown>
                CleanMinimapOptions_ShowIcon("MinimapZoomOut");
              </OnMouseDown>
              <OnMouseUp>
                CleanMinimapOptions_HideIcon("MinimapZoomOut");             
              </OnMouseUp>
            </Scripts>
          </Slider>
          <Slider name="CMMSliderMail" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="10" y="-90" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.mailPosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimap_SetIconPosition("MiniMapMailFrame",getglobal(this:GetName()):GetValue()); 
              </OnValueChanged>
              <OnMouseDown>
                CleanMinimapOptions_ShowIcon("MiniMapMailFrame");
              </OnMouseDown>
              <OnMouseUp>
                CleanMinimapOptions_HideIcon("MiniMapMailFrame");             
              </OnMouseUp>
            </Scripts>
          </Slider>
          <Slider name="CMMSliderTracking" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="200" y="-20" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.trackingPosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimap_SetIconPosition("MiniMapTrackingFrame",getglobal(this:GetName()):GetValue()); 
              </OnValueChanged>
              <OnMouseDown>
                CleanMinimapOptions_ShowIcon("MiniMapTrackingFrame");
              </OnMouseDown>
              <OnMouseUp>
                CleanMinimapOptions_HideIcon("MiniMapTrackingFrame");             
              </OnMouseUp>
            </Scripts>
          </Slider>
          <Slider name="CMMSliderBattleGrounds" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="200" y="-55" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.battleGroundPosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimap_SetIconPosition("MiniMapBattlefieldFrame",getglobal(this:GetName()):GetValue()); 
              </OnValueChanged>
             <OnMouseDown>
                CleanMinimapOptions_ShowIcon("MiniMapBattlefieldFrame");
              </OnMouseDown>
              <OnMouseUp>
                CleanMinimapOptions_HideIcon("MiniMapBattlefieldFrame");             
              </OnMouseUp>
             </Scripts>
          </Slider>
          <Slider name="CMMSliderMeetingStone" inherits="CleanMinimapSliderTemplate">
            <Size>
              <AbsDimension x="180" y="16"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="200" y="-90" />
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnLoad>
                getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.meetingStonePosition);
                getglobal(this:GetName().."High"):SetText();
                getglobal(this:GetName().."Low"):SetText();
                getglobal(this:GetName()):SetMinMaxValues(0,360);
                getglobal(this:GetName()):SetValueStep(1);
              </OnLoad>
              <OnValueChanged>
                CleanMinimap_SetIconPosition("MiniMapMeetingStoneFrame",getglobal(this:GetName()):GetValue()); 
              </OnValueChanged>
             <OnMouseDown>
                CleanMinimapOptions_ShowIcon("MiniMapMeetingStoneFrame");
              </OnMouseDown>
              <OnMouseUp>
                CleanMinimapOptions_HideIcon("MiniMapMeetingStoneFrame");             
              </OnMouseUp>
             </Scripts>
          </Slider>
        </Frames>
        <Scripts>
         <OnShow>
           getglobal(this:GetName().."TitleText"):SetText(CMMSTRINGS.options.iconsGroupTitle);
         </OnShow>
        </Scripts>
      </Frame>
      
      <Button name="CleanMinimapOptionsFrameDone" inherits="OptionsButtonTemplate" text="CMMOPTIONS_DONE">
        <Anchors>
          <Anchor point="BOTTOM">
            <Offset>
              <AbsDimension x="0" y="20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            CleanMinimapOptions_Toggle();
          </OnClick>
        </Scripts>
      </Button>
      <CheckButton name="CMMUseOneConfigButton" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="10" y="20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(this:GetName().."Text"):SetText(CMMSTRINGS.options.useOneConfig);
          </OnLoad>
          <OnClick>
            CleanMinimap_SetOneConfig(this:GetChecked());
          </OnClick>
        </Scripts>
      </CheckButton>
    </Frames>
    <Scripts>
      <OnShow>
        CleanMinimapOptions_OnShow();
      </OnShow>
      <OnHide>
        CleanMinimapOptions_OnHide();
      </OnHide>
      <OnLoad>
        CleanMinimapOptions_OnLoad();
      </OnLoad>
    </Scripts>
  </Frame>
</Ui>