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

<Resource type="aacockpit" name="spartanic" version="0.0.1" author="Z-Man" category="tutorial">
    <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>

        <WidgetTemplate id="Clock">
            <Position x=".3" y=".4" />
            <Size height="0.075" width="0.075" />
            <Foreground>
                <Solid>
                    <Color r="1." g="1." b="1." alpha="1." />
                </Solid>
            </Foreground>
            <ShowCurrent value="false" />
            <ShowMaximum value="false" />
            <ShowMinimum value="false" />
        </WidgetTemplate>
        <!-- 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>

    </Cockpit>
</Resource>
