<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by Sam Lantinga (Blizzard Entertainment) -->
<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="Minimap.lua"/>
	<Frame name="MinimapCluster" frameStrata="BACKGROUND" enableMouse="true" parent="UIParent">
		<Size>
			<AbsDimension x="192" y="192"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT"/>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="30" right="10" top="0" bottom="30"/>
		</HitRectInsets>
		<Layers>
			<Layer level="ARTWORK">
				<Texture file="Interface\Minimap\UI-Minimap-Border">
					<Size>
						<AbsDimension x="192" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.25" right="1.0" top="0.0" bottom="0.125"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="MinimapZoneTextButton">
				<Size>
					<AbsDimension x="128" y="12"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="-3" y="83"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="MinimapZoneText" inherits="GameFontNormal" wraponspaces="true">
							<Size>
								<AbsDimension x="128" y="12"/>
							</Size>
							<Anchors>
								<Anchor point="TOP"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_LEFT");
						GameTooltip:AddLine(GetMinimapZoneText(), "", 1.0, 1.0, 1.0);
						local pvpType, factionName = GetZonePVPInfo();
						if ( (pvpType == "friendly") or (pvpType == "hostile") ) then
							GameTooltip:AddLine(format(FACTION_CONTROLLED_TERRITORY, factionName), "", 1.0, 1.0, 1.0);
						elseif ( pvpType == "contested" ) then
							GameTooltip:AddLine(CONTESTED_TERRITORY, "", 1.0, 1.0, 1.0);
						end
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="MinimapToggleButton">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-15" y="-13"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ToggleMinimap();
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
				<HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight"/>
			</Button>
			<Minimap name="Minimap" enableMouse="true" minimapPlayerModel="Interface\Minimap\MinimapArrow.mdx" minimapArrowModel="Interface\Minimap\Rotating-MinimapArrow.mdl">
				<Size>
					<AbsDimension x="138" y="138"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativePoint="TOP">
						<Offset>
							<AbsDimension x="6" y="-96"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<Model name="MiniMapPing" file="Interface\MiniMap\Ping\MinimapPing.mdx" scale="0.4" hidden="true">
						<Size>
							<AbsDimension x="50" y="50"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" relativeTo="Minimap"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								Minimap_OnLoad();
							</OnLoad>
							<OnEvent>
								Minimap_OnEvent();
							</OnEvent>
							<OnUpdate>
								Minimap_OnUpdate(arg1);
							</OnUpdate>
						</Scripts>
					</Model>
					<Frame name="MinimapBackdrop">
						<Size>
							<AbsDimension x="192" y="192"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" relativeTo="MinimapCluster">
								<Offset>
									<AbsDimension x="0" y="-20"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\Minimap\UI-Minimap-Border">
									<TexCoords left="0.25" right="1.0" top="0.125" bottom="0.875"/>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<Button name="MinimapZoomIn">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="CENTER">
										<Offset>
											<AbsDimension x="77" y="-13"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										Minimap_ZoomInClick();
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Up"/>
								<PushedTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Down"/>
								<DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Disabled"/>
								<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
							</Button>
							<Button name="MinimapZoomOut">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="CENTER">
										<Offset>
											<AbsDimension x="51" y="-41"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										Minimap_ZoomOutClick();
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Up"/>
								<PushedTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Down"/>
								<DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
								<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
							</Button>
						</Frames>
					</Frame>
					<Frame name="MinimapTooltip" hidden="true" frameStrata="TOOLTIP">
						<Size>
							<AbsDimension x="0" y="32"/>
						</Size>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="MinimapTooltipText" inherits="GameFontNormal">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
									<FontHeight>
										<AbsValue val="13"/>
									</FontHeight>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnShow>
								MinimapAssistant_OnShow();
							</OnShow>
							<OnHide>
								MinimapAssistant_OnHide();
							</OnHide>
							<OnLoad>
								this:SetBackdropColor(0.08, 0.07, 0.06);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnMouseUp>
						Minimap_OnClick();
					</OnMouseUp>
				</Scripts>
			</Minimap>
		</Frames>
		<Scripts>
			<OnLoad>
				Minimap.timer = 0;
				Minimap_Update();
				this:RegisterEvent("MINIMAP_ZONE_CHANGED");
			</OnLoad>
			<OnEvent>
				Minimap_Update();
			</OnEvent>
		</Scripts>
	</Frame>
</Ui>
