<Ui xmlns="http://www.blizzard.com/wow/ui/">
  <Frame
    name="AuctionatorSaleItemFrameTemplate"
    virtual="true"

    parentKey="AuctionatorSaleItem"
    mixin="AuctionatorSaleItemMixin"
  >
    <Size x="600" y="100" />

    <Scripts>
      <OnLoad method="OnLoad" />
      <OnUpdate method="OnUpdate" />
      <OnShow method="OnShow" />
      <OnHide method="OnHide" />
    </Scripts>

    <Frames>
      <Frame parentKey="TitleArea">
        <Size y="24" />
        <Anchors>
          <Anchor point="TOPLEFT" />
          <Anchor point="RIGHT" />
        </Anchors>

        <Layers>
          <Layer>
            <FontString parentKey="Text" inherits="GameFontNormalLarge">
              <Anchors>
                <Anchor point="TOPLEFT" x="15" y="-5" />
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
      </Frame>

      <Button parentKey="Icon" inherits="AuctionatorBagItem" mixin="AuctionatorBagItemSelectedMixin">
        <Size x="60" y="60" />
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.TitleArea" relativePoint="BOTTOMLEFT" y="-5" x="-20"/>
        </Anchors>
        <Scripts>
          <OnReceiveDrag method="OnReceiveDrag" />
        </Scripts>
      </Button>

      <Frame parentKey="UnitPrice" inherits="AuctionatorConfigurationMoneyInputAlternate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.Icon" relativePoint="TOPRIGHT" y="5"/>
          <Anchor point="RIGHT" relativeKey="$parent.Icon" relativePoint="RIGHT" x="330"/>
        </Anchors>

        <KeyValues>
          <KeyValue key="labelText" value="AUCTIONATOR_L_UNIT_PRICE" type="global"/>
        </KeyValues>
      </Frame>

      <Frame parentKey="StackPrice" inherits="AuctionatorConfigurationMoneyInputAlternate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.UnitPrice" relativePoint="BOTTOMLEFT" y="-25"/>
          <Anchor point="RIGHT" relativeKey="$parent.UnitPrice"/>
        </Anchors>

        <KeyValues>
          <KeyValue key="labelText" value="AUCTIONATOR_L_STACK_PRICE" type="global"/>
        </KeyValues>
      </Frame>

      <Frame parentKey="Stacks" inherits="AuctionatorStackOfInputTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.StackPrice" relativePoint="BOTTOMLEFT" y="-30" x="112"/>
          <Anchor point="RIGHT" relativeKey="$parent.UnitPrice"/>
        </Anchors>
      </Frame>

      <Frame inherits="AuctionatorDurationHorizontalRadioControls" parentKey="Duration">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.UnitPrice" relativePoint="TOPRIGHT" />
          <Anchor point="RIGHT" relativeKey="$parent.UnitPrice" relativePoint="RIGHT" x="200"/>
        </Anchors>
      </Frame>

      <Button parentKey="PostButton" name="AuctionatorPostButton" inherits="UIPanelButtonTemplate" text="AUCTIONATOR_L_POST">
        <Size x="184" y="22"/>
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.Duration" relativePoint="BOTTOMLEFT" y="-19" x="20"/>
        </Anchors>
        <Scripts>
          <OnClick>self:GetParent():PostItem()</OnClick>
        </Scripts>
      </Button>
      <Button parentKey="SkipButton" name="AuctionatorSkipPostingButton" inherits="UIPanelButtonTemplate" text="AUCTIONATOR_L_SKIP" hidden="true">
        <Size x="80" y="22"/>
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.PostButton" relativePoint="TOPRIGHT"/>
        </Anchors>
        <Scripts>
          <OnClick>self:GetParent():SkipItem()</OnClick>
        </Scripts>
      </Button>

      <Frame parentKey="BidPrice" inherits="AuctionatorConfigurationMoneyInputAlternate" hidden="true">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.PostButton" relativePoint="BOTTOMLEFT"/>
        </Anchors>

        <KeyValues>
          <KeyValue key="labelText" value="AUCTIONATOR_L_STACK_BID_PRICE" type="global"/>
        </KeyValues>
      </Frame>
    </Frames>

    <Layers>
      <Layer level="BACKGROUND">
        <FontString inherits="GameFontNormal" parentKey="Deposit" Text="AUCTIONATOR_L_DEPOSIT">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.Duration" x="20"/>
          </Anchors>
        </FontString>
      </Layer>

      <Layer level="BACKGROUND">
        <FontString inherits="GameFontHighlight" parentKey="DepositPrice">
          <Size y="25" />
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.Deposit"/>
          </Anchors>
        </FontString>
      </Layer>

        <!-- Total price (money display [non editable]) -->
      <Layer level="BACKGROUND">
        <FontString inherits="GameFontNormal" parentKey="Total" Text="AUCTIONATOR_L_TOTAL_PRICE">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.DepositPrice"/>
          </Anchors>
        </FontString>
      </Layer>

      <Layer level="BACKGROUND">
        <FontString inherits="GameFontHighlight" parentKey="TotalPrice">
          <Size y="25" />
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.Total"/>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
  </Frame>
</Ui>
