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

<Resource type="aacockpit" name="classicplus" version="0.0.1" author="rxfreaks" category="">
    <Cockpit version="0.0.1">
        <Camview camera="in" view="in">
            <Position x="-0.95" y="-0.95" />
            <Size height="0.15" width="0.3" />
            <Translation x="0.5" y="0" z="0" />
            <Rotation value="150" />
            <Mirror value="true" />
        </Camview>

        <Camview camera="in" view="in">
            <Position x="0.35" y="-0.95" />
            <Size height="0.15" width="0.3" />
            <Translation x="-0.5" y="0" z="0" />
            <Rotation value="210" />
            <Mirror value="true" />
        </Camview>
        <!-- Example configuration for an old speed meter -->
        <NeedleGauge camera="^in">
            <DataSet>
                <AtomicData field="source" source="player_speed" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="max_speed" />
            </DataSet>
            <Position x="-0.165" y="-0.9" />
            <Size height="0.15" width="0.15" />
            <ShowCurrent value="true" />
            <ShowMaximum value="true" />
            <ShowMinimum value="true" />
            <Caption location="bottom">
                <Text value="Speed" />
            </Caption>
            <Foreground>
                <Solid>
                    <Color r="1." g="0." b="0." alpha="1." />
                </Solid>
            </Foreground>
        </NeedleGauge>

        <!-- 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>
                <Image>
                    <Graphic author="wrtlprnft" version="1" name="gauge_horizontal" uri="http://wrtlprnft.ath.cx/gauge_horizontal.png" />
                </Image>
                <Solid>
                    <Color r="1." g="1." b="1." alpha=".5" />
                </Solid>
            </Background>
            <Foreground>
                <Image>
                    <Graphic author="wrtlprnft" version="1" name="gauge_horizontal_filled" uri="http://wrtlprnft.ath.cx/gauge_horizontal_filled.png" />
                </Image>
                <Gradient orientation="value">
                    <Color r="0." g="1." b="0." alpha=".9" at="0." />
                    <Color r="0." g="1." b="0." alpha=".9" at=".3" />
                    <Color r="1." g="1." b="0." alpha=".9" at=".6" />
                    <Color r="1." g="0." b="0." alpha=".9" at=".8" />
                    <Color r="1." g="0." b="0." alpha=".9" at="1." />
                </Gradient>
            </Foreground>
            <LineColor>
                <Solid>
                    <Color r="0" g="0" b="0" alpha="0" />
                </Solid>
            </LineColor>
        </BarGauge>
		
		<!-- brake needle -->
		<NeedleGauge camera="^in">
            <DataSet>
                <AtomicData field="source" source="player_brakes" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="1" />
            </DataSet>
            <Position x="0.25" y="-0.9" />
            <Size height="0.15" width="0.15" />
            <ShowCurrent value="true" />
            <ShowMaximum value="true" />
            <ShowMinimum value="true" />
            <Caption location="bottom">
                <Text value="Brakes" />
            </Caption>
            <Foreground>
                <Gradient orientation="value">
                    <Color r="1." g="0." b="0." alpha=".9" at="0." />
                    <Color r="1." g="1." b="0." alpha=".9" at=".5" />
                    <Color r="0." g="1." b="0." alpha=".9" at="1." />
                </Gradient>
            </Foreground>
        </NeedleGauge>

        <!-- 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.25" 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">
            <DataSet id="ping">
                <AtomicData field="source" source="current_ping" />
            </DataSet>
            <Position x="-0.60" 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.7" y="-0.96" />
            <Size height="0.035" width="0.017" /> 
            <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>
