SHOW:
|
|
- or go back to the newest paste.
| 1 | <?xml version="1.0" encoding="UTF-8"?> | |
| 2 | <SimBase.Document | |
| 3 | Type="AceXML" | |
| 4 | version="1,0" | |
| 5 | id="eng_epr01"> | |
| 6 | <Descr>AceXML Document</Descr> | |
| 7 | <Filename>eng_epr01.xml</Filename> | |
| 8 | <SimGauge.Gauge id="Gauge" ArtDirectory="."> | |
| 9 | <FloatPosition>0.000,0.000</FloatPosition> | |
| 10 | <!-- BACKGROUND BITMAP --> | |
| 11 | <Image id="eng_epr_back.bmp" Name="eng_epr_back.bmp"> | |
| 12 | <Transparent>True</Transparent> | |
| 13 | </Image> | |
| 14 | <!-- DIALS --> | |
| 15 | <Element id="Display text"> | |
| 16 | <!-- DIAL POSITION (54px to the left, 98 px down from top left corner of background bitmap) --> | |
| 17 | <FloatPosition>54.000,98.000</FloatPosition> | |
| 18 | <!-- Show when electrical power is available --> | |
| 19 | <Visibility>(A:CIRCUIT GENERAL PANEL ON, bool)</Visibility> | |
| 20 | <GaugeText id="GaugeText"> | |
| 21 | <Bold>True</Bold> | |
| 22 | <FontColor>White</FontColor> | |
| 23 | <FontFace>Quartz</FontFace> | |
| 24 | <FontHeight>13</FontHeight> | |
| 25 | <!-- Use standard EPR variable --> | |
| 26 | <GaugeString>%((A:TURB ENG PRESSURE RATIO:1,ratio))%!1.2f!</GaugeString> | |
| 27 | <HorizontalAlign>RIGHT</HorizontalAlign> | |
| 28 | <!-- Text box size --> | |
| 29 | <Size>29,29</Size> | |
| 30 | <Transparent>True</Transparent> | |
| 31 | <VerticalAlign>CENTER</VerticalAlign> | |
| 32 | </GaugeText> | |
| 33 | </Element> | |
| 34 | ||
| 35 | <Element id="epr_needle"> | |
| 36 | <!-- Position from top left corner of background bitmap --> | |
| 37 | <FloatPosition>69.000,71.000</FloatPosition> | |
| 38 | <Image id="eng_epr_needle.bmp" Name="eng_epr_needle.bmp"> | |
| 39 | <!-- Position from top left corner of background bitmap --> | |
| 40 | <Transparent>True</Transparent> | |
| 41 | <!-- Position of the rotational axis on the needle bitmap --> | |
| 42 | <Axis>10.000,7.000</Axis> | |
| 43 | </Image> | |
| 44 | <Rotation id="Rotation"> | |
| 45 | <!-- Initial position of the needle. East = 90° --> | |
| 46 | <PointsTo>EAST</PointsTo> | |
| 47 | <Expression id="Expression"> | |
| 48 | <!-- Rotates when EPR is between 0 and 3 --> | |
| 49 | <Minimum>0.000</Minimum> | |
| 50 | <Maximum>3.000</Maximum> | |
| 51 | <!-- This default FSX A: var drives the needle --> | |
| 52 | <Script>(A:TURB ENG PRESSURE RATIO:1,ratio)</Script> | |
| 53 | </Expression> | |
| 54 | <!-- This makes sure that the needle is rotated by a specified amount of degrees when the EPR is at a certain value --> | |
| 55 | <NonlinearityTable id="NonlinearityTable"> | |
| 56 | <NonlinearityEntry id="NonlinearityEntry"> | |
| 57 | <ExpressionResult>1.000</ExpressionResult> | |
| 58 | <Degrees>1</Degrees> | |
| 59 | </NonlinearityEntry> | |
| 60 | <NonlinearityEntry id="NonlinearityEntry"> | |
| 61 | <ExpressionResult>2.000</ExpressionResult> | |
| 62 | <Degrees>166</Degrees> | |
| 63 | </NonlinearityEntry> | |
| 64 | <NonlinearityEntry id="NonlinearityEntry"> | |
| 65 | <ExpressionResult>3.000</ExpressionResult> | |
| 66 | <Degrees>332</Degrees> | |
| 67 | </NonlinearityEntry> | |
| 68 | </NonlinearityTable> | |
| 69 | </Rotation> | |
| 70 | </Element> | |
| 71 | <!-- EPR bug --> | |
| 72 | <Element id="epr_marker"> | |
| 73 | <!-- Placement of the top left corner of the bug bitmap from top left of background bitmap --> | |
| 74 | <FloatPosition>69.000,71.000</FloatPosition> | |
| 75 | <Image id="eng_epr_marker.bmp" Name="eng_epr_marker.bmp"> | |
| 76 | <Transparent>True</Transparent> | |
| 77 | <!-- Placement of the rotational axis on the bug bitmap --> | |
| 78 | <Axis>1.000,1.000</Axis> | |
| 79 | </Image> | |
| 80 | <Rotation id="Rotation"> | |
| 81 | <!-- Same as for the needle above --> | |
| 82 | <PointsTo>EAST</PointsTo> | |
| 83 | <Expression id="Expression"> | |
| 84 | <Minimum>1.000</Minimum> | |
| 85 | <Maximum>3.000</Maximum> | |
| 86 | <!-- A custom variable (L: type) drives the bug --> | |
| 87 | <Script>(L:EPRPRESET01, number) 1 *</Script> | |
| 88 | </Expression> | |
| 89 | <NonlinearityTable id="NonlinearityTable"> | |
| 90 | <NonlinearityEntry id="NonlinearityEntry"> | |
| 91 | <ExpressionResult>1.000</ExpressionResult> | |
| 92 | <Degrees>1</Degrees> | |
| 93 | </NonlinearityEntry> | |
| 94 | <NonlinearityEntry id="NonlinearityEntry"> | |
| 95 | <ExpressionResult>2.000</ExpressionResult> | |
| 96 | <Degrees>166</Degrees> | |
| 97 | </NonlinearityEntry> | |
| 98 | <NonlinearityEntry id="NonlinearityEntry"> | |
| 99 | <ExpressionResult>3.000</ExpressionResult> | |
| 100 | <Degrees>332</Degrees> | |
| 101 | </NonlinearityEntry> | |
| 102 | </NonlinearityTable> | |
| 103 | </Rotation> | |
| 104 | </Element> | |
| 105 | ||
| 106 | <!-- EPR bug knob --> | |
| 107 | <Element id="epr_button"> | |
| 108 | <!-- Placement of the bug knob on the background bitmap --> | |
| 109 | <FloatPosition>132.000,133.000</FloatPosition> | |
| 110 | <Image id="eng_epr_button.bmp" Name="eng_epr_button.bmp"> | |
| 111 | <Transparent>True</Transparent> | |
| 112 | <Axis>16.000,15.000</Axis> | |
| 113 | </Image> | |
| 114 | <Rotation id="Rotation"> | |
| 115 | <PointsTo>WEST</PointsTo> | |
| 116 | <Expression id="Expression"> | |
| 117 | <Minimum>0.000</Minimum> | |
| 118 | <Maximum>20.000</Maximum> | |
| 119 | <!-- Same variable as for the bug drives the rotation of the knob --> | |
| 120 | <Script>(L:EPRPRESET01, number) 5.5 *</Script> | |
| 121 | </Expression> | |
| 122 | </Rotation> | |
| 123 | </Element> | |
| 124 | ||
| 125 | <!-- Clickspots for the gauge --> | |
| 126 | <!-- Master Clickspot --> | |
| 127 | <MouseArea id="MouseArea"> | |
| 128 | <!-- Starts at top left of the gauge background bitmap... --> | |
| 129 | <FloatPosition>0.000,0.000</FloatPosition> | |
| 130 | <!-- ...and is the same size as the background bitmap --> | |
| 131 | <Size>148,149</Size> | |
| 132 | <MouseArea id="Set Knob"> | |
| 133 | <!-- Clickspots for the knob --> | |
| 134 | <!-- About the same position as the knob bitmap --> | |
| 135 | <FloatPosition>113.000,116.000</FloatPosition> | |
| 136 | <!-- About the same size as the knob bitmap --> | |
| 137 | <Size>33,32</Size> | |
| 138 | <!-- Clickspot is split in two left half... --> | |
| 139 | <MouseArea id="Decrement"> | |
| 140 | <!-- Starts at the top left corner of the EPR knob master clickspot... --> | |
| 141 | <FloatPosition>0.000,0.000</FloatPosition> | |
| 142 | <!-- ...but is only half its size --> | |
| 143 | <Size>15,31</Size> | |
| 144 | <CursorType>DownArrow</CursorType> | |
| 145 | <MouseClick id="MouseClick"> | |
| 146 | - | <!-- Operation to execute upon clicking the clickspot. Here: Decrease the EPR preset by 0.01 between the values of 1 and 2.4 --> |
| 146 | + | <!-- 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 --> |
| 147 | <Script> | |
| 148 | (L:EPRPRESET01, number) 0.01 - 1 max 2.4 min (>L:EPRPRESET01, number) | |
| 149 | </Script> | |
| 150 | <ClickRepeat>True</ClickRepeat> | |
| 151 | </MouseClick> | |
| 152 | </MouseArea> | |
| 153 | <!-- ...right half of the clickspot. Works just the same as above, except... --> | |
| 154 | <MouseArea id="Increment"> | |
| 155 | <!-- It's placed right by half the width of the master clickspot... --> | |
| 156 | <FloatPosition>16.000,0.000</FloatPosition> | |
| 157 | <!-- ...but is the same size as the decrement clickspot above --> | |
| 158 | <Size>15,31</Size> | |
| 159 | <CursorType>UpArrow</CursorType> | |
| 160 | <MouseClick id="MouseClick"> | |
| 161 | - | <!-- Operation: Increase the EPR preset by 0.01 between the values of 1 and 2.4 --> |
| 161 | + | <!-- 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 --> |
| 162 | <Script> | |
| 163 | (L:EPRPRESET01, number) 0.01 + 1 max 2.4 min (>L:EPRPRESET01, number) | |
| 164 | </Script> | |
| 165 | <ClickRepeat>True</ClickRepeat> | |
| 166 | </MouseClick> | |
| 167 | </MouseArea> | |
| 168 | <!-- Tooltip for the master knob clickspot. Here: Show current value for the custom EPR preset variable. --> | |
| 169 | <Tooltip id="Tooltip"> | |
| 170 | <DefaultScript>EPR PRESET:%((L:EPRPRESET01, number))%! 1.2f! </DefaultScript> | |
| 171 | </Tooltip> | |
| 172 | </MouseArea> | |
| 173 | <!-- Tooltip for the master clickspot. Here: Show current EPR value and current thrust --> | |
| 174 | <Tooltip id="Tooltip"> | |
| 175 | <DefaultScript>EPR: %((A:TURB ENG PRESSURE RATIO:1,ratio))%!1.3f! Thrust: %((A:TURB ENG JET THRUST:1,pounds))%!1.0f!lbs</DefaultScript> | |
| 176 | </Tooltip> | |
| 177 | </MouseArea> | |
| 178 | ||
| 179 | </SimGauge.Gauge> | |
| 180 | </SimBase.Document> |