<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="VehicleMenuBar.lua"/>
	<CheckButton name="VehicleActionButtonTemplate" inherits="BonusActionButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="60" y="60"/>
		</Size>
		<Scripts>
			<OnLoad>	<!--Taken directly from BonusActionBarFrame.xml. Added self.alwaysBonus (bug 151189) -->
				self.isBonus = 1;
				self.alwaysBonus = 1;
				ActionButton_OnLoad(self);
				self:RegisterEvent("UPDATE_BONUS_ACTIONBAR");
				self:SetFrameLevel(self:GetFrameLevel() + 2);
				local cooldown = getglobal(self:GetName().."Cooldown");
				cooldown:SetFrameLevel(cooldown:GetFrameLevel() + 2);
			</OnLoad>
		</Scripts>
	</CheckButton>
	<Button name="VehicleSeatIndicatorButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="25" y="25"/>
		</Size>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
				_G[self:GetName().."Highlight"]:SetAlpha(0.5);
			</OnLoad>
			<OnClick>
				VehicleSeatIndicatorButton_OnClick(self);
			</OnClick>
			<OnEnter>
				VehicleSeatIndicatorButton_OnEnter(self);
			</OnEnter>
			<OnLeave>
				VehicleSeatIndicatorButton_OnLeave(self);
			</OnLeave>
		</Scripts>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" file="Interface\Vehicles\VehicleSeats">
					<TexCoords left="0.0" right="0.1953125" top="0.0" bottom="0.78125"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentPlayerIcon" file="Interface\Vehicles\VehicleSeats">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.390625" right="0.4609375" top="0.0" bottom="0.28125"/>
				</Texture>
				<Texture name="$parentAllyIcon" file="Interface\Vehicles\VehicleSeats">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.390625" right="0.4609375" top="0.3125" bottom="0.59375"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentPulseTexture" alphaMode="ADD" file="Interface\Vehicles\VehicleSeats" setAllPoints="false" hidden="true">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="25" y="25"/>
					</Size>
					<TexCoords left="0.1875" right="0.3828125" top="0.0" bottom="0.78125"/>
					<Color r="0.2" g="0.4" b="0.8"/>
				</Texture>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture name="$parentHighlight" file="Interface\Vehicles\VehicleSeats" >
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.390625" right="0.4609375" top="0.0" bottom="0.28125"/>
				</Texture>
			</Layer>
		</Layers>
	</Button>
	<Frame name="VehicleSeatIndicator" toplevel="true" enableMouse="false" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="128" y="128"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="MinimapCluster" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="40" y="15"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackgroundTexture"/>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentButton1" inherits="VehicleSeatIndicatorButtonTemplate" id="1"/>
			<Button name="$parentButton2" inherits="VehicleSeatIndicatorButtonTemplate" id="2"/>
			<Button name="$parentButton3" inherits="VehicleSeatIndicatorButtonTemplate" id="3"/>
			<Button name="$parentButton4" inherits="VehicleSeatIndicatorButtonTemplate" id="4"/>
		</Frames>
		<Scripts>
			<OnLoad>
				VehicleSeatIndicator_OnLoad(self);
			</OnLoad>
			<OnEvent>
				VehicleSeatIndicator_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>
	<Frame name="VehicleMenuBar" toplevel="true" enableMouse="false" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="970" y="53"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOM"/>
		</Anchors>
		<Frames>
			<Button name="VehicleMenuBarPitchUpButton">
				<Size>
					<AbsDimension x="40" y="40"/>
				</Size>
				<Scripts>
					<OnMouseDown>
						VehicleAimUpStart();
					</OnMouseDown>
					<OnMouseUp>
						VehicleAimUpStop();
					</OnMouseUp>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, AIM_UP, 1.0, 1.0, 1.0, nil);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture/>
				<PushedTexture/>
				<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
					<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
				</HighlightTexture>
			</Button>
			<Button name="VehicleMenuBarPitchDownButton">
				<Size>
					<AbsDimension x="40" y="40"/>
				</Size>
				<Scripts>
					<OnMouseDown>
						VehicleAimDownStart();
					</OnMouseDown>
					<OnMouseUp>
						VehicleAimDownStop();
					</OnMouseUp>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, AIM_DOWN, 1.0, 1.0, 1.0, nil);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture/>
				<PushedTexture/>
				<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
					<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
				</HighlightTexture>
			</Button>
			<Button name="VehicleMenuBarLeaveButton">
				<Size>
					<AbsDimension x="40" y="40"/>
				</Size>
				<Scripts>
					<OnClick>
						VehicleExit();
					</OnClick>
					<OnEnter>
						GameTooltip_AddNewbieTip(self, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture/>
				<PushedTexture/>
				<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
					<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
				</HighlightTexture>
			</Button>
			<Frame name="VehicleMenuBarActionButtonFrame" frameStrata="HIGH" enableMouse="false" toplevel="true">
				<Size>
					<AbsDimension x="1" y="1"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"/>
				</Anchors>
				<Frames>
					<CheckButton name="VehicleMenuBarActionButton1" inherits="VehicleActionButtonTemplate" id="1">
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="VehicleMenuBarActionButton2" inherits="VehicleActionButtonTemplate" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="VehicleMenuBarActionButton3" inherits="VehicleActionButtonTemplate" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="VehicleMenuBarActionButton4" inherits="VehicleActionButtonTemplate" id="4">
						<Anchors>
							<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton3" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="VehicleMenuBarActionButton5" inherits="VehicleActionButtonTemplate" id="5">
						<Anchors>
							<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton4" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="VehicleMenuBarActionButton6" inherits="VehicleActionButtonTemplate" id="6">
						<Anchors>
							<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton5" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
				</Frames>
			</Frame>
			<Button name="VehicleMenuBarPitchSlider" enableMouse="true" frameStrata="LOW">
				<Size>
					<AbsDimension x="31" y="78"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="192" y="5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBG" file="Interface\Vehicles\UI-Vehicles-Endcap">
							<TexCoords left="0.46875" right="0.50390625" top="0.31640625" bottom="0.62109375"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="$parentOverlayThing" file="Interface\Vehicles\UI-Vehicles-Endcap">
							<TexCoords left="0.38671875" right="0.46484375" top="0.31640625" bottom="0.62109375"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentMarker" file="Interface\Vehicles\UI-Vehicles-Endcap">
							<Size>
								<AbsDimension x="30" y="15"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.46875" right="0.50390625" top="0.45" bottom="0.55"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						VehicleMenuBarPitch_OnLoad(self);
					</OnLoad>
					<OnEvent>
						VehicleMenuBarPitch_OnEvent(self, event, ...);
					</OnEvent>
					<OnClick>
						VehicleMenuBarPitch_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="VehicleMenuBarArtFrame">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="VehicleMenuBar"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="VehicleMenuBar"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBACKGROUND1">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<Texture name="$parentBORDER1">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBORDER2">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBORDER3">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBORDER4">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBORDER5">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBORDER6">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentBORDER7">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentARTWORK1">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK2">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK3">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK4">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK5">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK6">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK7">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK8">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK9">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentARTWORK10">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="$parentOVERLAY1">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentOVERLAY2">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
						<Texture name="$parentOVERLAY3">
							<Anchors>
								<Anchor point="BOTTOM"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						
					</OnLoad>
					<OnEvent>
						
					</OnEvent>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				RaiseFrameLevel(VehicleMenuBarArtFrame);
				VehicleMenuBar_OnLoad(self);
			</OnLoad>
		</Scripts>
	</Frame>
</Ui>