-->
		<!-- fastest speed meter -->
		<BarGauge>
            <DataSet>
                <AtomicData field="source" source="player_speed" />
                <AtomicData field="minimum" source="0" />
                <AtomicData field="maximum" source="fastest_speed_round" />
			</DataSet>
            <Position x="-0.165" y="-0.97" />
            <Size height="0.015" width="0.10" />
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
            <Background>
                <Solid>
                    <Color r="1" g="1" b="1" alpha="0.2" />
                </Solid>
            </Background>
            <Foreground>
                <Solid>
                    <Color r="1" g="1" b="1" alpha="0.4" />
                </Solid>
            </Foreground>
        </BarGauge>
		
		<!-- fastest label -->
		<Label camera="^in">
		    <DataSet id="speed">
                <AtomicData source="fastest_speed_round" />
            </DataSet>
            <DataSet id="name">
                <AtomicData source="fastest_name_round" />
            </DataSet>
            <Position x="-0.3" y="-0.965" />
            <Size height="0.032" width="0.014" />
            <Caption location="off">
                <Text value="Player Status" />
            </Caption>
            <Face>
                <Table>
                    <Row>
                        <Cell><Text value="Fastest:" /></Cell>
                        <Cell><GameData data="name" /></Cell>
                        <Cell><Text value="-" /></Cell>
                        <Cell><GameData data="speed" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
		
		<!-- score me: top: -->
        <Label camera="^in">
            <DataSet id="myscore">
                <AtomicData source="current_score" />
            </DataSet>
            <DataSet id="topscore">
                <AtomicData source="top_other_score" />
            </DataSet>
            <DataSet id="color">
                <Conditional field="source" lvalue="current_score" rvalue="top_other_score" operator="eq">
                    <IfTrue>
                        <AtomicData source="0xff9d50" />
                    </IfTrue>
                    <IfFalse>
                        <Conditional lvalue="current_score" rvalue="top_other_score" operator="gt">
                            <IfTrue>
                                <AtomicData source="0x11ff11" />
                            </IfTrue>
                            <IfFalse>
                                <AtomicData source="0x11ffff" />
                            </IfFalse>
                        </Conditional>
                    </IfFalse>
                </Conditional>
            </DataSet>
            <Position x="-.93" y="-.88" />
            <Size height="0.04" width="0.02" />
            <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">
            <DataSet id="fps">
                <AtomicData source="current_framerate" />
            </DataSet>
            <DataSet id="seconds">
                <AtomicData source="time_since_start" />
            </DataSet>
            <Position x="0.85" y="0.50" />
            <Size height="0.04" width="0.02" />
            <Face>
                <Table>
                    <Row>
                        <Cell><GameData data="fps" /><Text value=" FPS" /></Cell>
                    </Row>
                    <Row>
                        <Cell><GameData data="seconds" /><Text value=" secs" /></Cell>
                    </Row>
                </Table>
            </Face>
        </Label>
        <Map camera="^in">
            <Position x="0.8" y="-0.8" />
            <Size height="0.20" width="0.20" />
            <Background>
                <Image scale_x=".075" scale_y=".075" repeat="both">
                    <Graphic author="wrtlprnft" version="1" name="floor" extension="png" uri="http://wrtlprnft.ath.cx/floor.png" />
                </Image>
                <Solid>
                    <Color r=".5" g="1." b=".5" alpha="0.7" />
                </Solid>
            </Background>
			<MapModes toggleKey="1">
				<MapMode mode="full" rotation="spawn" />
				<MapMode mode="closestZone" rotation="spawn" />
				<MapMode mode="cycle" rotation="camera" zoomFactor="3" clipMode="ellipse" />
				<MapMode mode="cycle" rotation="cycle" zoomFactor="3" />
				<MapMode mode="cycle" rotation="spawn" zoomFactor="4" />
				<MapMode mode="full" rotation="fixed" />
			</MapModes>
        </Map>
		<BarGauge viewport="cycle" toggle="2"> <!-- Shows enemies' rubber -->
	   <DataSet>
		<AtomicData field="source" source="player_rubber"/>
		<AtomicData field="minimum" source="0"/>
		<AtomicData field="maximum" source="cycle_rubber"/>
	   </DataSet>
	   <Position x="0" y=".03"/>
	   <Size height=".03" width=".06"/>
	   <ShowCurrent value="false"/>
	   <ShowMaximum value="false"/>
	   <ShowMinimum value="false"/>
	   <Caption location="off">
		<Text value="Rubber"/>
	   </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=".6" at="0."/>
		 <Color r="0." g="1." b="0." alpha=".6" at=".3"/>
		 <Color r="1." g="1." b="0." alpha=".6" at=".6"/>
		 <Color r="1." g="0." b="0." alpha=".6" at=".8"/>
		 <Color r="1." g="0." b="0." alpha=".6" at="1."/>
		</Gradient>
	   </Foreground>
	  </BarGauge>

    </Cockpit>
</Resource>
