1
0
Fork 0

disable "Autopilot" menu when using KAP140

This commit is contained in:
mfranz 2005-12-08 22:51:23 +00:00
parent 4a52305a73
commit 7e982f91c2

View file

@ -46,10 +46,14 @@ INIT = func {
props.globals.getNode("/sim/help/basic", 1).setValues(basic_keys);
props.globals.getNode("/sim/help/common", 1).setValues(common_aircraft_keys);
# enable "Fuel & Payload" dialog
# enable "Fuel & Payload" menu entry
if (getprop("/sim/flight-model") == "yasim") {
setprop("/sim/menubar/default/menu[5]/item[0]/enabled", 1);
}
# disable "Autopilot" menu entry when KAP140 is used
if (props.globals.getNode("/autopilot/KAP140/locks") != nil) {
setprop("/sim/menubar/default/menu[3]/enabled", 0);
}
}
settimer(INIT, 0);