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

<Resource type="aacockpit" name="essentialremix" version="0.3.7" author="flex" category="cockpits">
<Cockpit version="0.3.0">

<!-- toggle key 1 = toggle between Fastest/fps & time/max speed/max tubber (default: on) -->
<!-- toggle key 2 = show/hide minimap (default: off). -->
<!-- toggle key 3 = none -->
<!-- toggle key 4 = none -->
<!-- toggle key 5 = none -->

<!-- rubber meter -->
<BarGauge camera="all">
	<Position x="0" y="-1" />
	<Size height="0.03" width="0.45" />
	<ShowCurrent value="true" />
	<ShowMaximum value="false" />
	<ShowMinimum value="false" />
	<DataSet>
		<AtomicData field="source" source="player_rubber" />
		<AtomicData field="maximum" source="cycle_rubber" />
		<AtomicData field="minimum" source="0" />
	</DataSet>
	<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>
<!-- rubber meter -->

<!-- speed meter -->
<BarGauge camera="all">
	<Position x="-0.70" y="-1" />
	<Size height="0.02" width="0.15" />
	<ShowCurrent value="true" />
	<ShowMaximum value="false" />
	<ShowMinimum value="false" />
	<Reverse value="true"/>
	<DataSet>
		<AtomicData field="source" source="player_speed" />
		<AtomicData field="maximum" source="max_speed" />
		<AtomicData field="minimum" source="0" />
	</DataSet>
	<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>
<!-- speed meter -->

<!-- brake meter -->
<BarGauge camera="all">
	<Position x="0.70" y="-1" />
	<Size height="0.02" width="0.15" />
	<ShowCurrent value="true" />
	<ShowMaximum value="false" />
	<ShowMinimum value="false" />
	<Reverse value="true"/>
	<DataSet>
		<AtomicData field="source" source="player_brakes" />
   		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="1" />
	</DataSet>
	<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>
<!-- brake meter -->

<!-- label: time & fps -->
<Label camera="all" viewport="top" toggle="1" toggleSticky="true" toggleDefault="on">
	<Position x="0.85" y="0.50" />
	<Size height="0.04" width="0.02" />
	<DataSet id="hours">
		<AtomicData source="current_hours" minwidth="2" fill="0" />
	</DataSet>
	<DataSet id="minutes">
                <AtomicData source="current_minutes" minwidth="2" fill="0" />
	</DataSet>
	<DataSet id="FPS">
		<AtomicData source="current_framerate" />
	</DataSet>
	<Face>
		<Table>
			<Row>
				<Cell>
					<GameData data="hours" />
					<Text value=":" />
					<GameData data="minutes" />
				</Cell>
			</Row>
			<Row>
				<Cell>
					<GameData data="FPS" />
					<Text value=" FPS" />
				</Cell>
			</Row>
		</Table>
	</Face>
</Label>
<!-- label: time & fps -->

<!-- label: fastest player & max rubber -->
<Label camera="all" viewport="top" toggle="1" toggleSticky="true" toggleDefault="off">
	<Position x="0.65" y="0.50" />
	<Size height="0.04" width="0.02" />
	<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="maxrubber">
		<AtomicData source="cycle_rubber" />
	</DataSet>
	<Face>
		<Table>
			<Row>
				<Cell>
					<GameData data="fastestname" />
				</Cell>
				<Cell>
					<GameData data="fastest" />
					<Text value="/" />
					<GameData data="fastestmaxspeed" />
				</Cell>
			</Row>
			<Row>
				<Cell>
					<Text value="Max Rubber:" />
				</Cell>
				<Cell>
					<GameData data="maxrubber" />
				</Cell>
			</Row>
		</Table>
	</Face>
</Label>
<!-- label: fastest player & max rubber -->

<!-- label: friends/enemies -->
<Label camera="all" toggle="0" toggleSticky="true" toggleDefault="on">
	<Position x="-0.99" y="-0.91" />
	<Size height="0.04" width="0.02" />
	<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>
	<Face>
		<Table>
			<Row>
				<Cell>
					<GameData data="enemiescolour" />
					<Text value="E:" />
				</Cell>
				<Cell>
					<GameData data="enemiescolour" />
					<GameData data="enemies" />
				</Cell>
			</Row>
			<Row>
				<Cell>
					<GameData data="friendscolour" />
					<Text value="F:" />
				</Cell>
				<Cell>
					<GameData data="friendscolour" />
					<GameData data="friends" />
				</Cell>
			</Row>
		</Table>
	</Face>
</Label>
<!-- label: friends/enemies -->

<!-- full map -->
<Map camera="all" toggle="2" toggleSticky="true" toggleDefault="off">
	<Position x="-0.65" y="-0.60" />
	<Size height="0.20" width="0.20" />
	<Background>
		<Solid>
			<Color r="0" g="0" b="0" alpha="0" />
		</Solid>
	</Background>
	<MapModes>
		<MapMode mode="full" rotation="spawn" />
	</MapModes>
</Map>
<!-- full map -->

</Cockpit> 
</Resource>