<?xml version="1.0"?>
<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="RSWorldMapButtonMixin.lua"/>

  <Button name="RSWorldMapButtonTemplate" frameStrata="HIGH" mixin="RSWorldMapButtonMixin" virtual="true">
    <Size x="32" y="32"/>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="Background" file="Interface\Minimap\UI-Minimap-Background">
          <Size x="25" y="25"/>
          <Anchors>
            <Anchor point="TOPLEFT" x="2" y="-4"/>
          </Anchors>
          <Color r="1" g="1" b="1" a="1"/>
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture parentKey="Icon" file="Interface\Addons\RareScanner\Media\Icons\OriginalSkull.blp">
          <Size x="20" y="20"/>
          <Anchors>
            <Anchor point="TOPLEFT" x="6" y="-6"/>
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <Texture parentKey="IconOverlay" hidden="true">
          <Anchors>
            <Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
            <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
          </Anchors>
          <Color r="0.0" g="0.0" b="0.0" a="0.5"/>
        </Texture>
      </Layer>
      <Layer level="OVERLAY" textureSubLevel="1">
        <Texture parentKey="Border" file="Interface\Minimap\MiniMap-TrackingBorder">
          <Size x="54" y="54"/>
          <Anchors>
            <Anchor point="TOPLEFT"/>
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
    <Scripts>
      <OnLoad method="OnLoad"/>
      <OnMouseDown method="OnMouseDown"/>
      <OnMouseUp method="OnMouseUp"/>
      <OnEnter method="OnEnter"/>
      <OnLeave function="GameTooltip_Hide"/>
    </Scripts>
  </Button>
  
</Ui>