Optionsvboxfalsefalsetrue3
if ( getprop("/sim/rendering/rembrandt/enabled")) {
setprop("sim/model/ec130/shadow",0);
}
var p = getprop("/sim/model/ec130/cockpit-windscreen-option");
setprop("/sim/model/ec130/cockpit_windscreen_flag_0",0);
setprop("/sim/model/ec130/cockpit_windscreen_flag_1",0);
setprop("/sim/model/ec130/cockpit_windscreen_flag_2",0);
if ( p == 0 ) { setprop("/sim/model/ec130/cockpit_windscreen_flag_0",1); }
if ( p == 1 ) { setprop("/sim/model/ec130/cockpit_windscreen_flag_1",1); }
if ( p == 2 ) { setprop("/sim/model/ec130/cockpit_windscreen_flag_2",1); }
var p = getprop("/sim/model/searchlight/cone-visibility");
setprop("/sim/model/searchlight/cone_flag_0",0);
setprop("/sim/model/searchlight/cone_flag_1",0);
setprop("/sim/model/searchlight/cone_flag_2",0);
setprop("/sim/model/searchlight/cone_flag_3",0);
if ( p == 0 ) { setprop("/sim/model/searchlight/cone_flag_0",1); }
if ( p == 1 ) { setprop("/sim/model/searchlight/cone_flag_1",1); }
if ( p == 2 ) { setprop("/sim/model/searchlight/cone_flag_2",1); }
if ( p == 3 ) { setprop("/sim/model/searchlight/cone_flag_3",1); }
var p = getprop("rotors/main/wakevisible");
setprop("rotors/main/wake_flag_0",0);
setprop("rotors/main/wake_flag_1",0);
setprop("rotors/main/wake_flag_2",0);
setprop("rotors/main/wake_flag_3",0);
if ( p == 0 ) { setprop("rotors/main/wake_flag_0",1); }
if ( p == 1 ) { setprop("rotors/main/wake_flag_1",1); }
if ( p == 2 ) { setprop("rotors/main/wake_flag_2",1); }
if ( p == 3 ) { setprop("rotors/main/wake_flag_3",1); }
if ( getprop("/sim/model/variant") == "1" ) {
setprop("/sim/gui/dialogs/ec130/options/dialog/group/text/label", "EC130-B4 Simulation Options (AltGr-o)");
} else {
setprop("/sim/gui/dialogs/ec130/options/dialog/group/text/label", " H130 Simulation Options (AltGr-o)");
}
# just kept for educational purposes :-)hbox1truetable5left0