<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "AATeam/cockpit-0.3.0.dtd">

<Resource type="aacockpit" name="skypit" version="0.0.1" author="lukesky" category="">


   <Cockpit version="0.0.1">
       

        <NeedleGauge camera="all">
            <DataSet>
                <AtomicData field="source" source="player_speed" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="max_speed" />
            </DataSet>
            <Position x="0." y="-0.9" />
            <Size height="0.18" width="0.175" />
            <ShowCurrent value="true" />
            <ShowMaximum value="true" />
            <ShowMinimum value="true" />
            <Caption location="bottom">
                <Text value="0xff3333Speed" />
            </Caption>
          <Foreground>
                <Solid>
                    <Color r="0." g="0." b="15." alpha="1." />
                </Solid>
            </Foreground>
        </NeedleGauge>

     
        <VerticalBarGauge camera="all">
            <DataSet>
                <AtomicData field="source" source="player_rubber" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="cycle_rubber" />
            </DataSet>
            <Position x="-.91" y="-.75" />
            <Size height="0.15" width="0.07" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="rubber" />
            </Caption>
            <Background>
                <Solid>
                    <Color r="0.1" g="0.3" b="0.2" alpha="0.2" />
                </Solid>
            </Background>
            <Foreground>
                <Gradient orientation="vertical">
                    <Color r="0.0" g="0.0" b="1.0" alpha="0.7" at="1.0" />
                    <Color r="0.0" g="0.0" b="2.0" alpha="0.7" at="0.75" />
                    <Color r="0.0" g="0.0" b="3.0" alpha="0.7" at="0.5" />
                    <Color r="9.0" g="3.0" b="3.0" alpha="0.7" at="0.25" />
                    <Color r="11.0" g="5.0" b="5.0" alpha="0.7" at="0.0" />
                </Gradient>
            </Foreground>
     </VerticalBarGauge>


     <VerticalBarGauge camera="all">
            <DataSet>
                <AtomicData field="source" source="player_brakes" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="1" />
            </DataSet>
            <Position x="-.71" y="-.75" />
            <Size height="0.15" width="0.07" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="off">
                <Text value="Brake" />
            </Caption>
             <Background>
                <Solid>
                    <Color r="0.1" g="0.3" b="0.2" alpha="0.2" />
                </Solid>
            </Background>
            <Foreground>
                <Gradient orientation="vertical">
                    <Color r="0.0" g="0.0" b="1.0" alpha="0.7" at="1.0" /> 
                    <Color r="0.0" g="0.0" b="2.0" alpha="0.7" at="0.75" />
                    <Color r="0.0" g="0.0" b="3.0" alpha="0.7" at="0.5" />
                    <Color r="9.0" g="3.0" b="3.0" alpha="0.7" at="0.25" />
                    <Color r="11.0" g="5.0" b="5.0" alpha="0.7" at="0.0" />
                </Gradient>
            </Foreground>
     </VerticalBarGauge>


     <BarGauge camera="all">
            <DataSet>
                <AtomicData field="source" source="player_rubber" />
            </DataSet>
            <Position x="-.91" y="-.75" />
            <Size height="0.05" width="0.15" />
            <ShowCurrent value="true" />
     </BarGauge>


     <BarGauge camera="all">
            <DataSet>
                <AtomicData field="source" source="player_brakes" />
            </DataSet>
            <Position x="-.71" y="-.75" />
            <Size height="0.05" width="0.15" />
            <ShowCurrent value="true" />
     </BarGauge>


     <Label camera="all">
            <Position x="-.75" y="-.92" />
            <Size height="0.035" width="0.017" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Brake" /></Cell>
                    </Row>
                </Table>
            </Face>
     </Label>



     <Label camera="all">
            <Position x="-.96" y="-.92" />
            <Size height="0.035" width="0.017" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Rubber" /></Cell>
                    </Row>
                </Table>
            </Face>
     </Label>


