<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "AATeam/cockpit-0.3.0.dtd">

<Resource type="aacockpit" name="essentialremix" version="0.3.1" author="flex" category="">
<Cockpit version="0.3.0">

<!-- PLAYER RUBBER METER START -->
<BarGauge>
	<DataSet>
		<AtomicData field="source" source="player_rubber" />
		<AtomicData field="maximum" source="cycle_rubber" />
		<AtomicData field="minimum" source="0" />
	</DataSet>
	<Position x="0" y="-0.97" />
	<Size height="0.01" width="0.38" />
	<ShowCurrent value="true" />
	<ShowMaximum value="false" />
	<ShowMinimum value="false" />
	<Background>
		<Gradient orientation="value">
			<Color r="1." g="1." b="1." alpha=".2" at="0." />
			<Color r="1." g="1." b="1." alpha=".2" at="1." />
		</Gradient>
	</Background>
	<Foreground>
		<Gradient orientation="value">
			<Color r="0." g="1." b="0." alpha=".7" at="0." />
			<Color r="0." g="1." b="0." alpha=".7" at=".3" />
			<Color r="1." g="1." b="0." alpha=".7" at=".6" />
			<Color r="1." g="0." b="0." alpha=".7" at=".8" />
			<Color r="1." g="0." b="0." alpha=".7" at="1." />
		</Gradient>
	</Foreground>
</BarGauge>
<!-- PLAYER RUBBER METER END -->

<!-- PLAYER SPEED METER START -->
<BarGauge>
	<DataSet>
		<AtomicData field="source" source="player_speed" />
		<AtomicData field="maximum" source="max_speed" />
		<AtomicData field="minimum" source="0" />
	</DataSet>
	<Position x="-0.55" y="-0.97" />
	<Size height="0.01" width="0.15" />
	<ShowCurrent value="true" />
	<ShowMaximum value="false" />
	<ShowMinimum value="false" />
	<Reverse value="true"/>
	<Background>
		<Gradient orientation="value">
		<Color r="0." g="0." b="1." alpha=".2" at="1." />
		<Color r="0." g="0." b="1." alpha=".7" at="0." />
	</Gradient>
	</Background>
	<Foreground>
		<Solid>
			<Color r="0." g="0." b="1." alpha=".7" at="1." />
		</Solid>
	</Foreground>
</BarGauge>
<!-- PLAYER SPEED METER END -->

<!-- PLAYER BRAKES METER START -->
<BarGauge>
	<DataSet>
		<AtomicData field="source" source="player_brakes" />
   		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="1" />
	</DataSet>
	<Position x="0.55" y="-0.97" />
	<Size height="0.01" width="0.15" />
	<ShowCurrent value="true" />
	<ShowMaximum value="false" />
	<ShowMinimum value="false" />
	<Reverse value="true"/>
	<Background>
		<Gradient orientation="value">
			<Color r="0." g="0." b="1." alpha=".7" at="0." />
			<Color r="0." g="0." b="1." alpha=".7" at="1." />
		</Gradient>
	</Background>
	<Foreground>
		<Solid>
			<Color r="0." g="0." b="1." alpha=".2" at="0." />
		</Solid>
	</Foreground>
</BarGauge>
<!-- PLAYER BRAKES METER END -->

<!-- ENEMIES AND FRIENDS LABEL START -->
<Label>
	<DataSet id="enemies">
		<AtomicData field="source" source="enemies_alive" />
	</DataSet>
	<DataSet id="friends">
		<AtomicData field="source" source="friends_alive" />
	</DataSet>
	<DataSet id="enemiescolour">
		<Conditional field="source" lvalue="enemies_alive" rvalue="friends_alive" operator="eq">
			<IfTrue>
				<AtomicData source="0xffffff" />
			</IfTrue>
			<IfFalse>
				<Conditional lvalue="enemies_alive" rvalue="friends_alive" operator="gt">
					<IfTrue>
						<AtomicData source="0x00ff66" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="0xff0000" />
					</IfFalse>
				</Conditional>
			</IfFalse>
		</Conditional>
	</DataSet>
	<DataSet id="friendscolour">
		<Conditional field="source" lvalue="enemies_alive" rvalue="friends_alive" operator="eq">
			<IfTrue>
				<AtomicData source="0xffffff" />
			</IfTrue>
			<IfFalse>
				<Conditional lvalue="enemies_alive" rvalue="friends_alive" operator="gt">
					<IfTrue>
						<AtomicData source="0xff0000" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="0x00ff66" />
					</IfFalse>
				</Conditional>
			</IfFalse>
		</Conditional>
	</DataSet>
	<Position x="-.98" y="-.88" />
	<Size height="0.04" width="0.02" />
	<Caption location="off">
		<Text value="Player Status" />
	</Caption>
	<Face>
			<Table>
			<Row>
				<Cell><GameData data="enemiescolour" /><Text value="Enemies:" /></Cell>
				<Cell><GameData data="enemiescolour" /><GameData data="enemies" /></Cell>
			</Row>
			<Row>
				<Cell><GameData data="friendscolour" /><Text value="Friends:" /></Cell>
				<Cell><GameData data="friendscolour" /><GameData data="friends" /></Cell>
			</Row>
		</Table>
	</Face>
</Label>
<!-- ENEMIES AND FRIENDS LABEL END -->

<!-- TIME AND FPS LABELS START -->
<Label>
	<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="fastest">
		<AtomicData source="fastest_speed_round" />
	</DataSet>
	<DataSet id="fastestname">
		<AtomicData source="fastest_name_round" />
	</DataSet>
	<DataSet id="fastestmaxspeed">
	<AtomicData source="max_speed" />
	</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>
	<DataSet id="fps">
		<AtomicData source="current_framerate" />
	</DataSet>
		<Position x="0.6" y="0.40" />
		<Size height="0.04" width="0.02" />
	<Face>
		<Table>
			<Row>
				<Cell>
					<Text value="Time:" />
				</Cell>
				<Cell>
					<GameData data="hours" /><Text value=":" /><GameData data="minutes" /><Text value=" " /><GameData data="ampm" />
				</Cell>
			</Row>
			<Row>
				<Cell>
					<Text value="Framerate:" />
				</Cell>
				<Cell>
					<GameData data="fps" /><Text value=" FPS" />
				</Cell>
			</Row>
			<Row>
				<Cell>
					<Text value="Fastest:" />
				</Cell>
				<Cell>
					<GameData data="fastestname" />
				</Cell>
				<Cell>
					<Text value="(" /><GameData data="fastest" /><Text value=" / " /><GameData data="fastestmaxspeed" /><Text value=")" />
				</Cell>
			</Row>
		</Table>
	</Face>
</Label>
<!-- TIME AND FPS LABELS END -->

</Cockpit>
</Resource>