Options vbox false false true 3 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 :-) hbox 1 true table 5 left 0 0 left 0 1 left sim/model/ec130/shadow true /sim/rendering/rembrandt/enabled dialog-apply left left table 5 left 0 0 left 0 1 left sim/model/ec130/cockpit_windscreen_flag_0 true dialog-apply nasal 0 2 left sim/model/ec130/cockpit_windscreen_flag_1 true dialog-apply nasal 0 3 left sim/model/ec130/cockpit_windscreen_flag_2 true dialog-apply nasal left left controls/electric/engine/generator /sim/model/searchlight/active table 5 left 0 0 left 0 1 left 0 2 left /sim/model/searchlight/cone_flag_0 true dialog-apply nasal 0 3 left /sim/model/searchlight/cone_flag_1 true dialog-apply nasal 1 2 left /sim/model/searchlight/cone_flag_2 true dialog-apply nasal 1 3 left /sim/model/searchlight/cone_flag_3 true dialog-apply nasal left left table 5 left 0 0 left 0 1 left 0 2 left rotors/main/wake_flag_0 true dialog-apply nasal 0 3 left rotors/main/wake_flag_1 true dialog-apply nasal 1 2 left rotors/main/wake_flag_2 true dialog-apply nasal 1 3 left rotors/main/wake_flag_3 true dialog-apply nasal hbox 3