<Label camera="all">
            <DataSet id="enemies">
                <AtomicData field="source" source="enemies_alive" />
            </DataSet>
            <DataSet id="friends">
                <AtomicData field="source" source="friends_alive" />
            </DataSet>
            <DataSet id="enemiescolor">
                <Conditional field="source" lvalue="enemies_alive" rvalue="friends_alive" operator="eq">
                    <IfTrue>
                        <AtomicData source="0x0000ff" />
                    </IfTrue>
                    <IfFalse>
                        <Conditional lvalue="enemies_alive" rvalue="friends_alive" operator="gt">
                            <IfTrue>
                                <AtomicData source="0x00ff33" />
                            </IfTrue>
                            <IfFalse>
                                <AtomicData source="0xff0000" />
                            </IfFalse>
                        </Conditional>
                    </IfFalse>
                </Conditional>
            </DataSet>
            <DataSet id="friendscolor">
                <Conditional field="source" lvalue="enemies_alive" rvalue="friends_alive" operator="eq">
                    <IfTrue>
                        <AtomicData source="0x0000ff" />
                    </IfTrue>
                    <IfFalse>
                        <Conditional lvalue="enemies_alive" rvalue="friends_alive" operator="gt">
                            <IfTrue>
                                <AtomicData source="0xff0000" />
                            </IfTrue>
                            <IfFalse>
                                <AtomicData source="0x00ff33" />
                            </IfFalse>
                        </Conditional>
                    </IfFalse>
                </Conditional>
            </DataSet>
            <Position x="0.76" y="-0.89" />
            <Size height="0.05" width="0.010" /> <!-- Size would be the font size in this case -->
            <Caption location="off">
                <Text value="Player Status" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="enemiescolor" /><Text value="Enemies:" /></Cell>
                        <Cell><GameData data="enemiescolor" /><GameData data="enemies" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="friendscolor" /><Text value="Friends:" /></Cell>
                        <Cell><GameData data="friendscolor" /><GameData data="friends" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>


        <Label camera="all">
            <DataSet id="ping">
                <AtomicData field="source" source="current_ping" />
            </DataSet>
            <Position x="-0.55" y="-0.89" />
            <Size height="0.05" width="0.010" />
            <Caption location="off">
                <Text value="Player Status" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Ping:" /></Cell>
                        <Cell><GameData data="ping" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

        
        <Label camera="all">
            <DataSet id="number">
                <AtomicData source="fastest_speed_round" />
            </DataSet>
            <DataSet id="name">
                <AtomicData source="fastest_name_round" />
            </DataSet>
            <Position x="-0.55" y="-0.85" />
            <Size height="0.05" width="0.010" /> <!-- Size would be the font size in this case -->
            <Caption location="off">
                <Text value="Fastest" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Fastest:" /></Cell>
                        <Cell><GameData data="name" /></Cell>
                        <Cell><Text value="(" /><GameData data="number" /><Text value=")" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

        
        <Label camera="all">
            <DataSet id="myscore">
                <AtomicData source="current_score" />
            </DataSet>
            <DataSet id="topscore">
                <AtomicData source="top_score" />
            </DataSet>
            <Position x="0.3" y="-0.89" />
            <Size height="0.05" width="0.010" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Me:" /></Cell>
                        <Cell><GameData data="myscore" /></Cell>                     
                    </Row>
                    <Row>
                        <Cell><Text value="Top:" /></Cell>
                        <Cell><GameData data="topscore" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>



        <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="fps">
                <AtomicData source="current_framerate" />
            </DataSet>
            <Position x="0.6" y="0.45" />
            <Size height="0.05" width="0.010" />
            <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="FPS:" /></Cell>
                        <Cell><GameData data="fps" /><Text value=" FPS" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>


     <Map camera="all" toggle="1" toggleSticky="true" toggleDefault="on" >
           <Position x="0.73" y="-0.72" />
           <Size height="0.25" width="0.25" />
     </Map>
   </Cockpit>
</Resource>