<Ui>
  <Button name="AuctionatorGroupsViewItemTemplate" registerForClicks="LeftButtonUp, RightButtonUp" mixin="AuctionatorGroupsViewItemMixin" virtual="true" motionScriptsWhileDisabled="true">
    <KeyValues>
      <KeyValue key="clickEventName" value="BagItemClicked" type="string" />
    </KeyValues>
    <Scripts>
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
      <OnClick method="OnClick" />
    </Scripts>

    <Layers>
      <Layer level="BACKGROUND" textureSubLevel="2">
        <Texture parentKey="Icon">
          <Anchors>
            <Anchor point="TOPLEFT"/>
            <Anchor point="BOTTOMRIGHT"/>
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="BACKGROUND" textureSubLevel="1">
        <Texture parentKey="EmptySlot" file="Interface\BUTTONS\UI-Slot-Background">
          <Anchors>
            <Anchor point="TOPLEFT"/>
            <Anchor point="BOTTOMRIGHT"/>
          </Anchors>
          <TexCoords left="0" right="0.640625" top="0" bottom="0.640625" />
        </Texture>
      </Layer>
      <Layer level="BACKGROUND" textureSubLevel="3">
        <Texture parentKey="IconBorder" file="Interface\Common\WhiteIconFrame">
          <Anchors>
            <Anchor point="TOPLEFT"/>
            <Anchor point="BOTTOMRIGHT"/>
          </Anchors>
        </Texture>
        <Texture parentKey="IconSelectedHighlight" atlas="bags-glow-artifact">
          <Anchors>
            <Anchor point="TOPLEFT"/>
            <Anchor point="BOTTOMRIGHT"/>
          </Anchors>
        </Texture>
      </Layer>
      <Layer>
        <FontString parentKey="Text" inherits="NumberFontNormal" justifyH="RIGHT" maxLines="1">
         <Color a="1" r="1" g="1" b="1" />
          <Size x="0" y="18"/>
          <Anchors>
            <Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/>
            <Anchor point="LEFT" relativeKey="$parent" relativePoint="LEFT" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress">
      <Anchors>
        <Anchor point="TOPLEFT" relativeKey="$parent.Icon" relativePoint="TOPLEFT"/>
        <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon" relativePoint="BOTTOMRIGHT"/>
      </Anchors>
    </PushedTexture>
    <HighlightTexture parentKey="Highlight" file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD">
      <Anchors>
        <Anchor point="TOPLEFT" relativeKey="$parent.Icon" relativePoint="TOPLEFT"/>
        <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon" relativePoint="BOTTOMRIGHT"/>
      </Anchors>
    </HighlightTexture>
  </Button>
</Ui>
