1
0
Fork 0
fgdata/gui/menubar.xml

1135 lines
23 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<menu>
<name>file</name>
<item>
<name>reset</name>
<key>Shift-Esc</key>
<binding>
<command>reset</command>
</binding>
</item>
<item>
<name>flight-recorder-control</name>
<binding>
<command>dialog-show</command>
<dialog-name>flight-recorder-control</dialog-name>
</binding>
</item>
<item>
<name>time-mode</name>
<binding>
<command>dialog-show</command>
<dialog-name>time-mode</dialog-name>
</binding>
</item>
<item>
<name>snap-shot</name>
<key>F3</key>
<binding>
<command>nasal</command>
<script>
gui.popdown();
fgcommand("screen-capture");
</script>
</binding>
</item>
<item>
<name>snap-shot-dir</name>
<binding>
<command>nasal</command>
<script>gui.set_screenshotdir()</script>
</binding>
</item>
<item>
<name>video-start</name>
<enabled>true</enabled>
<binding>
<command>nasal</command>
<script>
fgcommand("video-start");
</script>
</binding>
</item>
<item>
<name>video-stop</name>
<enabled>false</enabled>
<binding>
<command>nasal</command>
<script>
fgcommand("video-stop");
</script>
</binding>
</item>
<item>
<name>video-control</name>
<binding>
<command>dialog-show</command>
<dialog-name>video-control</dialog-name>
</binding>
</item>
<item>
<name>sound-config</name>
<binding>
<command>dialog-show</command>
<dialog-name>sound-dialog</dialog-name>
</binding>
<enabled>false</enabled>
</item>
<item>
<name>input-config</name>
<binding>
<command>dialog-show</command>
<dialog-name>input-config</dialog-name>
</binding>
</item>
<item>
<name>joystick-config</name>
<binding>
<command>dialog-show</command>
<dialog-name>joystick-config</dialog-name>
</binding>
</item>
<item>
<name>terrasync</name>
<binding>
<command>dialog-show</command>
<dialog-name>terrasync</dialog-name>
</binding>
</item>
<!--item>
<name>aircraft-center</name>
<binding>
<command>open-launcher</command>
</binding>
</item-->
<item>
<name>error-reports</name>
<binding>
<command>show-error-report</command>
</binding>
</item>
<item>
<name>exit</name>
<key>Esc</key>
<binding>
<command>dialog-show</command>
<dialog-name>exit</dialog-name>
</binding>
</item>
</menu>
<menu>
<name>view</name>
<item>
<name>toggle-fullscreen</name>
<key>Shift-F10</key>
<binding>
<command>toggle-fullscreen</command>
</binding>
</item>
<item>
<name>rendering-options</name>
<binding>
<command>dialog-show</command>
<dialog-name>rendering</dialog-name>
</binding>
</item>
<item>
<name>view-options</name>
<binding>
<command>dialog-show</command>
<dialog-name>view</dialog-name>
</binding>
</item>
<item>
<name>cockpit-view-options</name>
<binding>
<command>dialog-show</command>
<dialog-name>cockpit-view</dialog-name>
</binding>
</item>
<item>
<name>adjust-lod</name>
<binding>
<command>dialog-show</command>
<dialog-name>static-lod</dialog-name>
</binding>
</item>
<item>
<name>pilot-offset</name>
<binding>
<command>dialog-show</command>
<dialog-name>pilot_offset</dialog-name>
</binding>
</item>
<item>
<name>adjust-hud</name>
<binding>
<command>dialog-show</command>
<dialog-name>hud</dialog-name>
</binding>
</item>
<item>
<name>toggle-glide-slope</name>
<binding>
<command>nasal</command>
<script>
var p = "/sim/rendering/glide-slope-tunnel";
setprop(p, var i = !getprop(p));
gui.popupTip("Glide slope tunnel " ~ (i ? "enabled" : "disabled"));
</script>
</binding>
</item>
<item>
<name>replay</name>
<key>Ctrl-R</key>
<binding>
<command>replay</command>
</binding>
<binding>
<command>dialog-show</command>
<dialog-name>replay</dialog-name>
</binding>
</item>
<item>
<label>Earthview orbital rendering</label>
<name>earthview</name>
<binding>
<command>dialog-show</command>
<dialog-name>earthview</dialog-name>
</binding>
<enabled>true</enabled>
</item>
<item>
<name>stereoscopic-options</name>
<binding>
<command>dialog-show</command>
<dialog-name>stereoscopic-view-options</dialog-name>
</binding>
<enabled>false</enabled>
</item>
<item>
<name>vr-options</name>
<binding>
<command>dialog-show</command>
<dialog-name>vr-options</dialog-name>
</binding>
<enabled>false</enabled>
</item>
<item>
<enabled>
<property>/sim/rendering/shaders/skydome</property>
</enabled>
<name>als-filter-effects</name>
<binding>
<command>dialog-show</command>
<dialog-name>als-filters</dialog-name>
</binding>
</item>
<item>
<enable>
<property>/sim/rendering/composite-viewer-enabled</property>
</enable>
<name>view-clone</name>
<binding>
<command>view-clone</command>
</binding>
</item>
<item>
<enable>
<property>/sim/rendering/composite-viewer-enabled</property>
</enable>
<name>view-push</name>
<binding>
<command>view-push</command>
</binding>
</item>
<item>
<enable>
<property>/sim/rendering/composite-viewer-enabled</property>
</enable>
<name>view-last-pair</name>
<binding>
<command>view-last-pair</command>
</binding>
</item>
<item>
<enable>
<property>/sim/rendering/composite-viewer-enabled</property>
</enable>
<name>view-last-pair-double</name>
<binding>
<command>view-last-pair-double</command>
</binding>
</item>
</menu>
<menu>
<name>location</name>
<item>
<name>position-in-air</name>
<binding>
<command>dialog-show</command>
<dialog-name>location-in-air</dialog-name>
</binding>
</item>
<item>
<name>goto-airport</name>
<binding>
<command>dialog-show</command>
<dialog-name>airports</dialog-name>
</binding>
</item>
<item>
<name>random-attitude</name>
<binding>
<command>property-assign</command>
<property>/sim/presets/trim</property>
<value>false</value>
</binding>
<binding>
<command>property-randomize</command>
<property>/orientation/pitch-deg</property>
<min>0</min>
<max>360</max>
</binding>
<binding>
<command>property-randomize</command>
<property>/orientation/roll-deg</property>
<min>0</min>
<max>360</max>
</binding>
<binding>
<command>property-randomize</command>
<property>/orientation/heading-deg</property>
<min>0</min>
<max>360</max>
</binding>
</item>
<item>
<name>tower-position</name>
<binding>
<command>dialog-show</command>
<dialog-name>location-of-tower</dialog-name>
</binding>
</item>
</menu>
<menu>
<name>autopilot</name>
<item>
<key>F11</key>
<name>autopilot-settings</name>
<binding>
<command>dialog-show</command>
<dialog-name>autopilot</dialog-name>
</binding>
</item>
<item>
<name>route-manager</name>
<binding>
<command>dialog-show</command>
<dialog-name>route-manager</dialog-name>
</binding>
</item>
<item>
<name>previous-waypoint</name>
<binding>
<command>nasal</command>
<script>setprop("/autopilot/route-manager/input", "@previous")</script>
</binding>
</item>
<item>
<name>next-waypoint</name>
<binding>
<command>nasal</command>
<script>setprop("/autopilot/route-manager/input", "@next")</script>
</binding>
</item>
</menu>
<menu>
<name>environment</name>
<item>
<name>global-weather</name>
<binding>
<command>dialog-show</command>
<dialog-name>weather</dialog-name>
</binding>
</item>
<item>
<name>environment-settings</name>
<binding>
<command>dialog-show</command>
<dialog-name>environment-settings</dialog-name>
</binding>
</item>
<item>
<name>time-settings</name>
<binding>
<command>dialog-show</command>
<dialog-name>timeofday</dialog-name>
</binding>
</item>
<item>
<label>Volcanoes</label>
<name>volcanoes</name>
<binding>
<command>nasal</command>
<script>
<![CDATA[
var varray = volcano.volcano_manager.volcano_array;
var n = size(varray);
var aircraft_pos = geo.aircraft_position();
var j = 0;
for (var i = 0; i< n; i=i+1)
{
#print(i, " ", varray[i].name);
var distance = aircraft_pos.distance_to(varray[i].pos);
if (distance < 150000.0) # only add nearby objects
{
var name = varray[i].name;
setprop("/environment/volcanoes/volcanoes-nearby/value["~j~"]", name);
if (j==0)
{setprop("/environment/volcanoes/volcano-selected", name);}
j=j+1;
}
}
]]>
</script>
</binding>
<binding>
<command>dialog-show</command>
<dialog-name>volcanoes</dialog-name>
</binding>
</item>
</menu>
<menu>
<name>equipment</name>
<item>
<name>map</name>
<key>Ctrl-M</key>
<binding>
<command>dialog-show</command>
<dialog-name>map</dialog-name>
</binding>
</item>
<item>
<name>map-canvas</name>
<!-- <key>Ctrl-M</key> -->
<binding>
<command>dialog-show</command>
<dialog-name>map-canvas</dialog-name>
</binding>
</item>
<item>
<name>map-browser</name>
<binding>
<command>nasal</command>
<script>
var n = props.globals.getNode("/sim/http/running");
if( props.globals.getNode("/").getValue("sim/http/running",0) != 1 ) {
gui.popupTip("Internal webserver not running. Restart FlightGear with -httpd=8080", 5.0);
} else {
var _url = "http://localhost:" ~ getprop("/sim/http/options/listening-port") ~ "#Map";
fgcommand("open-browser", props.Node.new({ "url": _url }));
}
</script>
</binding>
</item>
<item>
<name>stopwatch</name>
<binding>
<command>dialog-show</command>
<dialog-name>stopwatch-dialog</dialog-name>
</binding>
</item>
<item>
<name>fuel-and-payload</name>
<binding>
<command>nasal</command>
<script>gui.showWeightDialog()</script>
</binding>
</item>
<item>
<key>F12</key>
<name>radio</name>
<binding>
<command>dialog-show</command>
<dialog-name>radios</dialog-name>
</binding>
</item>
<item>
<name>gps</name>
<binding>
<command>dialog-show</command>
<dialog-name>gps</dialog-name>
</binding>
</item>
<item>
<name>instrument-settings</name>
<binding>
<command>dialog-show</command>
<dialog-name>instruments</dialog-name>
</binding>
</item>
<item>
<name>light-switches</name>
<binding>
<command>dialog-show</command>
<dialog-name>light-switches</dialog-name>
</binding>
</item>
<item>
<name>failure-submenu</name>
<enabled>false</enabled>
</item>
<item>
<name>random-failures</name>
<binding>
<command>dialog-show</command>
<dialog-name>random-failures</dialog-name>
</binding>
</item>
<item>
<name>system-failures</name>
<binding>
<command>dialog-show</command>
<dialog-name>system-failures</dialog-name>
</binding>
</item>
<item>
<name>instrument-failures</name>
<binding>
<command>dialog-show</command>
<dialog-name>instrument-failures</dialog-name>
</binding>
</item>
</menu>
<menu>
<name>ai</name>
<item>
<name>scenario</name>
<binding>
<command>dialog-show</command>
<dialog-name>scenario</dialog-name>
</binding>
</item>
<item>
<name>atc-in-range</name>
<binding>
<command>dialog-show</command>
<dialog-name>atc-freq-search</dialog-name>
</binding>
</item>
<item>
<name>wingman</name>
<binding>
<command>dialog-show</command>
<dialog-name>formation</dialog-name>
</binding>
</item>
<item>
<name>tanker</name>
<enabled>false</enabled>
<binding>
<command>dialog-show</command>
<dialog-name>tanker</dialog-name>
</binding>
</item>
<!--<item>
<name>carrier</name>
<binding>
<command>dialog-show</command>
<dialog-name>AIcarrier</dialog-name>
</binding>
</item>-->
<item>
<name>jetway</name>
<binding>
<command>dialog-show</command>
<dialog-name>jetways</dialog-name>
</binding>
</item>
<item>
<label>AI Objects</label>
<name>ai-objects</name>
<binding>
<command>nasal</command>
<script>
<![CDATA[
var carriers = props.globals.getNode("/ai/models").getChildren("carrier");
var i = 0;
foreach(c; carriers)
{
var name = c.getNode("dlg-name",1).getValue();
if (name != nil) # check whether a dialog is defined at all
{
var aircraft_pos = geo.aircraft_position();
var carrier_lat = c.getNode("position").getNode("latitude-deg").getValue();
var carrier_lon = c.getNode("position").getNode("longitude-deg").getValue();
var carrier_pos = geo.Coord.new();
carrier_pos.set_latlon(carrier_lat, carrier_lon);
var distance = aircraft_pos.distance_to(carrier_pos);
if (distance < 50000.0) # only add nearby objects
{
setprop("/ai/control/objects-nearby/value["~i~"]", name);
if (i==0)
{setprop("/ai/control/object-selected", name);}
i=i+1;
}
}
}
]]>
</script>
</binding>
<binding>
<command>dialog-show</command>
<dialog-name>ai-objects</dialog-name>
</binding>
</item>
</menu>
<menu>
<name>multiplayer</name>
<item>
<name>mp-settings</name>
<binding>
<command>dialog-show</command>
<dialog-name>multiplayer</dialog-name>
</binding>
</item>
<item>
<name>fgcom-settings</name>
<binding>
<command>dialog-show</command>
<dialog-name>fgcom</dialog-name>
</binding>
</item>
<item>
<name>mp-chat</name>
<binding>
<command>dialog-show</command>
<dialog-name>chat-full</dialog-name>
</binding>
</item>
<item>
<key>-</key>
<name>mp-chat-menu</name>
<binding>
<command>dialog-show</command>
<dialog-name>chat-menu</dialog-name>
</binding>
</item>
<item>
<name>mp-list</name>
<binding>
<command>nasal</command>
<script>multiplayer.dialog.show()</script>
</binding>
</item>
<item>
<name>mp-carrier</name>
<binding>
<command>nasal</command>
<script>
if (!contains(globals, "MPCarriers")) {
var base = "Aircraft/MPCarrier/Systems/MPCarriers.nas";
io.load_nasal(resolvepath(base), "MPCarriers");
}
MPCarriers.carrier_dialog.show();
</script>
</binding>
</item>
<item>
<name>lag-adjust</name>
<binding>
<command>dialog-show</command>
<dialog-name>lag-adjust</dialog-name>
</binding>
</item>
<item>
<name>swift_connection</name>
<binding>
<command>dialog-show</command>
<dialog-name>swift_connection</dialog-name>
</binding>
</item>
</menu>
<menu>
<name>debug</name>
<item>
<name>reload-gui</name>
<binding>
<command>reinit</command>
<subsystem>gui</subsystem>
</binding>
</item>
<item>
<name>reload-input</name>
<binding>
<command>reinit</command>
<subsystem>input</subsystem>
</binding>
</item>
<item>
<name>reload-hud</name>
<binding>
<command>reinit</command>
<subsystem>hud</subsystem>
</binding>
</item>
<item>
<name>reload-panel</name>
<binding>
<command>panel-load</command>
</binding>
</item>
<item>
<name>reload-autopilot</name>
<binding>
<command>reinit</command>
<subsystem>xml-autopilot</subsystem>
</binding>
<binding>
<command>reinit</command>
<subsystem>xml-proprules</subsystem>
</binding>
</item>
<item>
<name>reload-network</name>
<binding>
<command>reinit</command>
<subsystem>io</subsystem>
</binding>
</item>
<item>
<name>reload-model</name>
<binding>
<command>reinit</command>
<subsystem>aircraft-model</subsystem>
</binding>
</item>
<item>
<name>reload-materials</name>
<binding>
<command>reload-materials</command>
</binding>
</item>
<item>
<name>reload-scenery</name>
<binding>
<command>reinit</command>
<subsystem>scenery</subsystem>
</binding>
</item>
<item>
<name>nasal-console</name>
<binding>
<command>dialog-show</command>
<dialog-name>nasal-console</dialog-name>
</binding>
</item>
<item>
<name>nasal-repl-interpreter</name>
<binding>
<command>nasal</command>
<script>console.CanvasPlacement.new()</script>
</binding>
</item>
<item>
<name>nasal-test</name>
<binding>
<command>dialog-show</command>
<dialog-name>nasal-test</dialog-name>
</binding>
</item>
<item>
<name>development-keys</name>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/debug")</script>
</binding>
</item>
<item>
<name>configure-dev-extension</name>
<binding>
<command>dialog-show</command>
<dialog-name>devel-extensions</dialog-name>
</binding>
</item>
<item>
<name>display-marker</name>
<binding>
<command>nasal</command>
<script>
setprop("/nasal/tutorial/enabled",1); # load module on demand
tutorial.dialog();
</script>
</binding>
</item>
<item>
<name>dump-scene-graph</name>
<binding>
<command>dump-scenegraph</command>
</binding>
</item>
<item>
<name>print-rendering-statistics</name>
<binding>
<command>property-assign</command>
<property>/sim/rendering/print-statistics</property>
<value>true</value>
</binding>
</item>
<item>
<name>statistics-display</name>
<binding>
<command>property-adjust</command>
<property>/sim/rendering/on-screen-statistics</property>
<step type="int">1</step>
</binding>
</item>
<item>
<name>performance-monitor</name>
<binding>
<command>property-assign</command>
<property>/nasal/performance_monitor/enabled</property>
<value>true</value>
</binding>
<binding>
<command>nasal</command>
<script>performance_monitor.dialog.show()</script>
</binding>
</item>
<item>
<name>write-video-config</name>
<binding>
<command>nasal</command>
<script>video.save()</script>
</binding>
</item>
<item>
<name>property-browser</name>
<binding>
<command>nasal</command>
<script>gui.property_browser()</script>
</binding>
</item>
<item>
<name>fg1000-pfd</name>
<binding>
<command>nasal</command>
<script>
var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
if (! defined("fg1000")) {
io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000");
io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000");
var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance();
interfaceController.start();
}
var fg1000system = fg1000.FG1000.getOrCreateInstance();
var pfdindex = getprop("/sim/gui/fg1000/pfd-index");
if (pfdindex == nil) {
pfdindex = fg1000system.addPFD();
setprop("/sim/gui/fg1000/pfd-index", pfdindex);
}
fg1000system.displayGUI(pfdindex);
</script>
</binding>
</item>
<item>
<name>fg1000-mfd</name>
<binding>
<command>nasal</command>
<script>
var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
if (! defined("fg1000")) {
io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000");
io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000");
var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance();
interfaceController.start();
}
var fg1000system = fg1000.FG1000.getOrCreateInstance();
var mfdindex = getprop("/sim/gui/fg1000/mfd-index");
if (mfdindex == nil) {
mfdindex = fg1000system.addMFD();
setprop("/sim/gui/fg1000/mfd-index", mfdindex);
}
fg1000system.displayGUI(mfdindex);
</script>
</binding>
</item>
<item>
<name>logging</name>
<binding>
<command>dialog-show</command>
<dialog-name>logging</dialog-name>
</binding>
</item>
<item>
<name>local_weather</name>
<enabled>false</enabled>
<binding>
<command>dialog-show</command>
<dialog-name>local_weather</dialog-name>
</binding>
</item>
<item>
<name>print-scene-info</name>
<binding>
<command>print-visible-scene</command>
</binding>
</item>
<item>
<name>rendering-buffers</name>
<binding>
<command>property-toggle</command>
<property>/sim/rendering/rembrandt/show-buffers</property>
</binding>
<enabled>false</enabled>
</item>
<item>
<name>rembrandt-buffers-choice</name>
<binding>
<command>dialog-show</command>
<dialog-name>rembrandt-buffers</dialog-name>
</binding>
<enabled>false</enabled>
</item>
<item>
<name>cycle-gui</name>
<binding>
<command>nasal</command>
<script>gui.nextStyle()</script>
</binding>
</item>
</menu>
<menu>
<name>help</name>
<item>
<name>help-browser</name>
<binding>
<command>open-browser</command>
<path>Docs/index.html</path>
</binding>
</item>
<item>
<name>doc-browser</name>
<binding>
<command>dialog-show</command>
<dialog-name>doc-browser</dialog-name>
</binding>
</item>
<item>
<key>?</key>
<name>aircraft-keys</name>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help")</script>
</binding>
</item>
<item>
<name>aircraft-checklists</name>
<binding>
<command>dialog-show</command>
<dialog-name>checklist</dialog-name>
</binding>
</item>
<item>
<name>common-keys</name>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/common")</script>
</binding>
</item>
<item>
<name>basic-keys</name>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/basic")</script>
</binding>
</item>
<item>
<name>highlighting</name>
<label>Highlighting</label>
<binding>
<command>dialog-show</command>
<dialog-name>highlighting</dialog-name>
</binding>
</item>
<item>
<label>------------------</label>
<enabled>false</enabled>
</item>
<item>
<name>tutorial-start</name>
<binding>
<command>dialog-show</command>
<dialog-name>tutorial</dialog-name>
</binding>
</item>
<item>
<name>menu-about</name>
<binding>
<command>dialog-show</command>
<dialog-name>about</dialog-name>
</binding>
</item>
<item>
<name>scenery-sources</name>
<binding>
<command>dialog-show</command>
<dialog-name>scenery-sources</dialog-name>
</binding>
</item>
</menu>
</PropertyList>