<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="Blizzard_BattlefieldMinimap.lua"/>
<Frame name="BattlefieldMinimapUnitTemplate" inherits="WorldMapUnitTemplate" enableMouse="true" virtual="true" hidden="true">
	<Size x="12" y="12"/>
	<Scripts>
		<OnEnter>
			BattlefieldMinimapUnit_OnEnter(self, motion);
		</OnEnter>
		<OnLeave>
			GameTooltip:Hide();
		</OnLeave>
		<OnMouseUp>
			WorldMapUnit_OnMouseUp(self, button, "BattlefieldMinimapRaid", "BattlefieldMinimapParty");
		</OnMouseUp>
	</Scripts>
</Frame>
<Frame name="BattlefieldMinimapPlayerUnitTemplate" inherits="BattlefieldMinimapUnitTemplate" virtual="true">
	<Size x="24" y="24"/>
		<Layers>
			<Layer level="HIGHLIGHT">
				<Texture name="$parentIconHighlight" file="Interface\Minimap\MinimapArrow" setAllPoints="true" parentKey="iconHighlight"/>
			</Layer>
		</Layers>
	<Scripts>
		<OnLoad>
			WorldMapUnit_OnLoad(self);
			self.unit = "player";
			self.icon:SetTexture("Interface\\Minimap\\MinimapArrow");
		</OnLoad>
	</Scripts>
</Frame>
<Frame name="BattlefieldMinimapPartyUnitTemplate" inherits="BattlefieldMinimapUnitTemplate" virtual="true">
	<Scripts>
		<OnLoad>
			WorldMapUnit_OnLoad(self);
			self.unit = "party"..self:GetID();
			self.icon:SetTexture("Interface\\WorldMap\\WorldMapPartyIcon");
		</OnLoad>
	</Scripts>
</Frame>
<Frame name="BattlefieldMinimapRaidUnitTemplate" inherits="BattlefieldMinimapUnitTemplate" virtual="true">
	<Scripts>
		<OnLoad>
			WorldMapUnit_OnLoad(self);
			self.unit = "raid"..self:GetID();
			self.icon:SetTexture("Interface\\WorldMap\\WorldMapPartyIcon");
		</OnLoad>
	</Scripts>
</Frame>
<Button name="BattlefieldMinimapTab" hidden="true" frameStrata="LOW" parent="UIParent" movable="true">
	<Size x="64" y="32"/>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
				<Size x="16" y="32"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
			</Texture>
			<Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
				<Size x="44" y="32"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
				</Anchors>
				<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
			</Texture>
			<Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
				<Size x="16" y="32"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
				</Anchors>
				<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
			</Texture>
		</Layer>
	</Layers>
	<Frames>
		<Frame name="$parentFlash" hidden="true">
			<Size x="5" y="32"/>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentLeft" x="0" y="-7"/>
				<Anchor point="RIGHT" relativeTo="$parentRight" x="0" y="-7"/>
			</Anchors>
			<Layers>
				<Layer level="BACKGROUND">
					<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true"/>
				</Layer>
			</Layers>
		</Frame>
		<Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
			<Anchors>
				<Anchor point="TOP" x="-80" y="-35"/>
			</Anchors>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad>
			self:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
			self:RegisterForDrag("LeftButton");
			BattlefieldMinimapTab:SetAlpha(0);
		</OnLoad>
		<OnShow>
			PanelTemplates_TabResize(self, 0);
		</OnShow>
		<OnClick>
			BattlefieldMinimapTab_OnClick(self, button);
		</OnClick>
		<OnEnter>
			GameTooltip_AddNewbieTip(self, BATTLEFIELDMINIMAP_OPTIONS_LABEL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_BATTLEFIELDMINIMAP_OPTIONS, 1);
		</OnEnter>
		<OnLeave function="GameTooltip_Hide"/>
		<OnDragStart>
			if ( BattlefieldMinimapOptions.locked ) then
				return;
			end
			BattlefieldMinimapTab:StartMoving();
		</OnDragStart>
		<OnDragStop>
			BattlefieldMinimapTab:StopMovingOrSizing();
			ValidateFramePosition(BattlefieldMinimapTab);
		</OnDragStop>
	</Scripts>
	<ButtonText name="$parentText" text="BATTLEFIELD_MINIMAP">
		<Size x="0" y="8"/>
		<Anchors>
			<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" x="0" y="-5"/>
		</Anchors>
	</ButtonText>
	<NormalFont style="GameFontNormalSmall"/>
	<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
		<Anchors>
			<Anchor point="LEFT" relativeTo="$parentLeft" x="0" y="-7"/>
			<Anchor point="RIGHT" relativeTo="$parentRight" x="0" y="-7"/>
		</Anchors>
	</HighlightTexture>
