<?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.1" author="chipdip" category="cockpit">
    <Cockpit version="0.0.1">
        <!-- Example configuration for an old speed meter -->
        <VerticalBarGauge camera="^in">
            <DataSet>
                <AtomicData field="source" source="player_speed" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="max_speed" />
            </DataSet>
            <Position x="0.3" y="-0.87" />
            <Size height="0.13" width="0.05" />
            <ShowCurrent value="true" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".0" 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="0." b="1." alpha=".7" at="0." />
                    <Color r="0." g="0." b="1." alpha=".7" at=".3" />
                    <Color r="0." g="0." b="1." 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>
        </VerticalBarGauge>

        <!-- Example configuration for a new rubber meter -->
        <VerticalBarGauge camera="^in">
            <DataSet>
                <AtomicData field="source" source="player_rubber" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="cycle_rubber" />
            </DataSet>
            <Position x="-0.3" y="-0.87" />
            <Size height="0.13" width="0.05" />
            <ShowCurrent value="true" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".0" 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=".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>
        </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.45" y="-0.87" />
            <Size height="0.13" width="0.05" />
            <ShowCurrent value="true" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="" />
            </Caption>
            <Background>
                <Solid>
                    <Color r="1." g="1." b="1." alpha=".2" />
                </Solid>
            </Background>
            <Foreground>
                <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>
            </Foreground>
        </VerticalBarGauge>

        <!--Vanhayes' edited enemies/freinds meter -->
        <Label camera="^in">
            <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="0x00ff66" />
                            </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="0x00ff66" />
                            </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="^in">
            <DataSet id="ping">
                <AtomicData field="source" source="current_ping" />
            </DataSet>
            <Position x="0.52" y="-0.96" />
            <Size height="0.035" width="0.017" /> <!-- Size would be the font size in this case -->
            <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="^in">
            <DataSet id="number">
                <AtomicData source="fastest_speed_round" />
            </DataSet>
            <DataSet id="name">
                <AtomicData source="fastest_name_round" />
            </DataSet>
            <Position x="-0.82" y="-0.955" />
            <Size height="0.035" width="0.017" /> <!-- 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="^in">
            <DataSet id="myscore">
                <AtomicData source="current_score" />
            </DataSet>
            <DataSet id="topscore">
                <AtomicData source="top_score" />
            </DataSet>
            <DataSet id="color">
                <Conditional field="source" lvalue="current_score" rvalue="top_score" operator="eq">
                    <IfTrue>
                        <AtomicData source="0xff9d50" />
                    </IfTrue>
                    <IfFalse>
                        <Conditional lvalue="current_score" rvalue="top_score" operator="gt">
                            <IfTrue>
                                <AtomicData source="0x11ff11" />
                            </IfTrue>
                            <IfFalse>
                                <AtomicData source="0x11ffff" />
                            </IfFalse>
                        </Conditional>
                    </IfFalse>
                </Conditional>
            </DataSet>
            <Position x="-.97" y="-.88" />
            <Size height="0.04" width="0.02" /> <!-- Size would be the font size in this case -->
            <Caption location="top">
                <Text value="Scores" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="color" /><Text value="Me:" /></Cell>
                        <Cell><GameData data="color" /><Text value="Top:" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="color" /><GameData data="myscore" /></Cell>
                        <Cell><GameData data="color" /><GameData data="topscore" /></Cell>
                    </Row>
               </Table>
            </Face>
        </Label>
        <Label camera="^in" viewport="top" toggle="5" 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.8" y="0.35" />
            <Size height="0.04" width="0.02" />
          <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>
                 </Table>
            </Face>
        </Label>
        
        <Map camera="^in" toggle="1" toggleSticky="true" toggleDefault="on" >
            <Position x="0" y="-0.759" />
            <Size height="0.24" width="0.24" />
        </Map>
<!--Labels-->
 <Label camera="^in" >
