2011-02-13 21:19:17 +00:00
|
|
|
#
|
|
|
|
# Listeners to tie the /consumables/fuels/tank[]/selected to
|
|
|
|
# /fdm/jsbsim/propulsion/tank[]/priority
|
|
|
|
|
|
|
|
setlistener("consumables/fuel/tank[0]/selected", func(selected) {
|
2016-02-10 21:32:19 +00:00
|
|
|
setprop("/fdm/jsbsim/propulsion/tank[0]/priority", selected.getBoolValue() ? 1 : 0);
|
2011-02-13 21:19:17 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
setlistener("consumables/fuel/tank[1]/selected", func(selected) {
|
2016-02-10 21:32:19 +00:00
|
|
|
setprop("/fdm/jsbsim/propulsion/tank[1]/priority", selected.getBoolValue() ? 1 : 0);
|
2011-02-13 21:19:17 +00:00
|
|
|
});
|
|
|
|
|
2021-09-14 18:34:27 +00:00
|
|
|
setlistener("consumables/fuel/tank[2]/selected", func(selected) {
|
|
|
|
setprop("/fdm/jsbsim/propulsion/tank[2]/priority", selected.getBoolValue() ? 1 : 0);
|
|
|
|
});
|
|
|
|
|
|
|
|
setlistener("consumables/fuel/tank[3]/selected", func(selected) {
|
|
|
|
setprop("/fdm/jsbsim/propulsion/tank[3]/priority", selected.getBoolValue() ? 1 : 0);
|
|
|
|
});
|