</Button>
<Frame name="BattlefieldMinimap" parent="UIParent" frameStrata="BACKGROUND" frameLevel="10" hidden="true">
	<Size x="225" y="150"/>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimapTab" relativePoint="BOTTOMLEFT" x="0" y="-5"/>
	</Anchors>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="BattlefieldMinimap1">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap2">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap1" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap3">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap2" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap4">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap3" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap5">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap6">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap5" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap7">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap6" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap8">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap7" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap9">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap5" relativePoint="BOTTOMLEFT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap10">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap9" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap11">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap10" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
			<Texture name="BattlefieldMinimap12">
				<Size x="56" y="56"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="BattlefieldMinimap11" relativePoint="TOPRIGHT" x="0" y="0"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture name="BattlefieldMinimapCorner" file="Interface\DialogFrame\UI-DialogBox-Corner">
				<Size x="32" y="32"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-2" y="3"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="BattlefieldMinimapBackground" file="Interface\BattlefieldFrame\UI-BattlefieldMinimap-Border">
				<Size x="256" y="256"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="-12" y="12"/>
				</Anchors>
			</Texture>
		</Layer>
	</Layers>
	<Frames>
		<Button name="BattlefieldMinimapCloseButton" inherits="UIPanelCloseButton">
			<Anchors>
				<Anchor point="TOPRIGHT" x="2" y="7"/>
			</Anchors>
			<Scripts>
				<OnClick>
					SetCVar("showBattlefieldMinimap", "0");
					HideUIPanel(self:GetParent());
					WorldMapZoneMinimapDropDown_Update();
				</OnClick>
			</Scripts>
		</Button>

		<Frame name="BattlefieldMinimapPlayer" inherits="BattlefieldMinimapPlayerUnitTemplate"/>
		<Frame name="BattlefieldMinimapParty1" inherits="BattlefieldMinimapPartyUnitTemplate" id="1"/>
		<Frame name="BattlefieldMinimapParty2" inherits="BattlefieldMinimapPartyUnitTemplate" id="2"/>
		<Frame name="BattlefieldMinimapParty3" inherits="BattlefieldMinimapPartyUnitTemplate" id="3"/>
		<Frame name="BattlefieldMinimapParty4" inherits="BattlefieldMinimapPartyUnitTemplate" id="4"/>
		<Frame name="BattlefieldMinimapRaid1" inherits="BattlefieldMinimapRaidUnitTemplate" id="1"/>
		<Frame name="BattlefieldMinimapRaid2" inherits="BattlefieldMinimapRaidUnitTemplate" id="2"/>
		<Frame name="BattlefieldMinimapRaid3" inherits="BattlefieldMinimapRaidUnitTemplate" id="3"/>
		<Frame name="BattlefieldMinimapRaid4" inherits="BattlefieldMinimapRaidUnitTemplate" id="4"/>
		<Frame name="BattlefieldMinimapRaid5" inherits="BattlefieldMinimapRaidUnitTemplate" id="5"/>
		<Frame name="BattlefieldMinimapRaid6" inherits="BattlefieldMinimapRaidUnitTemplate" id="6"/>
		<Frame name="BattlefieldMinimapRaid7" inherits="BattlefieldMinimapRaidUnitTemplate" id="7"/>
		<Frame name="BattlefieldMinimapRaid8" inherits="BattlefieldMinimapRaidUnitTemplate" id="8"/>
		<Frame name="BattlefieldMinimapRaid9" inherits="BattlefieldMinimapRaidUnitTemplate" id="9"/>
		<Frame name="BattlefieldMinimapRaid10" inherits="BattlefieldMinimapRaidUnitTemplate" id="10"/>
		<Frame name="BattlefieldMinimapRaid11" inherits="BattlefieldMinimapRaidUnitTemplate" id="11"/>
		<Frame name="BattlefieldMinimapRaid12" inherits="BattlefieldMinimapRaidUnitTemplate" id="12"/>
		<Frame name="BattlefieldMinimapRaid13" inherits="BattlefieldMinimapRaidUnitTemplate" id="13"/>
		<Frame name="BattlefieldMinimapRaid14" inherits="BattlefieldMinimapRaidUnitTemplate" id="14"/>
		<Frame name="BattlefieldMinimapRaid15" inherits="BattlefieldMinimapRaidUnitTemplate" id="15"/>
		<Frame name="BattlefieldMinimapRaid16" inherits="BattlefieldMinimapRaidUnitTemplate" id="16"/>
		<Frame name="BattlefieldMinimapRaid17" inherits="BattlefieldMinimapRaidUnitTemplate" id="17"/>
		<Frame name="BattlefieldMinimapRaid18" inherits="BattlefieldMinimapRaidUnitTemplate" id="18"/>
		<Frame name="BattlefieldMinimapRaid19" inherits="BattlefieldMinimapRaidUnitTemplate" id="19"/>
		<Frame name="BattlefieldMinimapRaid20" inherits="BattlefieldMinimapRaidUnitTemplate" id="20"/>
		<Frame name="BattlefieldMinimapRaid21" inherits="BattlefieldMinimapRaidUnitTemplate" id="21"/>
		<Frame name="BattlefieldMinimapRaid22" inherits="BattlefieldMinimapRaidUnitTemplate" id="22"/>
		<Frame name="BattlefieldMinimapRaid23" inherits="BattlefieldMinimapRaidUnitTemplate" id="23"/>
		<Frame name="BattlefieldMinimapRaid24" inherits="BattlefieldMinimapRaidUnitTemplate" id="24"/>
		<Frame name="BattlefieldMinimapRaid25" inherits="BattlefieldMinimapRaidUnitTemplate" id="25"/>
		<Frame name="BattlefieldMinimapRaid26" inherits="BattlefieldMinimapRaidUnitTemplate" id="26"/>
		<Frame name="BattlefieldMinimapRaid27" inherits="BattlefieldMinimapRaidUnitTemplate" id="27"/>
		<Frame name="BattlefieldMinimapRaid28" inherits="BattlefieldMinimapRaidUnitTemplate" id="28"/>
		<Frame name="BattlefieldMinimapRaid29" inherits="BattlefieldMinimapRaidUnitTemplate" id="29"/>
		<Frame name="BattlefieldMinimapRaid30" inherits="BattlefieldMinimapRaidUnitTemplate" id="30"/>
		<Frame name="BattlefieldMinimapRaid31" inherits="BattlefieldMinimapRaidUnitTemplate" id="31"/>
		<Frame name="BattlefieldMinimapRaid32" inherits="BattlefieldMinimapRaidUnitTemplate" id="32"/>
		<Frame name="BattlefieldMinimapRaid33" inherits="BattlefieldMinimapRaidUnitTemplate" id="33"/>
		<Frame name="BattlefieldMinimapRaid34" inherits="BattlefieldMinimapRaidUnitTemplate" id="34"/>
		<Frame name="BattlefieldMinimapRaid35" inherits="BattlefieldMinimapRaidUnitTemplate" id="35"/>
		<Frame name="BattlefieldMinimapRaid36" inherits="BattlefieldMinimapRaidUnitTemplate" id="36"/>
		<Frame name="BattlefieldMinimapRaid37" inherits="BattlefieldMinimapRaidUnitTemplate" id="37"/>
		<Frame name="BattlefieldMinimapRaid38" inherits="BattlefieldMinimapRaidUnitTemplate" id="38"/>
		<Frame name="BattlefieldMinimapRaid39" inherits="BattlefieldMinimapRaidUnitTemplate" id="39"/>
		<Frame name="BattlefieldMinimapRaid40" inherits="BattlefieldMinimapRaidUnitTemplate" id="40"/>
		<Frame name="BattlefieldMinimapCorpse" inherits="WorldMapCorpseTemplate"/>
		<Frame name="BattlefieldMinimapFlag1" inherits="WorldMapFlagTemplate" id="1">
			<Size x="18" y="18"/>
		</Frame>
		<Frame name="BattlefieldMinimapFlag2" inherits="WorldMapFlagTemplate" id="2">
			<Size x="18" y="18"/>
		</Frame>
		<Frame name="BattlefieldMinimapFlag3" inherits="WorldMapFlagTemplate" id="3">
			<Size x="18" y="18"/>
		</Frame>
		<Frame name="BattlefieldMinimapFlag4" inherits="WorldMapFlagTemplate" id="4">
			<Size x="18" y="18"/>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad function="BattlefieldMinimap_OnLoad"/>
		<OnShow function="BattlefieldMinimap_OnShow"/>
		<OnHide function="BattlefieldMinimap_OnHide"/>
		<OnEvent function="BattlefieldMinimap_OnEvent"/>
		<OnUpdate function="BattlefieldMinimap_OnUpdate"/>
	</Scripts>
</Frame>
</Ui>