I am in the middle of coding the fuel panel for my Learjet, as it only burns fuel from the wing tanks I am using a fuel manager to only use fuel from the tip tanks first then the wing tanks which means that the fuel from the fuselage tank has to be manually transfered into the wing tanks via a switch on the fuel panel, I am using Doug Dawson's excellent dsd_fuel_dump gauge to do this, I have managed to code the switch, but there is a problem that when in the sim the switch is in the off position & I click it on it shows in the on position & begins transfering fuel from the fuselage tank into the wing tanks but when I click into the off position the on switch disappears & off position switch does not appear but it does stop tranfering fuel.
Here's the code:
I would appreciate any help given.
Here's the code:
Code:
<Element id="XFER SW">
<FloatPosition>50.000,58.500</FloatPosition>
<Select id="Select">
<Expression id="Expression">
<Script>(L:Fuel_Xfer_Switch,enum)</Script>
</Expression>
<Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
<Image id="Fuel_Panel_SW_Mid.bmp" Name="Fuel_Panel_SW_Mid.bmp">
<Transparent>True</Transparent>
<Axis>20.000,38.500</Axis>
<Bright>True</Bright>
</Image>
</Case>
<Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
<Image id="Fuel_Panel_SW_On.bmp" Name="Fuel_Panel_SW_On.bmp">
<Transparent>True</Transparent>
<Axis>20.000,38.500</Axis>
</Image>
</Case>
</Select>
</Element>
<MouseArea id="MouseArea">
<FloatPosition>10.000,10.000</FloatPosition>
<Size>80,100</Size>
<MouseArea id="MouseArea">
<FloatPosition>0.000,0.000</FloatPosition>
<Size>40,50</Size>
<CursorType>DownArrow</CursorType>
<MouseClick id="MouseClick">
<Script> (L:Fuel_Xfer_Switch,enum) 0 >
if{
(L:Fuel_Xfer_Switch,enum) ++ (>L:Fuel_Xfer_Switch,enum)
0 (>L:RATE_TANK_MAIN_LEFT, number)
0 (>L:RATE_TANK_MAIN_RIGHT, number)
0 (>L:RATE_TANK_CENTER, number)
}</Script>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
</MouseArea>
<MouseArea id="MouseArea">
<FloatPosition>0.000,50.000</FloatPosition>
<Size>80,100</Size>
<CursorType>UpArrow</CursorType>
<MouseClick id="MouseClick">
<Script> (L:Fuel_Xfer_Switch,enum) 1 <
if{
(L:Fuel_Xfer_Switch,enum) ++ (>L:Fuel_Xfer_Switch,enum)
-2000(>L:RATE_TANK_MAIN_LEFT, number)
-2000 (>L:RATE_TANK_MAIN_RIGHT, number)
2000 (>L:RATE_TANK_CENTER, number)
}</Script>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
</MouseArea>
I would appreciate any help given.



