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

<!-- Lean uncluttered cockpit -->

<Resource type="aacockpit" name="personal" version="0.0.1" author="Z-Man" category="">
    <Cockpit version="0.0.1">
        <!-- Example configuration for a new rubber meter -->
        <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.55" y="-0.9" />
            <Size height="0.05" width="0.15" />
            <ShowCurrent value="true" />
            <ShowMaximum value="true" />
            <ShowMinimum value="true" />
            <Caption location="bottom">
                <Text value="Rubber" />
            </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>
        </BarGauge>

        <!-- Example configuration for a Enemies: x Mates: y display -->
        <Label camera="^in">
            <DataSet id="enemies">
                <AtomicData field="source" source="enemies_alive" />
            </DataSet>
            <DataSet id="friends">
                <AtomicData field="source" source="friends_alive" />
            </DataSet>
            <Position x="0.06" 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="Enemies:" /></Cell>
                        <Cell><GameData data="enemies" /></Cell>
                        <Cell><Text value="Friends:" /></Cell>
                        <Cell><GameData data="friends" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

        <Label camera="^in" viewport="top">
            <DataSet id="fps">
                <AtomicData source="current_framerate" />
            </DataSet>
            <DataSet id="seconds">
                <AtomicData source="time_since_start" />
            </DataSet>
            <Position x="0.4" y="0.45" />
            <Size height="0.04" width="0.02" />
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="FPS:" /></Cell>
                        <Cell><GameData data="fps" /><Text value=" FPS" /></Cell>
                    </Row>
                    <Row>
                        <Cell><Text value="Time:" /></Cell>
                        <Cell><GameData data="seconds" /><Text value=" Seconds" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>

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

        <!-- HUD Map (obviously) -->
        <Map camera="in">
            <Position x="0" y="-0.759" />
            <Size height="0.24" width="0.24" />
            <Background>
                <Solid>
                    <Color r="1." g="1." b="1." alpha=".2" />
                </Solid>
            </Background>
        </Map>
    </Cockpit>
</Resource>
