<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="MinimapButton.lua"></Script>
	
	<Button parentKey="AltoholicButton" parent="Minimap" name="AltoholicMinimapButton" frameStrata="MEDIUM" toplevel="true">
		<Size x="33" y="33" />
		<Anchors>
			<Anchor point="CENTER" relativeTo="Minimap" relativePoint="RIGHT" x="5" y="0" />
		</Anchors>		
		<Scripts>
			<OnLoad>
				Altoholic:BindViewToController(self, "AltoholicUI.MinimapButton")
				self:RegisterForClicks("LeftButtonDown", "RightButtonDown")
				self:RegisterForDrag("RightButton")
			</OnLoad>
			<OnClick>
				self:Button_OnClick(button)
			</OnClick>
			<OnUpdate>
				self:Update()
			</OnUpdate>
			<OnDragStart>
				self.isMoving = true
			</OnDragStart>
			<OnDragStop>
				self.isMoving = false
			</OnDragStop>
			<OnEnter> 
				Altoholic:ShowWidgetTooltip(self)
			</OnEnter>
			<OnLeave>
				AltoTooltip:Hide()
			</OnLeave>
		</Scripts>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon" file="Interface\Icons\INV_Drink_13">
					<Size x="21" y="21" />
					<Anchors>
						<Anchor point="TOPLEFT" x="7" y="-6" />
					</Anchors>
					<TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture file="Interface\Minimap\MiniMap-TrackingBorder">
					<Size x="56" y="56" />
					<Anchors>
						<Anchor point="TOPLEFT" />
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
	</Button>
</Ui>
