<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "cockpit.dtd">

<Resource type="aacockpit" name="outlands" version="0.1" author="turtle" category="cockpits/outlands">
	 <Cockpit version="0.2">
		<!--
			Outlands by Brian Hilmers (sine.wav) for Armagetron Advanced

			This cockpit is part of the Outlands moviepack. It does not include
			a distinct in-cam variation.

			Note: this version is not optimized for different aspect ratios.
			That code is incomplete at the time of this writing and needs to
			be fixed and merged. Ideally, the left and right graphics are
			bound to the corners of the screen and the center graphic is
			bound to the center.

			Document Outline:
			* Center Display Graphic
			*   Speed
			*   Friends
			*   Enemies
			* Rubber Gauge
			* Brake Gauge
			* Left Display Graphic
			*   Ping
			*   Framerate
			* Right Display Graphic
			*   Score
			*   Time
			* Mini Map
		-->

		<!--
			Center Display Graphic
			
			This is the set of diamonds in the middle showing
			Friends/Enemies and a numeric representation of
			your current speed.

			The Friends label will turn green when friends
			outnumber enemies.

			The speed label will turn yellow when your speed
			is the current fastest.

			The numerical representations of both Rubber and
			Brake are in their respective sections.
		-->
		<BarGauge camera="*" toggle="1">
			<DataSet>
				<AtomicData field="source" source="top_score" />
				<AtomicData field="minimum" source="0" />
				<AtomicData field="maximum" source="1" />
			</DataSet>
			<ShowCurrent value="false" />
			<ShowMinimum value="false" />
			<ShowMaximum value="false" />
			<Position x="0.0" y="-1.0" />
			<Size height="0.15" width="0.15" />
			<Background>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_hud_c" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Background>
			<Foreground>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_hud_c" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Foreground>
			<LineColor>
				<Solid>
					<Color r="0" g="0" b="0" alpha="0" />
				</Solid>
			</LineColor>
		</BarGauge>

		<!-- Speed Counter -->
		<Label camera="*" toggle="1">
			<DataSet id="currentspeed">
				<AtomicData source="player_speed" />
			</DataSet>
			<DataSet id="fastestspeed">
				<AtomicData source="fastest_speed" />
			</DataSet>
			<DataSet id="speedcolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<Position x="-0.024" y="-0.895" />
			<Size height="0.04" width="0.0" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="speedcolor" /><GameData data="currentspeed" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!-- Friends Label -->
		<Label camera="*" viewport="all" toggle="1">
			<DataSet id="friends">
				<AtomicData field="source" source="friends_alive" />
			</DataSet>
			<DataSet id="friendscolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<Position x="-0.22" y="-0.895" />
			<Size height="0.04" width="0.02" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="friendscolor" /><Text value="FRIENDS" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>
		<!-- Friends Counter -->
		<Label camera="*" viewport="all" toggle="1">
			<DataSet id="friends">
				<AtomicData field="source" source="friends_alive" />
			</DataSet>
			<DataSet id="friendscolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<Position x="-0.1" y="-0.895" />
			<Size height="0.04" width="0.02" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="friendscolor" /><GameData data="friends" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!-- Enemies Label -->
		<Label camera="*" viewport="all" toggle="1">
			<DataSet id="enemies">
				<AtomicData field="source" source="enemies_alive" />
			</DataSet>
			<DataSet id="enemiescolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<Position x="0.132" y="-0.895" />
			<Size height="0.04" width="0.02" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="enemiescolor" /><Text value="ENEMIES" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>
		<!-- Enemies Counter -->
		<Label camera="*" viewport="all" toggle="1">
			<DataSet id="enemies">
				<AtomicData field="source" source="enemies_alive" />
			</DataSet>
			<Position x="0.088" y="-0.895" />
			<Size height="0.04" width="0.02" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="enemies" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!--
			Rubber Gauge

			Located to the immediate left of the Center Display Graphic
			Also includes the label and numeric counter.
		-->
		<BarGauge camera="*" toggle="1">
			<DataSet>
				<AtomicData field="source" source="player_rubber" />
				<AtomicData field="minimum" source="0" />
				<AtomicData field="maximum" source="cycle_rubber" />
			</DataSet>
				<ShowCurrent value="false" />
				<ShowMinimum value="false" />
				<ShowMaximum value="false" />
				<Position x="-0.345" y="-1.005" />
				<Size height="0.075" width="0.3" />
				<Reverse value="true" />
			<Background>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_gauge_l" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Background>
			<Foreground>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_gauge_la" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Foreground>
			<LineColor>
				<Solid>
					<Color r="0" g="0" b="0" alpha="0" />
				</Solid>
			</LineColor>
		</BarGauge>
		<!-- Rubber Label -->
		<Label camera="*" toggle="1">
			<DataSet id="maxrubber">
				<AtomicData source="cycle_rubber" />
			</DataSet>
			<DataSet id="rubbercolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<Position x="-0.55" y="-0.94" />
			<Size height="0.04" width="0.0" />
			<Face>
				<Table>
				<Row>
				<Cell><GameData data="rubbercolor" /><Text value="/ " /><GameData data="maxrubber" /><Text value="  RUBBER" /></Cell>
				</Row>
				</Table>
			</Face>
		</Label>
		<!-- Rubber Counter -->
		<Label camera="*" toggle="1">
			<DataSet id="currentrubber">
				<AtomicData source="player_rubber" />
			</DataSet>
			<Position x="-0.6" y="-0.94" />
			<Size height="0.04" width="0.0" />
			<Face>
				<Table>
				<Row>
				<Cell><GameData data="currentrubber" /></Cell>
				</Row>
				</Table>
			</Face>
		</Label>

		<!--
			Brake Gauge

			Located to the immediate right of the Center Display Graphic
			Also includes the label and numeric counter.
		-->
		<BarGauge camera="*" toggle="1">
			<DataSet>
				<AtomicData field="source" source="player_brakes" />
				<AtomicData field="minimum" source="0" />
				<AtomicData field="maximum" source="1" />
			</DataSet>
				<ShowCurrent value="false" />
				<ShowMinimum value="false" />
				<ShowMaximum value="false" />
				<Position x="0.342" y="-1.005" />
				<Size height="0.075" width="0.3" />
				<Reverse value="true" />
			<Background>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_gauge_ra" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Background>
			<Foreground>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_gauge_r" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Foreground>
			<LineColor>
				<Solid>
					<Color r="0" g="0" b="0" alpha="0" />
				</Solid>
			</LineColor>
		</BarGauge>
		<!-- Brake Label -->
		<Label camera="*" toggle="1">
			<DataSet id="brakecolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<Position x="0.45" y="-0.94" />
			<Size height="0.04" width="0.0" />
			<Face>
				<Table>
				<Row>
				<Cell><GameData data="brakecolor" /><Text value="BRAKES" /></Cell>
				</Row>
				</Table>
			</Face>
		</Label>
		<!-- Brake Counter -->
		<Label camera="*" toggle="1">
			<DataSet id="currentbrakes">
				<AtomicData source="player_brakes" />
			</DataSet>
			<Position x="0.55" y="-0.94" />
			<Size height="0.04" width="0.0" />
			<Face>
				<Table>
				<Row>
				<Cell><GameData data="currentbrakes" /></Cell>
				</Row>
				</Table>
			</Face>
		</Label>

		<!--
			Left Display Graphic

			Includes Ping and Framerate
		-->
		<BarGauge camera="*" toggle="1">
			<DataSet>
				<AtomicData field="source" source="top_score" />
				<AtomicData field="minimum" source="0" />
				<AtomicData field="maximum" source="1" />
			</DataSet>
			<ShowCurrent value="false" />
			<ShowMinimum value="false" />
			<ShowMaximum value="false" />
			<Position x="-0.85" y="-1.01" />
			<Size height="0.125" width="0.25" />
			<Background>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_hud_l" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Background>
			<Foreground>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_hud_l" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Foreground>
			<LineColor>
				<Solid>
					<Color r="0" g="0" b="0" alpha="0" />
				</Solid>
			</LineColor>
		</BarGauge>
		<!-- Ping / FPS -->
		<Label camera="*" viewport="all" toggle="1">
			<DataSet id="leftcolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<DataSet id="ping">
				<AtomicData field="source" source="current_ping" />
			</DataSet>
			<DataSet id="fps">
				<AtomicData source="current_framerate" />
			</DataSet>
			<Position x="-0.97" y="-0.9" />
			<Size height="0.04" width="0.02" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="leftcolor" /><Text value="PING:" /></Cell>
						<Cell><GameData data="leftcolor" /><GameData data="ping" /></Cell>
					</Row>
					<Row>
						<Cell><GameData data="leftcolor" /><Text value="FPS:" /></Cell>
						<Cell><GameData data="leftcolor" /><GameData data="fps" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!--
			Right Display Graphic

			Includes Score and Time
			
			The score counter will change color when
			the player has the highest score.
		-->
		<BarGauge camera="*" toggle="1">
			<DataSet>
				<AtomicData field="source" source="top_score" />
				<AtomicData field="minimum" source="0" />
				<AtomicData field="maximum" source="1" />
			</DataSet>
			<ShowCurrent value="false" />
			<ShowMinimum value="false" />
			<ShowMaximum value="false" />
			<Position x="0.85" y="-1.01" />
			<Size height="0.125" width="0.25" />
			<Background>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_hud_r" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Background>
			<Foreground>
				<Image>
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_hud_r" extension="png" />
				</Image>
				<Solid>
					<Color r="1.0" g="1.0" b="1.0" alpha="0.7" />
				</Solid>
			</Foreground>
			<LineColor>
				<Solid>
					<Color r="0" g="0" b="0" alpha="0" />
				</Solid>
			</LineColor>
		</BarGauge>
		<!-- Score / Time -->
		<Label camera="*" viewport="all" toggle="1">
			<DataSet id="rightcolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<DataSet id="score">
				<AtomicData field="source" source="current_score" />
			</DataSet>
			<DataSet id="topscore">
				<AtomicData source="top_other_score" />
			</DataSet>
			<DataSet id="scorecolor">
				<AtomicData source="0xffffff" />
			</DataSet>
			<DataSet id="hours">
				<AtomicData source="current_hours12h" minwidth="2" fill="0" />
			</DataSet>
			<DataSet id="minutes">
				<AtomicData source="current_minutes" minwidth="2" fill="0" />
			</DataSet>
			<DataSet id="ampm">
				<Conditional field="source" lvalue="current_hours" rvalue="12" operator="le">
					<IfTrue>
						<AtomicData source="AM" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="PM" />
					</IfFalse>
				</Conditional>
			</DataSet>
			<Position x="0.8" y="-0.9" />
			<Size height="0.04" width="0.02" />
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="rightcolor" /><Text value="SCORE:" /></Cell>
						<Cell><GameData data="scorecolor" /><GameData data="score" /></Cell>
					</Row>
					<Row>
						<Cell><GameData data="rightcolor" /><Text value="TIME:" /></Cell>
						<Cell><GameData data="rightcolor" /><GameData data="hours" /><Text value=":" /><GameData data="minutes" /><!--Text value=" " /><GameData data="ampm" /--></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!--
			Mini Map
		-->
		<Map camera="*" toggle="2">
			<Position x="0.79" y="0.27" />
			<Size height="0.20" width="0.20" />
			<Background>
				<Image scale_x=".05" scale_y=".05" repeat="both">
					<Graphic author="turtle" category="cockpits/outlands" version="1" name="outlands_map" extension="png" />
				</Image>
				<Solid>
					<Color r="0.6" g="0.6" b="0.76" alpha=".1" />
				</Solid>
			</Background>
			<MapModes toggleKey="3">
				<MapMode mode="full" rotation="spawn" />
				<MapMode mode="closestZone" rotation="spawn" />
				<MapMode mode="cycle" rotation="camera" zoomFactor="3" clipMode="ellipse" />
				<MapMode mode="cycle" rotation="cycle" zoomFactor="3" />
				<MapMode mode="cycle" rotation="spawn" zoomFactor="4" />
				<MapMode mode="full" rotation="fixed" />
			</MapModes>
		</Map>

	 </Cockpit>
</Resource>
