fbf4be91e3
from https://github.com/c172p-team/c172p/releases/tag/version%2F2020.4 f0e108bca8ebfde42c8496df84dd580716242a0d
19 lines
744 B
Text
19 lines
744 B
Text
#
|
|
# Listeners to tie the /consumables/fuels/tank[]/selected to
|
|
# /fdm/jsbsim/propulsion/tank[]/priority
|
|
|
|
setlistener("consumables/fuel/tank[0]/selected", func(selected) {
|
|
setprop("/fdm/jsbsim/propulsion/tank[0]/priority", selected.getBoolValue() ? 1 : 0);
|
|
});
|
|
|
|
setlistener("consumables/fuel/tank[1]/selected", func(selected) {
|
|
setprop("/fdm/jsbsim/propulsion/tank[1]/priority", selected.getBoolValue() ? 1 : 0);
|
|
});
|
|
|
|
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);
|
|
});
|