Ok, first time that I deal with images in a 2d gauge, and obviously I'm somewhat on the wrong track with this one.
I'm working on a loadout manager and I want to give a little graphical feedback to the user about fuel level in the varous tanks.
The below code only works at exactly the defined expression results but displays nothing inbetween, it displays an image at exactly 20, 40, 60, 80 and 100% but nothing at for instance 65%.
What am I doing wrong?
I'm working on a loadout manager and I want to give a little graphical feedback to the user about fuel level in the varous tanks.
The below code only works at exactly the defined expression results but displays nothing inbetween, it displays an image at exactly 20, 40, 60, 80 and 100% but nothing at for instance 65%.
What am I doing wrong?
Code:
<Element id="display center 1 tank">
<FloatPosition>156.000,135.000</FloatPosition>
<Select id="Select">
<Expression id="Expression">
<Script>(A:FUEL TANK CENTER LEVEL,percent)</Script>
</Expression>
<Case id="Case 0">
<ExpressionResult>0</ExpressionResult>
<Image id="empty.bmp" Name="empty.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case 20">
<ExpressionResult>20</ExpressionResult>
<Image id="center1_20.bmp" Name="center1_20.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case 40">
<ExpressionResult>40</ExpressionResult>
<Image id="center1_40.bmp" Name="center1_40.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case 60">
<ExpressionResult>60</ExpressionResult>
<Image id="center1_60.bmp" Name="center1_60.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case 80">
<ExpressionResult>80</ExpressionResult>
<Image id="center1_80.bmp" Name="center1_80.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case 100">
<ExpressionResult>100</ExpressionResult>
<Image id="center1_100.bmp" Name="center1_100.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>