<Position x="-0.3" y="-0.95" />
          <Size height="0.04" width="0.02" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="R" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
<Label camera="^in" >
 <Position x="0.45" y="-0.95" />
          <Size height="0.04" width="0.02" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="B" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

<Label camera="^in" >
<Position x="0.3" y="-0.95" />
            <Size height="0.04" width="0.02" />
          <Face>
                <Table>
                    <Row>
                        <Cell><Text value="S" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
<!--Vanhayes' impact meter -->

        <BarGauge camera="^in" toggle="2" toggleSticky="true" toggleDefault="off">
            <DataSet>
                <AtomicData field="source" source="time_to_impact_front" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="5" />
            </DataSet>
            <Position x="0." y="-0.51" />
            <Size height="0.03" width="0.2" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="1." g="1." b="1." alpha=".0" at="0." />
                    <Color r="1." g="1." b="1." alpha=".1" at=".3" />
                    <Color r="0." g="1." b="0." alpha=".2" at=".4" />
                    <Color r="0." g="1." b="0." alpha=".2" at="1." />
                </Gradient>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha=".7" at="0." />
                    <Color r="1." g="0." b="0." alpha=".7" at=".3" />
                    <Color r="1." g="1." b="0." alpha=".7" at=".6" />
                    <Color r="0." g="1." b="0." alpha=".7" at=".8" />
                    <Color r="0." g="1." b="0." alpha=".7" at="1." />
                </Gradient>
            </Foreground>
        </BarGauge>
       <VerticalBarGauge camera="^in" toggle="2" toggleSticky="true" toggleDefault="off">
            <DataSet>
                <AtomicData field="source" source="time_to_impact_left" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="5" />
            </DataSet>
             <Position x="-0.27" y="-0.63" />
            <Size height="0.10" width="0.02" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="1." g="1." b="1." alpha=".0" at="0." />
                    <Color r="1." g="1." b="1." alpha=".1" at=".3" />
                    <Color r="0." g="1." b="0." alpha=".2" at=".4" />
                    <Color r="0." g="1." b="0." alpha=".2" at="1." />
                </Gradient>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha=".7" at="0." />
                    <Color r="1." g="0." b="0." alpha=".7" at=".3" />
                    <Color r="1." g="1." b="0." alpha=".7" at=".6" />
                    <Color r="0." g="1." b="0." alpha=".7" at=".8" />
                    <Color r="0." g="1." b="0." alpha=".7" at="1." />
                </Gradient>
            </Foreground>
        </VerticalBarGauge>
<VerticalBarGauge camera="^in" toggle="2" toggleSticky="true" toggleDefault="off">
            <DataSet>
                <AtomicData field="source" source="time_to_impact_right" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="5" />
            </DataSet>
             <Position x="0.27" y="-0.63" />
            <Size height="0.10" width="0.02" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="" />
            </Caption>
            <Background>
                <Gradient orientation="value">
                    <Color r="1." g="1." b="1." alpha=".0" at="0." />
                    <Color r="1." g="1." b="1." alpha=".1" at=".3" />
                    <Color r="0." g="1." b="0." alpha=".2" at=".4" />
                    <Color r="0." g="1." b="0." alpha=".2" at="1." />
                </Gradient>
            </Background>
            <Foreground>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha=".7" at="0." />
                    <Color r="1." g="0." b="0." alpha=".7" at=".3" />
                    <Color r="1." g="1." b="0." alpha=".7" at=".6" />
                    <Color r="0." g="1." b="0." alpha=".7" at=".8" />
                    <Color r="0." g="1." b="0." alpha=".7" at="1." />
                </Gradient>
            </Foreground>
        </VerticalBarGauge>
