<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="TaxiFrame.lua"/>
	<Button name="TaxiButtonTemplate" hidden="true" parent="TaxiFrame" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMRIGHT"/>
		</Anchors>
		<Scripts>
            <OnEnter>
				TaxiNodeOnButtonEnter(self);
            </OnEnter>
            <OnLeave>
				GameTooltip:Hide();
            </OnLeave>
 			<OnClick>
				TakeTaxiNode(self:GetID());
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\TaxiFrame\UI-Taxi-Icon-Highlight">
			<Size x="32" y="32"/>
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>
	<Frame name="TaxiFrame" toplevel="true" movable="true" hidden="true" parent="UIParent" enableMouse="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="TaxiPortrait">
					<Size>
						<AbsDimension x="58" y="58"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="8" y="-9"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="TaxiMerchant" inherits="GameFontNormal">
					<Size>
						<AbsDimension x="250" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="5" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="TaxiMap">
					<Size>
						<AbsDimension x="316" y="352"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="-13" y="-75"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="TaxiCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="TaxiFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-29" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<TaxiRouteFrame name="TaxiRouteMap">
				<Size>
					<AbsDimension x="316" y="352"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="-13" y="-75"/>
						</Offset>
					</Anchor>
				</Anchors>
			</TaxiRouteFrame>
		</Frames>
		<Scripts>
			<OnLoad>
				TaxiFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				TaxiFrame_OnEvent(self, event, ...);
			</OnEvent>
			<OnShow>
				PlaySound("igMainMenuOpen");
				DrawOneHopLines();
			</OnShow>
			<OnHide>
				CloseTaxiMap();
				PlaySound("igMainMenuClose");
			</OnHide>
		</Scripts>
	</Frame>
</Ui>
