<Ui xmlns="http://www.blizzard.com/wow/ui/">
  <Frame name="Atr_Buy_Confirm_Frame" inherits="AuctionatorDialog" toplevel="true" parent="UIParent" frameStrata="FULLSCREEN_DIALOG" enableMouse="true" hidden="true">
    <Size><AbsDimension x="390" y="180" /></Size>

    <Scripts>
      <OnUpdate>
        Atr_Buy_Confirm_Update()
      </OnUpdate>
    </Scripts>

    <Layers>
      <Layer level="BACKGROUND">
        <FontString name="Atr_Buy_Confirm_ItemName" inherits="GameFontNormal">
          <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="40" y="-35"/></Offset></Anchor></Anchors>
        </FontString>
      </Layer>
    </Layers>

    <Frames>

      <Frame name="Atr_Buy_Confirm_TotalPrice" inherits="SmallMoneyFrameTemplate">
        <Size><AbsDimension x="125" y="16" /></Size>
        <Anchors><Anchor point="TOPLEFT" relativeTo="Atr_Buy_Confirm_ItemName"><Offset><AbsDimension x="20" y="-25"/></Offset></Anchor></Anchors>
        <Scripts><OnLoad>AuctionatorMoneyFrame_OnLoad( self )</OnLoad></Scripts>
      </Frame>

      <Frame name="Atr_Buy_Part1">
        <Anchors>
          <Anchor point="TOPLEFT">    <Offset><AbsDimension x="0" y="0" /></Offset></Anchor>
          <Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="40"/></Offset></Anchor>
        </Anchors>

        <Layers>
          <Layer level="BACKGROUND">
            <FontString name="Atr_Buy_Confirm_Text1" inherits="GameFontNormal" text="Buy">
              <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="70" y="-79"/></Offset></Anchor></Anchors>
            </FontString>

            <FontString name="Atr_Buy_Confirm_Max_Text" inherits="GameFontDarkGraySmall">
              <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="110" y="-97"/></Offset></Anchor></Anchors>
            </FontString>

            <FontString name="Atr_Buy_Confirm_Text2" inherits="GameFontNormal" text="stacks for:">
              <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="160" y="-79"/></Offset></Anchor></Anchors>
            </FontString>
          </Layer>
        </Layers>

        <Frames>


          <EditBox name="Atr_Buy_Confirm_Numstacks" autoFocus="false" numeric="true" inherits="InputBoxTemplate">
            <Size><AbsDimension x="40" y="20"/></Size>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="Atr_Buy_Confirm_Text1">
                <Offset><AbsDimension x="40" y="4"/></Offset>
              </Anchor>
            </Anchors>
            <FontString inherits="ChatFontNormal" bytes="64" justifyH="CENTER" />
          </EditBox>
        </Frames>
      </Frame>

      <Frame name="Atr_Buy_Part2">
        <Anchors>
          <Anchor point="TOPLEFT">    <Offset><AbsDimension x="0" y="0" /></Offset></Anchor>
          <Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="40"/></Offset></Anchor>
        </Anchors>

        <Layers>
          <Layer level="BACKGROUND">
            <FontString name="Atr_Buy_NumAvail_Text" inherits="GameFontNormal">
              <Anchors><Anchor point="TOPRIGHT"><Offset><AbsDimension x="-30" y="-90"/></Offset></Anchor></Anchors>
            </FontString>
            <FontString name="Atr_Buy_Continue_Text" inherits="GameFontNormal">
              <Anchors><Anchor point="TOPRIGHT"><Offset><AbsDimension x="-30" y="-110"/></Offset></Anchor></Anchors>
            </FontString>
          </Layer>
        </Layers>
      </Frame>

      <Button name="Atr_Buy_Confirm_CancelBut" inherits="UIPanelButtonTemplate" text="Cancel">
        <Size><AbsDimension x="120" y="22"/></Size>
        <Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-20" y="25"/></Offset></Anchor></Anchors>
        <Scripts>
          <OnClick>
            Atr_Buy_Cancel()
          </OnClick>
        </Scripts>
      </Button>

      <Button name="Atr_Buy_Confirm_OKBut" inherits="UIPanelButtonTemplate" text="Buy">
        <Size><AbsDimension x="120" y="22"/></Size>
        <Anchors><Anchor point="RIGHT" relativeTo="Atr_Buy_Confirm_CancelBut" relativePoint="LEFT"><Offset><AbsDimension x="-10"/></Offset></Anchor></Anchors>
        <Scripts>
          <OnClick>
            Atr_Buy_Confirm_OK()
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
  </Frame>
</Ui>