<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "AATeam/cockpit-0.3.0.dtd">

<Resource type="aacockpit" name="essential" version="0.0.6" author="rain" category="">
	<Cockpit version="0.0.1">

		<!-- Rubber Meter -->
		<BarGauge camera="all">
			<DataSet>
				<AtomicData field="source" source="player_rubber" />
				<AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="cycle_rubber" />
			</DataSet>
			<Position x="0" y="-1" />
			<Size height="0.05" width="0.999" />
			<Caption location="off">
				<Text value="Rubber Bar" />
			</Caption>
			<ShowCurrent value="false" />
			<ShowMaximum value="false" />
			<ShowMinimum value="false" />
			<Background>
				<Solid>
					<Color r="0." g="0." b="0." alpha=".1" />
				</Solid>
			</Background>
			<Foreground>
				<Gradient orientation="value">
					<Color r="0." g="1." b="0." alpha=".6" at="0." />
					<Color r="0." g="1." b="0." alpha=".6" at=".3" />
					<Color r="1." g="1." b="0." alpha=".6" at=".6" />
					<Color r="1." g="0." b="0." alpha=".6" at=".8" />
					<Color r="1." g="0." b="0." alpha=".6" at="1." />
				</Gradient>
			</Foreground>
		</BarGauge>
		<Label camera="all">
			<DataSet id="rubber">
				<AtomicData field="source" source="player_rubber" />
			</DataSet>
			<Position x="-0.025" y="-0.85" />
			<Size height="0.07" width="0.034" /> <!-- Size would be the font size in this case -->
			<Caption location="off">
				<Text value="Rubber Label" />
			</Caption>
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="rubber" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>
		
		<!-- Brakes Meter -->
		<Label camera="all" toggle="1" toggleSticky="true" toggleDefault="on">
			<DataSet id="brakes">
				<AtomicData field="source" source="player_brakes" />
			</DataSet>
			<DataSet id="brakescolour">
				<AtomicData field="source" source="0xdddddd" />
			</DataSet>
			<Position x="-0.975" y="-0.87" />
			<Size height="0.05" width="0.04" /> <!-- Size would be the font size in this case -->
			<Caption location="off">
				<Text value="Brakes Label" />
			</Caption>
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="brakescolour" /><GameData data="brakes" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!-- Speed Meter -->
		<Label camera="all" toggle="1" toggleSticky="true" toggleDefault="on">
			<DataSet id="speed">
				<AtomicData field="source" source="player_speed" />
			</DataSet>
			<DataSet id="speedcolour">
				<AtomicData field="source" source="0xdddddd" />
			</DataSet>
			<Position x="0.93" y="-0.87" />
			<Size height="0.05" width="0.04" /> <!-- Size would be the font size in this case -->
			<Caption location="off">
				<Text value="Speed Label" />
			</Caption>
			<Face>
				<Table>
					<Row>
						<Cell><GameData data="speedcolour" /><GameData data="speed" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>

		<!-- Status (Time, Players Alive) -->
		<Label camera="all" toggle="2" toggleSticky="true" toggleDefault="on">
			<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>
			<DataSet id="friends">
				<AtomicData field="source" source="friends_alive" />
			</DataSet>
			<DataSet id="friendscolor">
				<Conditional field="source" lvalue="friends_alive" rvalue="0" operator="eq">
					<IfTrue>
						<AtomicData source="0xffffff" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="0x7fff7f" />
					</IfFalse>
				</Conditional>
			</DataSet>
			<DataSet id="enemies">
				<AtomicData field="source" source="enemies_alive" />
			</DataSet>
			<DataSet id="enemiescolor">
				<Conditional field="source" lvalue="enemies_alive" rvalue="0" operator="eq">
					<IfTrue>
						<AtomicData source="0xffffff" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="0xff7f7f" />
					</IfFalse>
				</Conditional>
			</DataSet>
			<Position x="0.79" y="0.5" />
			<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="Friends:" /></Cell>
						<Cell><GameData data="friendscolor" /><GameData data="friends" /></Cell>
					</Row>
					<Row>
						<Cell><Text value="Enemies:" /></Cell>
						<Cell><GameData data="enemiescolor" /><GameData data="enemies" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>
		
		<!-- Debugging Tool-Kit (Time, Players Alive, Running Time, Position, Framerate, Ping) -->
		<Label camera="all" toggle="2" toggleSticky="true" toggleDefault="off">
			<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>
			<DataSet id="friends">
				<AtomicData field="source" source="friends_alive" />
			</DataSet>
			<DataSet id="friendscolor">
				<Conditional field="source" lvalue="friends_alive" rvalue="0" operator="eq">
					<IfTrue>
						<AtomicData source="0xffffff" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="0x7fff7f" />
					</IfFalse>
				</Conditional>
			</DataSet>
			<DataSet id="enemies">
				<AtomicData field="source" source="enemies_alive" />
			</DataSet>
			<DataSet id="enemiescolor">
				<Conditional field="source" lvalue="enemies_alive" rvalue="0" operator="eq">
					<IfTrue>
						<AtomicData source="0xffffff" />
					</IfTrue>
					<IfFalse>
						<AtomicData source="0xff7f7f" />
					</IfFalse>
				</Conditional>
			</DataSet>
			<DataSet id="runningtime">
				<AtomicData field="source" source="time_since_start" />
			</DataSet>
			<DataSet id="xpos">
				<AtomicData field="source" source="current_pos_x" />
			</DataSet>
			<DataSet id="ypos">
				<AtomicData field="source" source="current_pos_y" />
			</DataSet>
			<DataSet id="fps">
				<AtomicData field="source" source="current_framerate" />
			</DataSet>
			<DataSet id="ping">
				<AtomicData field="source" source="current_ping" />
			</DataSet>
			<Position x="0.79" y="0.5" />
			<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="Friends:" /></Cell>
						<Cell><GameData data="friendscolor" /><GameData data="friends" /></Cell>
					</Row>
					<Row>
						<Cell><Text value="Enemies:" /></Cell>
						<Cell><GameData data="enemiescolor" /><GameData data="enemies" /></Cell>
					</Row>
					<Row>
						<Cell><Text value="Operating:" /></Cell>
						<Cell><GameData data="runningtime" /><Text value=" s" /></Cell>
                    </Row>
					<Row>
						<Cell><Text value="Abscissa:" /></Cell>
						<Cell><GameData data="xpos" /></Cell>
					</Row>
					<Row>
						<Cell><Text value="Ordinate:" /></Cell>
						<Cell><GameData data="ypos" /></Cell>
					</Row>
					<Row>
						<Cell><Text value="Framerate:" /></Cell>
						<Cell><GameData data="fps" /><Text value=" fps" /></Cell>
					</Row>
					<Row>
						<Cell><Text value="Ping:" /></Cell>
						<Cell><GameData data="ping" /><Text value=" ms" /></Cell>
					</Row>
				</Table>
			</Face>
		</Label>
						
	</Cockpit>
</Resource>


