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

<Resource type="aacockpit" name="edpit" version="0.0.1" author="ed" category="">
    <Cockpit version="0.0.1">

	<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>

        <BarGauge camera="^in">
            <DataSet>
		<AtomicData field="source" source="player_rubber" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="cycle_rubber" />
	    </DataSet>
            <Position x="-0.5" y="-.92" />
            <Size height="0.04" width=".5" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Rubber" />
            </Caption>
        <Background>
         <Gradient orientation="value">
          <Color r="0" g="0" b="0" alpha="0" at="0" />
         </Gradient>
        </Background>
        <Foreground>
         <Gradient orientation="value">
          <Color r="1" g="0." b="0" alpha=".1" at="0" />
          <Color r="1" g="0." b="0" alpha="1" at="1" />
         </Gradient>
        </Foreground>
        </BarGauge>

          <BarGauge camera="^in">
            <DataSet>
		<AtomicData field="source" source="player_rubber" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="cycle_rubber" />
	    </DataSet>
            <Position x="0.5" y="-.92" />
            <Size height="0.04" width=".5" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Reverse value="true" />
            <Caption location="off">
                <Text value="Rubber" />
            </Caption>
        <Background>
         <Gradient orientation="value">
          <Color r="0" g="0" b="0" alpha="0" at="0" />
         </Gradient>
        </Background>
        <Foreground>
         <Gradient orientation="value">
          <Color r="1" g="0." b="0" alpha=".1" at="1" />
          <Color r="1" g="0." b="0" alpha="1" at="0" />
         </Gradient>
        </Foreground>
        </BarGauge>

        <BarGauge camera="^in">
            <DataSet>
		<AtomicData field="source" source="player_brakes" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="1" />
	    </DataSet>
            <Position x="-.5" y="-1" />
            <Size height="0.04" width="0.5" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Reverse value="true" />
            <Caption location="off">
                <Text value="Brakes" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="1" g="1" b="0" alpha=".1" at="0"/>
                    <Color r="1" g="1" b="0" alpha="1" at="1"/>
                </Gradient>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                     <Color r="0" g="0" b="0" alpha="0"/>
                 </Gradient>
            </Foreground>
        </BarGauge>
        <BarGauge camera="^in">
            <DataSet>
		<AtomicData field="source" source="player_brakes" />
		<AtomicData field="minimum" source="0" />
		<AtomicData field="maximum" source="1" />
	    </DataSet>
            <Position x=".5" y="-1" />
            <Size height="0.04" width="0.5" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Brakes" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="1" g="1" b="0" alpha=".1" at="1"/>
                    <Color r="1" g="1" b="0" alpha="1" at="0"/>
                </Gradient>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                     <Color r="0" g="0" b="0" alpha="0" at="0"/>
                 </Gradient>
            </Foreground>
        </BarGauge>


        <BarGauge 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="0.01" />
		 <AtomicData field="maximum" source="1.0" />
	    </DataSet>
        <Position x="-.5" y="-.96" />
        <Size height=".04" width=".5" />
        <ShowCurrent value="false" />
        <ShowMaximum value="false" />
        <ShowMinimum value="false" />
        <Caption location="off">
         <Text value="Crash" />
        </Caption>
        <Background>
         <Gradient orientation="value">
          <Color r="0" g="0" b="0" alpha="0" at="0" />
         </Gradient>
        </Background>
        <Foreground>
         <Gradient orientation="value">
          <Color r="0" g="0." b="1" alpha="0.1" at="0"/>
          <Color r="0" g="0." b="1" alpha="1" at="1"/>
         </Gradient>
        </Foreground>
       </BarGauge>

        <BarGauge 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="0" />
		 <AtomicData field="maximum" source="1" />
	    </DataSet>
        <Position x="0.5" y="-.96" />
        <Size height=".04" width=".5" />
        <ShowCurrent value="false" />
        <ShowMaximum value="false" />
        <ShowMinimum value="false" />
        <Reverse value="true" />
        <Caption location="off">
         <Text value="Crash" />
        </Caption>
        <Background>
         <Gradient orientation="value">
          <Color r="0" g="0" b="0" alpha="0"/>
         </Gradient>
        </Background>
        <Foreground>
         <Gradient orientation="value">
          <Color r="0" g="0." b="1" alpha="0.1" at="1"/>
          <Color r="0" g="0." b="1" alpha="1" at="0"/>
         </Gradient>
        </Foreground>
       </BarGauge>

        <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="off">
                <Text value="Friends:" />
            </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.2" y="-.9" />
            <Caption location="off">
                <Text value="Enemies:" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Enemies:"/></Cell><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>

        </Label>
	<Label camera="*" viewport="top" usetemplate="BigText">
            <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="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=" " /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="fps" /><Text value=" FPS" /></Cell>
                    </Row>
                    <Row>
                        <Cell><Text value="" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

	<Map camera="*" viewport="top" toggle="1">
	    <Position x=".72" y="-.60" />
	    <Size height=".27" width="0.27" />
	</Map>

    </Cockpit>
</Resource>