<!-- Lucifer's incam cockpit follows -->
        <BarGauge camera="in">
            <DataSet>
                <AtomicData field="source" source="player_speed" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="80" />
            </DataSet>
            <Position x="0.4" y="-0.4" />
            <Size height="0.015" width="0.15" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="top">
                <Text value="Speed" />
            </Caption>
            <Background>
                <Solid>
                    <Color r="0.1" g="0.3" b="0.2" alpha="0.2" />
                </Solid>
            </Background>
            <Foreground>
                <Solid>
                    <Color r="1." g="0." b="0." alpha="1." />
                </Solid>
            </Foreground>
        </BarGauge>
        <!-- Brakes -->
        <BarGauge camera="in">
            <DataSet>
                <AtomicData field="source" source="player_brakes" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="1" />
            </DataSet>
            <Position x="-0.4" y="-0.4" />
            <Size height="0.015" width="0.15" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="top">
                <Text value="Brakes" />
            </Caption>
            <Background>
                <Solid>
                    <Color r="0.1" g="0.3" b="0.2" alpha="0.2" />
                </Solid>
            </Background>
            <Foreground>
                <Gradient orientation="horizontal">
                    <Color r="0.0" g="0.0" b="1.0" alpha="0.7" at="0.0" />
                    <Color r="1.0" g="0.0" b="0.0" alpha="0.7" at="1.0" />
                </Gradient>
            </Foreground>
        </BarGauge>
        <BarGauge camera="in">
            <DataSet>
                <AtomicData field="source" source="player_rubber" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="1" />
            </DataSet>
            <Position x="-0.4" y="-0.6" />
            <Size height="0.015" width="0.15" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Caption location="bottom">
                <Text value="Rubber" />
            </Caption>
            <Background>
                <Solid>
                    <Color r="0.1" g="0.3" b="0.2" alpha="0.2" />
                </Solid>
            </Background>
            <Foreground>
                <Gradient orientation="horizontal">
                    <Color r="0.0" g="0.0" b="1.0" alpha="0.7" at="0.0" />
                    <Color r="1.0" g="0.0" b="0.0" alpha="0.7" at="1.0" />
                </Gradient>
            </Foreground>
        </BarGauge>

        <!-- Enemies alive -->
        <Label camera="in">
            <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="0x00ff66" />
                            </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="0x00ff66" />
                            </IfFalse>
                        </Conditional>
                    </IfFalse>
                </Conditional>
            </DataSet>
            <Position x="-0.475" y="-0.4" />
            <Size height="0.06" width="0.017" /> <!-- 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>
        <!-- FPS -->
        <BarGauge camera="in">
            <DataSet>
                <AtomicData field="source" source="current_framerate" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="100" />
            </DataSet>
            <Position x="0" y="0.45" />
            <Size height="0.03" width="0.08" />
            <ShowCurrent value="true" />
            <ShowMaximum value="true" />
            <ShowMinimum value="true" />
            <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>

<!--Gauges for warning bars: time_to_impact_front, time_to_impact_right and time_to_impact_left -->


        <WidgetTemplate id="ImpactsH" toggle="1" toggleSticky="true" toggleDefault="on">
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Background>
                <Solid>
                    <Color r="0." g="1." b="0." alpha=".02"  />
                </Solid>
            </Background>
          <Size height="0.2" width="1.5" />
        </WidgetTemplate>
        
        <WidgetTemplate id="ImpactsV" toggle="1" toggleSticky="true" toggleDefault="on">
                    <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Background>
                <Solid>
                    <Color r="0." g="1." b="0." alpha=".02"  />
                </Solid>
            </Background>
           <Foreground>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".05" at="0." />
                    <Color r="1." g="8." b="0." alpha=".3" at=".8" />
                    <Color r="1." g="0." b="0." alpha=".35" at="1" />
                </Gradient>
          </Foreground>
          <Size height="1." width=".06" />
        </WidgetTemplate>

        <!-- HUD Map (obviously) -->
        <Map camera="in">
            <Position x="0" y="-0.759" />
            <Size height="0.24" width="0.24" />
        </Map>
    </Cockpit>
</Resource>
