| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<PropertyList> |
| 4 |
|
| 5 |
<default> |
| 6 |
|
| 7 |
<menu n="10"> |
| 8 |
<label>Cessna C172P</label> |
| 9 |
<enabled type="bool">true</enabled> |
| 10 |
|
| 11 |
<item> |
| 12 |
<label>Autostart</label> |
| 13 |
<binding> |
| 14 |
<command>nasal</command> |
| 15 |
<script>c172p.autostart()</script> |
| 16 |
</binding> |
| 17 |
</item> |
| 18 |
|
| 19 |
<item> |
| 20 |
<label>Aircraft Options</label> |
| 21 |
<binding> |
| 22 |
<command>dialog-show</command> |
| 23 |
<dialog-name>aircraft-dialog</dialog-name> |
| 24 |
</binding> |
| 25 |
</item> |
| 26 |
|
| 27 |
<item> |
| 28 |
<label>Ground Operations</label> |
| 29 |
<binding> |
| 30 |
<command>dialog-show</command> |
| 31 |
<dialog-name>ground-operations</dialog-name> |
| 32 |
</binding> |
| 33 |
</item> |
| 34 |
|
| 35 |
<item> |
| 36 |
<label>Select Livery</label> |
| 37 |
<binding> |
| 38 |
<command>nasal</command> |
| 39 |
<script>aircraft.livery.dialog.toggle()</script> |
| 40 |
</binding> |
| 41 |
</item> |
| 42 |
|
| 43 |
<item> |
| 44 |
<label>Registration</label> |
| 45 |
<binding> |
| 46 |
<command>dialog-show</command> |
| 47 |
<dialog-name>registration-dialog</dialog-name> |
| 48 |
</binding> |
| 49 |
</item> |
| 50 |
|
| 51 |
<item> |
| 52 |
<label>Flashlight</label> |
| 53 |
<binding> |
| 54 |
<command>property-cycle</command> |
| 55 |
<property>/sim/walker/flashlight/mode</property> |
| 56 |
<value type="int">0</value> |
| 57 |
<value type="int">1</value> |
| 58 |
<value type="int">2</value> |
| 59 |
</binding> |
| 60 |
</item> |
| 61 |
|
| 62 |
<item> |
| 63 |
<label>Show/Hide Yokes</label> |
| 64 |
<binding> |
| 65 |
<command>property-toggle</command> |
| 66 |
<property>/sim/model/hide-yoke</property> |
| 67 |
</binding> |
| 68 |
</item> |
| 69 |
|
| 70 |
<item> |
| 71 |
<label>Panel in a Browser</label> |
| 72 |
<binding> |
| 73 |
<command>nasal</command> |
| 74 |
<script> |
| 75 |
if (getprop("/sim/http/running")) { |
| 76 |
var port = getprop("/sim/http/options/listening-port"); |
| 77 |
var url = sprintf("http://localhost:%d/aircraft-dir/WebPanel/c172p-webpanel.html", port); |
| 78 |
fgcommand("open-browser", props.Node.new({ "url": url })); |
| 79 |
} |
| 80 |
else { |
| 81 |
gui.popupTip("Internal webserver not running. Restart FlightGear with --httpd=8080", 5.0); |
| 82 |
} |
| 83 |
</script> |
| 84 |
</binding> |
| 85 |
</item> |
| 86 |
|
| 87 |
<item> |
| 88 |
<label>Mooring Parameters</label> |
| 89 |
<binding> |
| 90 |
<command>dialog-show</command> |
| 91 |
<dialog-name>mooring-parameters</dialog-name> |
| 92 |
</binding> |
| 93 |
</item> |
| 94 |
|
| 95 |
<item> |
| 96 |
<label>Save/Resume</label> |
| 97 |
<binding> |
| 98 |
<command>dialog-show</command> |
| 99 |
<dialog-name>save</dialog-name> |
| 100 |
</binding> |
| 101 |
</item> |
| 102 |
|
| 103 |
<item> |
| 104 |
<label>------------------</label> |
| 105 |
<enabled>false</enabled> |
| 106 |
</item> |
| 107 |
|
| 108 |
<item> |
| 109 |
<label>About This Aircraft</label> |
| 110 |
<binding> |
| 111 |
<command>dialog-show</command> |
| 112 |
<dialog-name>c172p-about-dialog</dialog-name> |
| 113 |
</binding> |
| 114 |
</item> |
| 115 |
|
| 116 |
</menu> |
| 117 |
|
| 118 |
</default> |
| 119 |
|
| 120 |
</PropertyList> |