c172p-right-fuel-dialog
vbox
false
false
true
# Fuel tanks being used
var integral_tanks = getprop("/fdm/jsbsim/fuel/tank");
if (integral_tanks) {
setprop("/consumables/fuel/right/level-norm", getprop("/consumables/fuel/tank[3]/level-norm"));
setprop("/consumables/fuel/right/level-gal_us", getprop("/consumables/fuel/tank[3]/level-gal_us"));
setprop("/consumables/fuel/right/level-lbs", getprop("/consumables/fuel/tank[3]/level-lbs"));
setprop("/consumables/fuel/right/level-litres", getprop("/consumables/fuel/tank[3]/level-litres"));
} else {
setprop("/consumables/fuel/right/level-norm", getprop("/consumables/fuel/tank[1]/level-norm"));
setprop("/consumables/fuel/right/level-gal_us", getprop("/consumables/fuel/tank[1]/level-gal_us"));
setprop("/consumables/fuel/right/level-lbs", getprop("/consumables/fuel/tank[1]/level-lbs"));
setprop("/consumables/fuel/right/level-litres", getprop("/consumables/fuel/tank[1]/level-litres"));
}
hbox
true
true
vbox
6
hbox
left
c172p-right-fuel-slider
0
1
true
/fdm/jsbsim/gear/unit[1]/WOW
/fdm/jsbsim/gear/unit[19]/WOW
/fdm/jsbsim/gear/unit[23]/WOW
/fdm/jsbsim/hydro/active-norm
/engines/active-engine/running
/consumables/fuel/right/level-norm
dialog-apply
nasal
vbox
6
hbox
6
left
%.2f
true
/consumables/fuel/right/level-gal_us
left
hbox
6
left
%.1f
true
/consumables/fuel/right/level-lbs
left
hbox
6
left
%.2f
true
/consumables/fuel/right/level-litres
left
table
0
0
/fdm/jsbsim/gear/unit[1]/WOW
/fdm/jsbsim/gear/unit[19]/WOW
/fdm/jsbsim/gear/unit[23]/WOW
/fdm/jsbsim/hydro/active-norm
/engines/active-engine/running
0.9
0.1
0.1
0
0
/fdm/jsbsim/gear/unit[1]/WOW
/fdm/jsbsim/gear/unit[19]/WOW
/fdm/jsbsim/gear/unit[23]/WOW
/fdm/jsbsim/hydro/active-norm
0.9
0.1
0.1
hbox
6
true