1
0
Fork 0
fgdata/Aircraft/c172p/Dialogs/c172p-menu.xml

66 lines
1.9 KiB
XML
Raw Normal View History

2008-10-11 23:17:23 +00:00
<?xml version="1.0"?>
<PropertyList>
<default>
<menu n="10">
<label>Cessna C172P</label>
<enabled type="bool">true</enabled>
<item>
2012-09-21 21:59:27 +00:00
<name>select-livery</name>
2008-10-11 23:17:23 +00:00
<binding>
<command>nasal</command>
<script>aircraft.livery.dialog.toggle()</script>
</binding>
</item>
<item>
2012-09-21 21:59:27 +00:00
<name>immatriculation</name>
2008-10-11 23:17:23 +00:00
<binding>
<command>nasal</command>
<script>c172p.immat_dialog.toggle()</script>
</binding>
</item>
<item>
2012-09-21 21:59:27 +00:00
<name>show-hide-yokes</name>
<binding>
<command>property-toggle</command>
<property>sim/model/hide-yoke</property>
</binding>
</item>
<item>
<name>autostart</name>
<binding>
<command>nasal</command>
<script>
if (getprop("/engines/engine/running")) {
gui.popupTip("Engine already running.", 5);
} else {
setprop("/controls/engines/engine/magnetos", 3);
setprop("/controls/engines/engine/throttle", 0.2);
setprop("/controls/engines/engine/mixture", 1.0);
setprop("/controls/flight/elevator-trim", -0.19);
setprop("/controls/lighting/nav-lights", 1);
setprop("/controls/lighting/strobe", 1);
setprop("/controls/lighting/beacon", 1);
setprop("/consumables/fuel/tank[0]/selected", 1);
setprop("/consumables/fuel/tank[1]/selected", 1);
# Set the altimeter
setprop("/instrumentation/altimeter/setting-inhg", getprop("/environment/pressure-sea-level-inhg"));
gui.popupTip("Hold down \"s\" to start the engine.", 5);
}
</script>
</binding>
</item>
2008-10-11 23:17:23 +00:00
</menu>
</default>
</PropertyList>