Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <SimBase.Document
- Type="AceXML"
- version="1,0"
- id="eng_epr01">
- <Descr>AceXML Document</Descr>
- <Filename>eng_epr01.xml</Filename>
- <SimGauge.Gauge id="Gauge" ArtDirectory=".">
- <FloatPosition>0.000,0.000</FloatPosition>
- <!-- BACKGROUND BITMAP -->
- <Image id="eng_epr_back.bmp" Name="eng_epr_back.bmp">
- <Transparent>True</Transparent>
- </Image>
- <!-- DIALS -->
- <Element id="Display text">
- <!-- DIAL POSITION (54px to the left, 98 px down from top left corner of background bitmap) -->
- <FloatPosition>54.000,98.000</FloatPosition>
- <!-- Show when electrical power is available -->
- <Visibility>(A:CIRCUIT GENERAL PANEL ON, bool)</Visibility>
- <GaugeText id="GaugeText">
- <Bold>True</Bold>
- <FontColor>White</FontColor>
- <FontFace>Quartz</FontFace>
- <FontHeight>13</FontHeight>
- <!-- Use standard EPR variable -->
- <GaugeString>%((A:TURB ENG PRESSURE RATIO:1,ratio))%!1.2f!</GaugeString>
- <HorizontalAlign>RIGHT</HorizontalAlign>
- <!-- Text box size -->
- <Size>29,29</Size>
- <Transparent>True</Transparent>
- <VerticalAlign>CENTER</VerticalAlign>
- </GaugeText>
- </Element>
- <Element id="epr_needle">
- <!-- Position from top left corner of background bitmap -->
- <FloatPosition>69.000,71.000</FloatPosition>
- <Image id="eng_epr_needle.bmp" Name="eng_epr_needle.bmp">
- <!-- Position from top left corner of background bitmap -->
- <Transparent>True</Transparent>
- <!-- Position of the rotational axis on the needle bitmap -->
- <Axis>10.000,7.000</Axis>
- </Image>
- <Rotation id="Rotation">
- <!-- Initial position of the needle. East = 90° -->
- <PointsTo>EAST</PointsTo>
- <Expression id="Expression">
- <!-- Rotates when EPR is between 0 and 3 -->
- <Minimum>0.000</Minimum>
- <Maximum>3.000</Maximum>
- <!-- This default FSX A: var drives the needle -->
- <Script>(A:TURB ENG PRESSURE RATIO:1,ratio)</Script>
- </Expression>
- <!-- This makes sure that the needle is rotated by a specified amount of degrees when the EPR is at a certain value -->
- <NonlinearityTable id="NonlinearityTable">
- <NonlinearityEntry id="NonlinearityEntry">
- <ExpressionResult>1.000</ExpressionResult>
- <Degrees>1</Degrees>
- </NonlinearityEntry>
- <NonlinearityEntry id="NonlinearityEntry">
- <ExpressionResult>2.000</ExpressionResult>
- <Degrees>166</Degrees>
- </NonlinearityEntry>
- <NonlinearityEntry id="NonlinearityEntry">
- <ExpressionResult>3.000</ExpressionResult>
- <Degrees>332</Degrees>
- </NonlinearityEntry>
- </NonlinearityTable>
- </Rotation>
- </Element>
- <!-- EPR bug -->
- <Element id="epr_marker">
- <!-- Placement of the top left corner of the bug bitmap from top left of background bitmap -->
- <FloatPosition>69.000,71.000</FloatPosition>
- <Image id="eng_epr_marker.bmp" Name="eng_epr_marker.bmp">
- <Transparent>True</Transparent>
- <!-- Placement of the rotational axis on the bug bitmap -->
- <Axis>1.000,1.000</Axis>
- </Image>
- <Rotation id="Rotation">
- <!-- Same as for the needle above -->
- <PointsTo>EAST</PointsTo>
- <Expression id="Expression">
- <Minimum>1.000</Minimum>
- <Maximum>3.000</Maximum>
- <!-- A custom variable (L: type) drives the bug -->
- <Script>(L:EPRPRESET01, number) 1 *</Script>
- </Expression>
- <NonlinearityTable id="NonlinearityTable">
- <NonlinearityEntry id="NonlinearityEntry">
- <ExpressionResult>1.000</ExpressionResult>
- <Degrees>1</Degrees>
- </NonlinearityEntry>
- <NonlinearityEntry id="NonlinearityEntry">
- <ExpressionResult>2.000</ExpressionResult>
- <Degrees>166</Degrees>
- </NonlinearityEntry>
- <NonlinearityEntry id="NonlinearityEntry">
- <ExpressionResult>3.000</ExpressionResult>
- <Degrees>332</Degrees>
- </NonlinearityEntry>
- </NonlinearityTable>
- </Rotation>
- </Element>
- <!-- EPR bug knob -->
- <Element id="epr_button">
- <!-- Placement of the bug knob on the background bitmap -->
- <FloatPosition>132.000,133.000</FloatPosition>
- <Image id="eng_epr_button.bmp" Name="eng_epr_button.bmp">
- <Transparent>True</Transparent>
- <Axis>16.000,15.000</Axis>
- </Image>
- <Rotation id="Rotation">
- <PointsTo>WEST</PointsTo>
- <Expression id="Expression">
- <Minimum>0.000</Minimum>
- <Maximum>20.000</Maximum>
- <!-- Same variable as for the bug drives the rotation of the knob -->
- <Script>(L:EPRPRESET01, number) 5.5 *</Script>
- </Expression>
- </Rotation>
- </Element>
- <!-- Clickspots for the gauge -->
- <!-- Master Clickspot -->
- <MouseArea id="MouseArea">
- <!-- Starts at top left of the gauge background bitmap... -->
- <FloatPosition>0.000,0.000</FloatPosition>
- <!-- ...and is the same size as the background bitmap -->
- <Size>148,149</Size>
- <MouseArea id="Set Knob">
- <!-- Clickspots for the knob -->
- <!-- About the same position as the knob bitmap -->
- <FloatPosition>113.000,116.000</FloatPosition>
- <!-- About the same size as the knob bitmap -->
- <Size>33,32</Size>
- <!-- Clickspot is split in two left half... -->
- <MouseArea id="Decrement">
- <!-- Starts at the top left corner of the EPR knob master clickspot... -->
- <FloatPosition>0.000,0.000</FloatPosition>
- <!-- ...but is only half its size -->
- <Size>15,31</Size>
- <CursorType>DownArrow</CursorType>
- <MouseClick id="MouseClick">
- <!-- Operation to execute upon clicking the clickspot. Here: Read the EPR preset variable, decrease it by 0.01 between the values of 1 and 2.4 and write the new value into the variable -->
- <Script>
- (L:EPRPRESET01, number) 0.01 - 1 max 2.4 min (>L:EPRPRESET01, number)
- </Script>
- <ClickRepeat>True</ClickRepeat>
- </MouseClick>
- </MouseArea>
- <!-- ...right half of the clickspot. Works just the same as above, except... -->
- <MouseArea id="Increment">
- <!-- It's placed right by half the width of the master clickspot... -->
- <FloatPosition>16.000,0.000</FloatPosition>
- <!-- ...but is the same size as the decrement clickspot above -->
- <Size>15,31</Size>
- <CursorType>UpArrow</CursorType>
- <MouseClick id="MouseClick">
- <!-- Operation: Read the EPR preset variable, increase it by 0.01 between the values of 1 and 2.4 and write the new value into the variable -->
- <Script>
- (L:EPRPRESET01, number) 0.01 + 1 max 2.4 min (>L:EPRPRESET01, number)
- </Script>
- <ClickRepeat>True</ClickRepeat>
- </MouseClick>
- </MouseArea>
- <!-- Tooltip for the master knob clickspot. Here: Show current value for the custom EPR preset variable. -->
- <Tooltip id="Tooltip">
- <DefaultScript>EPR PRESET:%((L:EPRPRESET01, number))%! 1.2f! </DefaultScript>
- </Tooltip>
- </MouseArea>
- <!-- Tooltip for the master clickspot. Here: Show current EPR value and current thrust -->
- <Tooltip id="Tooltip">
- <DefaultScript>EPR: %((A:TURB ENG PRESSURE RATIO:1,ratio))%!1.3f! Thrust: %((A:TURB ENG JET THRUST:1,pounds))%!1.0f!lbs</DefaultScript>
- </Tooltip>
- </MouseArea>
- </SimGauge.Gauge>
- </SimBase.Document>
Advertisement
Add Comment
Please, Sign In to add comment