<SimBase.Document Type="AceXML" version="1,0" id="vector_example">
<Descr>AceXML Document</Descr>
<Filename>vector_example.xml</Filename>
<SimGauge.Gauge id="Gauge" ArtDirectory="">
<FloatPosition>0.000,0.000</FloatPosition>
<Size>450,450</Size>
<Element id="Background">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>1</Visibility>
<Rectangle id="Rectangle">
<LineWidth>2</LineWidth>
<Bright>True</Bright>
<Width>450</Width>
<Height>450</Height>
<LineColor>#010101</LineColor>
<FillColor>#FFC0C0</FillColor>
</Rectangle>
</Element>
<Element id="Numerical Display">
<FloatPosition>10.000,10.000</FloatPosition>
<GaugeText>
<Bright>True</Bright>
<FontColor>Blue</FontColor>
<FontFace>Arial</FontFace>
<FontHeight>10</FontHeight>
<FontWeight>400</FontWeight>
<Size>180,125</Size>
<Transparent>True</Transparent>
<GaugeString>
%\{ul}%RAW VALUES OUT\{nr}\n
%\{tabs=0L,10L}\t%A:YOKE X POSITION, number = %((A:YOKE X POSITION, number))%!3.6f!%\n
%\{tabs=0L,10L}\t%A:YOKE Y POSITION, number = %((A:YOKE Y POSITION, number))%!3.6f!%\{nr}\n\n
%\{ul}%CALCd VALUES OUT, MAX 200px DEFLECTION%\{nr}\n
%\{tabs=0L,10L}\t%AILERON = %((A:YOKE X POSITION, number) abs 200 *)%!d!%\n
%\{tabs=0L,10L}\t%ELEVATOR = %((A:YOKE Y POSITION, number) abs 200 *)%!d!%
</GaugeString>
</GaugeText>
</Element>
<!-- The output is greater than zero, the display bar goes to the right -->
<Element id="Right Aileron">
<FloatPosition>241.000,222.000</FloatPosition>
<Visibility>(A:YOKE X POSITION, number) 0 ></Visibility>
<Rectangle id="Rectangle">
<LineWidth>1</LineWidth>
<Bright>True</Bright>
<Width>200</Width>
<Height>10</Height>
<LineColor>#C00000</LineColor>
<FillColor>#C00000</FillColor>
<WidthScript>(A:YOKE X POSITION, number) abs 200 *</WidthScript>
</Rectangle>
</Element>
<!-- The output is less than zero, the display bar NEEDS to go to the left -->
<!-- therefore we rotate it 180 degrees -->
<!-- Due to the funkiness of the XML vector drawing, the rectangle height needed to be changed -->
<Element id="Left Aileron">
<FloatPosition>211.000,230.000</FloatPosition>
<Visibility>(A:YOKE X POSITION, number) 0 <</Visibility>
<Rectangle id="Rectangle">
<LineWidth>1</LineWidth>
<Bright>True</Bright>
<Width>200</Width>
<Height>8</Height>
<LineColor>#C00000</LineColor>
<FillColor>#C00000</FillColor>
<WidthScript>(A:YOKE X POSITION, number) abs 200 *</WidthScript>
</Rectangle>
<Rotation id="Rotation">
<Expression>
<Script>180 dgrd</Script>
</Expression>
<DegreesPointsTo>90</DegreesPointsTo>
</Rotation>
</Element>
<!-- The output is less than zero, the display bar NEEDS to go to up -->
<!-- therefore we rotate it 180 degrees -->
<!-- Due to the funkiness of the XML vector drawing, the rectangle width needed to be changed -->
<Element id="Down Elevator">
<FloatPosition>229.000,211.000</FloatPosition>
<Visibility>(A:YOKE Y POSITION, number) 0 <</Visibility>
<Rectangle id="Rectangle">
<LineWidth>1</LineWidth>
<Bright>True</Bright>
<Width>6</Width>
<Height>200</Height>
<LineColor>#C00000</LineColor>
<FillColor>#C00000</FillColor>
<HeightScript>(A:YOKE Y POSITION, number) abs 200 *</HeightScript>
</Rectangle>
<Rotation id="Rotation">
<Expression>
<Script>180 dgrd</Script>
</Expression>
<DegreesPointsTo>90</DegreesPointsTo>
</Rotation>
</Element>
<Element id="Up Elevator">
<FloatPosition>223.000,243.000</FloatPosition>
<Visibility>(A:YOKE Y POSITION, number) 0 ></Visibility>
<Rectangle id="Rectangle">
<LineWidth>1</LineWidth>
<Bright>True</Bright>
<Width>6</Width>
<Height>200</Height>
<LineColor>#C00000</LineColor>
<FillColor>#C00000</FillColor>
<HeightScript>(A:YOKE Y POSITION, number) abs 200 *</HeightScript>
</Rectangle>
</Element>
<Element id="Center Circle">
<FloatPosition>210.000,210.000</FloatPosition>
<Visibility>1</Visibility>
<Circle id="Circle">
<LineWidth>4</LineWidth>
<Bright>True</Bright>
<Radius>15</Radius>
<LineColor>#010101</LineColor>
<FillColor>#008000</FillColor>
</Circle>
</Element>
</SimGauge.Gauge>
</SimBase.Document>