1ab65221b1
https://github.com/Juanvvc/c172p-detailed commit 874b89fedff35dfe1967e09365d3cb0d5b11522c
426 lines
15 KiB
XML
426 lines
15 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- C172p-detailed
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
-->
|
|
|
|
<PropertyList>
|
|
|
|
<name>aircraft-dialog</name>
|
|
<layout>vbox</layout>
|
|
<resizable>false</resizable>
|
|
<modal>false</modal>
|
|
<draggable>true</draggable>
|
|
|
|
<nasal>
|
|
<open>
|
|
# Bush kit
|
|
var p = getprop("fdm/jsbsim/bushkit");
|
|
setprop("/sim/model/c172p/bushkit_flag_0", 0);
|
|
setprop("/sim/model/c172p/bushkit_flag_1", 0);
|
|
setprop("/sim/model/c172p/bushkit_flag_2", 0);
|
|
setprop("/sim/model/c172p/bushkit_flag_3", 0);
|
|
setprop("/sim/model/c172p/bushkit_flag_4", 0);
|
|
setprop("/sim/model/c172p/bushkit_flag_" ~ p, 1);
|
|
|
|
# Engine power
|
|
var p = getprop("/controls/engines/active-engine");
|
|
setprop("sim/model/c172p/engine_flag_0", 0);
|
|
setprop("sim/model/c172p/engine_flag_1", 0);
|
|
setprop("sim/model/c172p/engine_flag_" ~ p, 1);
|
|
</open>
|
|
</nasal>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
<text>
|
|
<label>Aircraft Options</label>
|
|
</text>
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
<legend/>
|
|
<key>Esc</key>
|
|
<pref-width>16</pref-width>
|
|
<pref-height>16</pref-height>
|
|
<binding>
|
|
<command>dialog-close</command>
|
|
</binding>
|
|
</button>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>vbox</layout>
|
|
<padding>6</padding>
|
|
|
|
<group>
|
|
<layout>vbox</layout>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Start with engine running</label>
|
|
<property>/fdm/jsbsim/running</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Complex start up procedures</label>
|
|
<property>/fdm/jsbsim/complex</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
</checkbox>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Damage</label>
|
|
<property>/fdm/jsbsim/settings/damage</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
</checkbox>
|
|
|
|
<button>
|
|
<halign>right</halign>
|
|
<legend>Repair</legend>
|
|
<pref-width>60</pref-width>
|
|
<pref-height>28</pref-height>
|
|
<visible>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</visible>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.repair_damage();electrical.reset_battery_and_circuit_breakers();c172p.click("engine-repair", 6.0)</script>
|
|
</binding>
|
|
</button>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>vbox</layout>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Show shadow</label>
|
|
<property>/sim/rendering/shadow-volume</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>property-toggle</command>
|
|
<property>/sim/rendering/shadow-volume</property>
|
|
</binding>
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Human models</label>
|
|
<property>/sim/model/occupants</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Disable frost and fog</label>
|
|
<property>/fdm/jsbsim/weather</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
<halign>left</halign>
|
|
<label>Show registration on panel</label>
|
|
<property>/sim/model/c172p/immat-on-panel</property>
|
|
<live>true</live>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
</checkbox>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>vbox</layout>
|
|
|
|
<text>
|
|
<label>Engine power options</label>
|
|
<halign>center</halign>
|
|
</text>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>160 HP</label>
|
|
<property>sim/model/c172p/engine_flag_0</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("/controls/engines/active-engine", 0);
|
|
setprop("sim/model/c172p/engine_flag_0", 1);
|
|
setprop("sim/model/c172p/engine_flag_1", 0);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>180 HP</label>
|
|
<property>sim/model/c172p/engine_flag_1</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("/controls/engines/active-engine", 1);
|
|
setprop("sim/model/c172p/engine_flag_0", 0);
|
|
setprop("sim/model/c172p/engine_flag_1", 1);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
</group>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>vbox</layout>
|
|
|
|
<text>
|
|
<label>Landing gear options</label>
|
|
<halign>center</halign>
|
|
</text>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>Default</label>
|
|
<property>sim/model/c172p/bushkit_flag_0</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("fdm/jsbsim/bushkit", 0);
|
|
setprop("sim/model/c172p/bushkit_flag_0",1);
|
|
setprop("sim/model/c172p/bushkit_flag_1",0);
|
|
setprop("sim/model/c172p/bushkit_flag_2",0);
|
|
setprop("sim/model/c172p/bushkit_flag_3",0);
|
|
setprop("sim/model/c172p/bushkit_flag_4",0);
|
|
|
|
# Select 160 HP engine
|
|
setprop("/controls/engines/active-engine", 0);
|
|
setprop("sim/model/c172p/engine_flag_0", 1);
|
|
setprop("sim/model/c172p/engine_flag_1", 0);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>26"</label>
|
|
<property>sim/model/c172p/bushkit_flag_1</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("fdm/jsbsim/bushkit", 1);
|
|
setprop("sim/model/c172p/bushkit_flag_0",0);
|
|
setprop("sim/model/c172p/bushkit_flag_1",1);
|
|
setprop("sim/model/c172p/bushkit_flag_2",0);
|
|
setprop("sim/model/c172p/bushkit_flag_3",0);
|
|
setprop("sim/model/c172p/bushkit_flag_4",0);
|
|
|
|
# Select 160 HP engine
|
|
setprop("/controls/engines/active-engine", 0);
|
|
setprop("sim/model/c172p/engine_flag_0", 1);
|
|
setprop("sim/model/c172p/engine_flag_1", 0);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>36"</label>
|
|
<property>sim/model/c172p/bushkit_flag_2</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("fdm/jsbsim/bushkit", 2);
|
|
setprop("sim/model/c172p/bushkit_flag_0",0);
|
|
setprop("sim/model/c172p/bushkit_flag_1",0);
|
|
setprop("sim/model/c172p/bushkit_flag_2",1);
|
|
setprop("sim/model/c172p/bushkit_flag_3",0);
|
|
setprop("sim/model/c172p/bushkit_flag_4",0);
|
|
|
|
# Select 160 HP engine
|
|
setprop("/controls/engines/active-engine", 0);
|
|
setprop("sim/model/c172p/engine_flag_0", 1);
|
|
setprop("sim/model/c172p/engine_flag_1", 0);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
</group>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>Floats</label>
|
|
<property>sim/model/c172p/bushkit_flag_3</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("fdm/jsbsim/bushkit", 3);
|
|
setprop("sim/model/c172p/bushkit_flag_0",0);
|
|
setprop("sim/model/c172p/bushkit_flag_1",0);
|
|
setprop("sim/model/c172p/bushkit_flag_2",0);
|
|
setprop("sim/model/c172p/bushkit_flag_3",1);
|
|
setprop("sim/model/c172p/bushkit_flag_4",0);
|
|
|
|
# Select 180 HP engine
|
|
setprop("/controls/engines/active-engine", 1);
|
|
setprop("sim/model/c172p/engine_flag_0", 0);
|
|
setprop("sim/model/c172p/engine_flag_1", 1);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
|
|
<radio>
|
|
<halign>left</halign>
|
|
<label>Amphibious</label>
|
|
<property>sim/model/c172p/bushkit_flag_4</property>
|
|
<live>true</live>
|
|
<enable>
|
|
<not>
|
|
<property>/sim/freeze/replay-state</property>
|
|
</not>
|
|
</enable>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
setprop("fdm/jsbsim/bushkit", 4);
|
|
setprop("sim/model/c172p/bushkit_flag_0",0);
|
|
setprop("sim/model/c172p/bushkit_flag_1",0);
|
|
setprop("sim/model/c172p/bushkit_flag_2",0);
|
|
setprop("sim/model/c172p/bushkit_flag_3",0);
|
|
setprop("sim/model/c172p/bushkit_flag_4",1);
|
|
|
|
# Select 180 HP engine
|
|
setprop("/controls/engines/active-engine", 1);
|
|
setprop("sim/model/c172p/engine_flag_0", 0);
|
|
setprop("sim/model/c172p/engine_flag_1", 1);
|
|
</script>
|
|
</binding>
|
|
</radio>
|
|
</group>
|
|
</group>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<default-padding>6</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
<legend>Close</legend>
|
|
<equal>true</equal>
|
|
<key>Esc</key>
|
|
<default>true</default>
|
|
<binding>
|
|
<command>dialog-close</command>
|
|
</binding>
|
|
</button>
|
|
</group>
|
|
|
|
</PropertyList>
|