c172p-left-fuel-dialog vbox false false true # Fuel tanks being used var integral_tanks = getprop("/fdm/jsbsim/fuel/tank"); if (integral_tanks) { setprop("/consumables/fuel/left/level-norm", getprop("/consumables/fuel/tank[2]/level-norm")); setprop("/consumables/fuel/left/level-gal_us", getprop("/consumables/fuel/tank[2]/level-gal_us")); setprop("/consumables/fuel/left/level-lbs", getprop("/consumables/fuel/tank[2]/level-lbs")); setprop("/consumables/fuel/left/level-litres", getprop("/consumables/fuel/tank[2]/level-litres")); } else { setprop("/consumables/fuel/left/level-norm", getprop("/consumables/fuel/tank[0]/level-norm")); setprop("/consumables/fuel/left/level-gal_us", getprop("/consumables/fuel/tank[0]/level-gal_us")); setprop("/consumables/fuel/left/level-lbs", getprop("/consumables/fuel/tank[0]/level-lbs")); setprop("/consumables/fuel/left/level-litres", getprop("/consumables/fuel/tank[0]/level-litres")); } hbox true true vbox 6 hbox left c172p-left-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/left/level-norm dialog-apply nasal vbox 6 hbox 6 left %.2f true /consumables/fuel/left/level-gal_us left hbox 6 left %.1f true /consumables/fuel/left/level-lbs left hbox 6 left %.2f true /consumables/fuel/left/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