8b21d297c8
From https://github.com/c172p-team/c172p-detailed.git Commit 7c4261ae6bc4f299e07f9f3bdf0c5de21b643826
100 lines
3.1 KiB
XML
100 lines
3.1 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
|
|
|
<default>
|
|
|
|
<menu n="10">
|
|
<label>Cessna C172P</label>
|
|
<enabled type="bool">true</enabled>
|
|
<item>
|
|
<label>Aircraft Options</label>
|
|
<binding>
|
|
<command>dialog-show</command>
|
|
<dialog-name>aircraft-dialog</dialog-name>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Ground Equipment</label>
|
|
<binding>
|
|
<command>dialog-show</command>
|
|
<dialog-name>ground-equipment</dialog-name>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Select Livery</label>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>aircraft.livery.dialog.toggle()</script>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Registration</label>
|
|
<binding>
|
|
<command>dialog-show</command>
|
|
<dialog-name>registration-dialog</dialog-name>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Flashlight</label>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.toggle_flashlight()</script>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Show/Hide Yokes</label>
|
|
<binding>
|
|
<command>property-toggle</command>
|
|
<property>/sim/model/hide-yoke</property>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Autostart</label>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.autostart()</script>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>Panel in a Browser</label>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
if (getprop("/sim/http/running")) {
|
|
var port = getprop("/sim/http/options/listening-port");
|
|
var url = sprintf("http://localhost:%d/aircraft-dir/WebPanel/c172p-webpanel.html", port);
|
|
fgcommand("open-browser", props.Node.new({ "url": url }));
|
|
}
|
|
else {
|
|
gui.popupTip("Internal webserver not running. Restart FlightGear with --httpd=8080", 5.0);
|
|
}
|
|
</script>
|
|
</binding>
|
|
</item>
|
|
|
|
<item>
|
|
<label>------------------</label>
|
|
<enabled>false</enabled>
|
|
</item>
|
|
|
|
<item>
|
|
<label>About This Aircraft</label>
|
|
<binding>
|
|
<command>dialog-show</command>
|
|
<dialog-name>c172p-about-dialog</dialog-name>
|
|
</binding>
|
|
</item>
|
|
|
|
</menu>
|
|
|
|
</default>
|
|
|
|
</PropertyList>
|