<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/
..\..\FrameXML\UI.xsd">

  <Frame name="FullMoonOptionsFrame">
    <Scripts>
      <OnLoad> FullMoonPanel_OnLoad(self); </OnLoad>
      <OnShow> FullMoonPanel_OnShow(); </OnShow>
    </Scripts>

    <Layers>
      <Layer level="OVERLAY">
        <FontString inherits="GameFontNormal" text="Full Moon Config">
          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="$parent">
              <Offset>
                <AbsDimension x="10" y="-10"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

        <FontString inherits="GameFontNormal" text="Enable Full Moon for:">
          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="$parent">
              <Offset>
                <AbsDimension x="10" y="-200"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>

    <Frames>
      <CheckButton name="$parent_CheckLocked" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="10" y="-30"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Locked"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>
      
      <CheckButton name="$parent_CheckPVP" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="10" y="-60"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("PvP Bars"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckTotems" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent_CheckPVP">
            <Offset>
              <AbsDimension x="0" y="-20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("PvP Totem Bars"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckRacial" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent_CheckTotems">
            <Offset>
              <AbsDimension x="0" y="-20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Racial Bar"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckLongCDs" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent_CheckRacial">
            <Offset>
              <AbsDimension x="0" y="-20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Long Cooldowns"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckSound" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent_CheckLongCDs">
            <Offset>
              <AbsDimension x="0" y="-20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Sounds"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckElemental" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="20" y="-220"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Elemental"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckEnhancement" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent_CheckElemental">
            <Offset>
              <AbsDimension x="0" y="-20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Enhancement"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <CheckButton name="$parent_CheckRestoration" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent_CheckEnhancement">
            <Offset>
              <AbsDimension x="0" y="-20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad> getglobal(this:GetName().."Text"):SetText("Restoration"); </OnLoad>
          <OnClick> FullMoonPanel_Click(); </OnClick>
        </Scripts>
      </CheckButton>

      <Slider name="$parent_SliderCombatFade" inherits="OptionsSliderTemplate">
        <Size>
          <AbsDimension x="200" y="16"/>
        </Size>
        <Anchors>
          <Anchor point="TOPRIGHT">
            <Offset>
              <AbsDimension x="-15" y="-40"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(this:GetName().."Text"):SetText("Combat Fade");
            getglobal(this:GetName().."High"):SetText("1.0");
            getglobal(this:GetName().."Low"):SetText("0");
            this:SetMinMaxValues(0,1);
            this:SetValueStep(0.05);
          </OnLoad>
          <OnValueChanged> FullMoonPanel_CombatFade();  </OnValueChanged>
        </Scripts>
      </Slider>

      <Slider name="$parent_SliderScale" inherits="OptionsSliderTemplate">
        <Size>
          <AbsDimension x="200" y="16"/>
        </Size>
        <Anchors>
          <Anchor point="TOPRIGHT" relativeTo="$parent_SliderCombatFade">
            <Offset>
              <AbsDimension x="0" y="-40"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(this:GetName().."Text"):SetText("Scale");
            getglobal(this:GetName().."High"):SetText("2.0");
            getglobal(this:GetName().."Low"):SetText("0");
            this:SetMinMaxValues(0,2);
            this:SetValueStep(0.05);
          </OnLoad>
          <OnValueChanged> FullMoonPanel_Scale();  </OnValueChanged>
        </Scripts>
      </Slider>
    </Frames>


  </Frame>
  </Ui>