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

<Resource type="aacockpit" name="chippit" version="0.0.6" author="chipdip" category="cockpit">
    <Cockpit version="0.0.6">
	<WidgetTemplate id="RubberBackground">
            <Background>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".05" at="0." />
                    <Color r="0." g="1." b="0." alpha=".1" at=".3" />
                    <Color r="1." g="1." b="1." alpha=".2" at=".4" />
                    <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=".4" at="0." />
                    <Color r="0." g="1." b="0." alpha=".4" at=".3" />
                    <Color r="1." g="1." b="0." alpha=".4" at=".6" />
                    <Color r="1." g="0." b="0." alpha=".4" at=".8" />
                    <Color r="1." g="0." b="0." alpha=".4" at="1." />
                </Gradient>
            </Foreground>
	</WidgetTemplate>
	<WidgetTemplate id="BigText">
            <Size height="0.04" width="0.02" />
	</WidgetTemplate>
	<WidgetTemplate id="SmallText">
            <Size height="0.035" width="0.017" />
	</WidgetTemplate>
        <Rectangle viewport="top" toggle="2" toggleDefault="off" toggleSticky="true">
            <Position x="0" y="0" />
            <Size height="1" width="1" />
            <Background>
                <Solid>
                    <Color r="0." g="0." b="0." alpha=".7" />
                </Solid>
            </Background>
        </Rectangle>
        <VerticalBarGauge camera="^in" usetemplate="RubberBackground">
            <DataSet>
		<AtomicData field="source" source="player_rubber" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="cycle_rubber" />
	    </DataSet>
            <Position x="-0.85" y="-0.23" />
            <Size height=".7" width=".05" />
            <ShowCurrent value="true" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Rubber" />
            </Caption>
        </VerticalBarGauge>
        <VerticalBarGauge camera="^in">
            <DataSet>
		<AtomicData field="source" source="player_brakes" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="1" />
	    </DataSet>
            <Position x="-0.95" y="-0.23" />
            <Size height=".7" width=".05" />
            <ShowCurrent value="true" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Brakes" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha=".2" at="0." />
                    <Color r="1." g="0." b="0." alpha=".2" at=".1" />
                    <Color r="1." g="1." b="1." alpha=".1" at=".2" />
                    <Color r="1." g="1." b="1." alpha=".1" at="1." />
                </Gradient>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".4" at="1." />
                    <Color r="0." g="1." b="0." alpha=".4" at=".7" />
                    <Color r="1." g="1." b="0." alpha=".4" at=".4" />
                    <Color r="1." g="0." b="0." alpha=".4" at=".2" />
                    <Color r="1." g="0." b="0." alpha=".4" at="0." />
                </Gradient>
            </Foreground>
        </VerticalBarGauge>
        <VerticalBarGauge camera="^in">
            <DataSet>
		<Math lvalue="1." type="quotient">
		    <RValue>
			<Math type="sum" lvalue="1." rvalue="time_to_impact_front" />
		    </RValue>
		</Math>
		<AtomicData field="minimum" source=".2" />
		<AtomicData field="maximum" source="1." />
	    </DataSet>
            <Position x="0.933" y="-.5" />
            <Size height=".5" width=".067" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Crash" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".05" at="0." />
                    <Color r="0." g="1." b="0." alpha=".1" at=".3" />
                    <Color r="1." g="1." b="1." alpha=".2" at=".4" />
                    <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=".4" at="0." />
                    <Color r="0." g="1." b="0." alpha=".4" at=".3" />
                    <Color r="1." g="1." b="0." alpha=".4" at=".6" />
                    <Color r="1." g="0." b="0." alpha=".4" at=".8" />
                    <Color r="1." g="0." b="0." alpha=".4" at="1." />
                </Gradient>
            </Foreground>
        </VerticalBarGauge>
	<Label camera="*" usetemplate="SmallText">
            <DataSet id="time">
		<AtomicData field="source" source="time_to_impact_front" />
	    </DataSet>
            <Position x="0.91" y="-.48" />
            <Caption location="top">
                <Text value="impact" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="time" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
        <VerticalBarGauge camera="^in">
            <DataSet>
		<AtomicData field="source" source="player_speed" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="fastest_speed" />
	    </DataSet>
            <Position x="0.8" y="-.5" />
            <Size height=".5" width=".067" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Crash" />
            </Caption>
            <Background>
		<Solid>
		    <Color r="1." g="1." b="1." alpha=".1" />
		</Solid>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".4" at="1." />
                    <Color r="1." g="1." b="0." alpha=".4" at=".9" />
                    <Color r="1." g="0." b="0." alpha=".4" at=".7" />
                    <Color r="1." g="0." b="0." alpha=".4" at="0." />
                </Gradient>
            </Foreground>
        </VerticalBarGauge>
	<Label camera="*" usetemplate="SmallText">
            <DataSet id="speed">
		<AtomicData field="source" source="player_speed" />
	    </DataSet>
            <DataSet id="fastest">
		<AtomicData field="source" source="fastest_speed" />
	    </DataSet>
            <DataSet id="name">
		<AtomicData field="source" source="fastest_name" />
	    </DataSet>
            <Position x="0.74" y="-.41" />
            <Caption location="off">
                <Text value="Speed" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="You" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="speed" /></Cell>
                    </Row>
                    <Row>
                        <Cell><Text value="----" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="name" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="fastest" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
	<Label camera="*" usetemplate="SmallText">
            <DataSet id="fastest">
		<AtomicData field="source" source="fastest_speed_round" />
	    </DataSet>
            <DataSet id="name">
		<AtomicData field="source" source="fastest_name_round" />
	    </DataSet>
            <Position x="-.99" y="-.95" />
            <Caption location="off">
                <Text value="Speed" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Fastest: " /><GameData data="name" /><Text value=" (" /><GameData data="fastest" /><Text value=")" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

        <Rectangle camera="^in">
            <DataSet>
		<AtomicData field="source" source="friends_alive" />
		<AtomicData field="minimum" source="0." />
		<AtomicData field="maximum" source="10." />
	    </DataSet>
            <Position x=".93" y="0.24" />
            <Size height="0.04" width="0.05" />
            <Background>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha="1." at="0." />
                    <Color r="1." g="0." b="0." alpha=".5" at=".1" />
                    <Color r="0." g="1." b="0." alpha=".2" at=".2" />
                    <Color r="0." g="1." b="0." alpha=".2" at="1." />
                </Gradient>
            </Background>
        </Rectangle>
        <Rectangle camera="^in">
            <DataSet>
		<AtomicData field="source" source="enemies_alive" />
		<AtomicData field="minimum" source="0." />
		<AtomicData field="maximum" source="10." />
	    </DataSet>
            <Position x=".83" y="0.24" />
            <Size height="0.04" width="0.05" />
            <Background>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha="1." at="0." />
                    <Color r="0." g="1." b="0." alpha=".5" at=".1" />
                    <Color r="1." g="0." b="0." alpha=".2" at=".2" />
                    <Color r="1." g="0." b="0." alpha=".2" at="1." />
                </Gradient>
            </Background>
        </Rectangle>
        <!-- Example configuration for a Enemies: x Mates: y display -->
	<Label camera="*" usetemplate="SmallText">
            <DataSet id="friends">
		<AtomicData field="source" source="friends_alive" />
	    </DataSet>
            <Position x="0.92" y="0.245" />
            <Caption location="top">
                <Text value="Good" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="friends" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
	<Label camera="*" usetemplate="SmallText">
            <DataSet id="enemies">
		<AtomicData field="source" source="enemies_alive" />
	    </DataSet>
            <Position x="0.82" y="0.245" />
            <Caption location="top">
                <Text value="Bad" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="enemies" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
        <Rectangle camera="^in">
            <DataSet>
		<Conditional field="source" lvalue="enemies_alive" rvalue="0" operator="eq">
		    <IfTrue>
			<AtomicData source="2" />
		    </IfTrue>
		    <IfFalse>
			<Math lvalue="friends_alive" rvalue="enemies_alive" type="quotient" />
		    </IfFalse>
		</Conditional>
		<AtomicData field="minimum" source="0." />
		<AtomicData field="maximum" source="2." />
	    </DataSet>
            <Position x=".88" y="0.305" />
            <Size height="0.025" width="0.1" />
            <Background>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha=".7" at="0." />
                    <Color r="1." g="1." b="0." alpha=".7" at=".5" />
                    <Color r="0." g="1." b="0." alpha=".7" at="1." />
                </Gradient>
            </Background>
        </Rectangle>
        <Rectangle camera="^in">
            <DataSet>
		<AtomicData field="source" source="current_ping" />
		<AtomicData field="minimum" source="0." />
		<AtomicData field="maximum" source="1000." />
	    </DataSet>
            <Position x=".88" y="0.175" />
            <Size height="0.025" width="0.1" />
            <Background>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".7" at="0." />
                    <Color r="0." g="1." b="0." alpha=".7" at=".1" />
                    <Color r="1." g="1." b="0." alpha=".7" at=".2" />
                    <Color r="1." g="0." b="0." alpha=".2" at=".3" />
                    <Color r="1." g="0." b="0." alpha=".2" at="1." />
                </Gradient>
            </Background>
        </Rectangle>
	<Label camera="*" usetemplate="SmallText">
            <DataSet id="ping">
		<AtomicData field="source" source="current_ping" />
	    </DataSet>
            <Position x="0.79" y="0.198" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Ping:" /></Cell>
                        <Cell><GameData data="ping" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
	<Label camera="*" usetemplate="BigText">
            <DataSet id="myscore">
		<AtomicData source="current_score" />
	    </DataSet>
            <DataSet id="topscore">
		<AtomicData source="top_score" />
	    </DataSet>
            <DataSet id="myscoreteam">
		<AtomicData source="current_score_team" />
	    </DataSet>
            <DataSet id="topscoreteam">
		<AtomicData source="top_score_team" />
	    </DataSet>
            <Position x=".81" y="0.12" />
            <Caption location="top">
                <Text value="Scores" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Me:" /></Cell>
                        <Cell><Text value="Top:" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="myscore" /></Cell>
                        <Cell><GameData data="topscore" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="myscoreteam" /></Cell>
                        <Cell><GameData data="topscoreteam" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
	<Label camera="*" viewport="top" usetemplate="BigText">
            <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="fps">
		<AtomicData source="current_framerate" />
	    </DataSet>
            <DataSet id="seconds">
		<AtomicData source="time_since_start" />
	    </DataSet>
            <Position x="0.78" y="0.498" />
            <Caption location="off">
                <Text value="Time/Fps/Timestamp" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="hours" /><Text value=":" /><GameData data="minutes" /><Text value=" " /><GameData data="ampm" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="fps" /><Text value=" FPS" /></Cell>
                    </Row>
                    <Row>
                        <Cell><Text value="" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="seconds" /><Text value=" s" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
        <BarGauge camera="*" viewport="top">
            <DataSet>
		<AtomicData field="source" source="current_framerate" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="50" />
	    </DataSet>
            <Position x=".88" y=".38" />
            <Size height="0.03" width="0.1" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Background>
                <Solid>
                    <Color r="0." g="1." b="0." alpha="1." />
                </Solid>
            </Background>
            <Foreground>
                <Solid>
                    <Color r="1." g="0." b="0." alpha="1." />
                </Solid>
            </Foreground>
        </BarGauge>
	<Map camera="*" viewport="top" toggle="1">
	    <Position x="0" y="-.23" />
	    <Size height=".7" width="0.7" />
	</Map>
        <BarGauge camera="*">
            <DataSet>
		<AtomicData field="source" source="player_acceleration" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="10" />
	    </DataSet>
            <Position x=".35" y="-1." />
            <Size height="0.07" width="0.35" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Background>
                <Solid>
                    <Color r="0." g="1." b="0." alpha="0." />
                </Solid>
            </Background>
            <Foreground>
                <Gradient>
                    <Color r="1." g="1." b="0." alpha=".5" at="0." />
                    <Color r="0." g="1." b="0." alpha=".5" at="1." />
                </Gradient>
            </Foreground>
        </BarGauge>
        <BarGauge camera="*">
            <DataSet>
		<AtomicData field="source" source="player_acceleration" />
		<AtomicData field="minimum" source="-10" />
		<AtomicData field="maximum" source="0" />
	    </DataSet>
            <Position x="-.35" y="-1." />
            <Size height="0.07" width="0.35" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Reverse value="false" />
            <Background>
                <Gradient>
                    <Color r="1." g="0." b="0." alpha=".5" at="0." />
                    <Color r="1." g="1." b="0." alpha=".5" at="1." />
                </Gradient>
            </Background>
            <Foreground>
                <Solid>
                    <Color r="0." g="1." b="0." alpha="0." />
                </Solid>
            </Foreground>
        </BarGauge>
	<Label camera="*" usetemplate="BigText">
            <DataSet id="accel">
		<AtomicData source="player_acceleration" />
	    </DataSet>
            <Position x=".01" y="-.94" />
            <Caption location="off">
                <Text value="Acceleration" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Acceleration: " /><GameData data="accel" /><Text value=" m/s/s" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
    </Cockpit>
</Resource>
