
<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">

  <Script file="localization.lua" />
  <Script file="NightfallSettings.lua" />

  <Frame name="NightfallSettingsFrame" toplevel="true" movable="true" enableMouse="true" parent="UIParent" hidden="true">

    <Size>
      <AbsDimension x="384" y="230" />
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT">
        <Offset>
          <AbsDimension x="0" y="-184"/>
        </Offset>
      </Anchor>
    </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="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
          <Size>
            <AbsDimension x="300" y="64" />
          </Size>
          <Anchors>
            <Anchor point="TOP">
              <Offset>
                <AbsDimension x="0" y="12" />
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <FontString name="$parentLabel1" inherits="GameFontNormal">
          <Anchors>
            <Anchor point="TOP" relativeTo="$parentHeader">
              <Offset>
                <AbsDimension x="0" y="-14" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentVersion" inherits="GameFontNormal" justifyH="RIGHT">
          <Anchors>
            <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
              <Offset>
                <AbsDimension x="-20" y="-20" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentLabel2" inherits="GameFontNormal" justifyH="RIGHT">
          <Anchors>
            <Anchor point="RIGHT" relativeTo="$parentVersion" relativePoint="LEFT">
              <Offset>
                <AbsDimension x="-4" y="0" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>

    <Frames>

      <CheckButton name="$parentCheckButton1" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="30" y="-40" />
            </Offset>
          </Anchor>
        </Anchors>
      </CheckButton>

      <CheckButton name="$parentCheckButton2" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parentCheckButton1" relativePoint="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="30" y="0" />
            </Offset>
          </Anchor>
        </Anchors>
      </CheckButton>

      <CheckButton name="$parentCheckButton3" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parentCheckButton2" relativePoint="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="0" y="0" />
            </Offset>
          </Anchor>
        </Anchors>
      </CheckButton>

      <CheckButton name="$parentCheckButton4" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parentCheckButton3" relativePoint="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="-30" y="0" />
            </Offset>
          </Anchor>
        </Anchors>
      </CheckButton>

      <Button name="$parentButton1" inherits="OptionsButtonTemplate">
        <Anchors>
          <Anchor point="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="16" y="16" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LifeSafer_NightfallSettings_ResetSettings()
          </OnClick>
        </Scripts>
      </Button>

      <Button name="$parentButton2" inherits="OptionsButtonTemplate">
        <Anchors>
          <Anchor point="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-16" y="16" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            HideUIPanel(this:GetParent())
          </OnClick>
        </Scripts>
      </Button>

      <Button name="$parentButton3" inherits="OptionsButtonTemplate">
        <Anchors>
          <Anchor point="RIGHT" relativeTo="$parentButton2" relativePoint="LEFT">
            <Offset>
              <AbsDimension x="-12" y="0" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LifeSafer_NightfallSettings_ApplySettings()
            HideUIPanel(this:GetParent())
          </OnClick>
        </Scripts>
      </Button>

    </Frames>

    <Scripts>
      <OnLoad>
        LifeSafer_NightfallSettings_OnLoad()
      </OnLoad>
      <OnShow>
        LifeSafer_NightfallSettings_OnShow()
        PlaySound("igCharacterInfoOpen")
      </OnShow>
      <OnHide>
        PlaySound("igCharacterInfoClose")
      </OnHide>
    </Scripts>

  </Frame>

</Ui>
