| 1 |
<?xml version="1.0"?> |
| 2 |
<PropertyList> |
| 3 |
|
| 4 |
<menu> |
| 5 |
<name>file</name> |
| 6 |
|
| 7 |
<item> |
| 8 |
<name>reset</name> |
| 9 |
<key>Shift-Esc</key> |
| 10 |
<binding> |
| 11 |
<command>reset</command> |
| 12 |
</binding> |
| 13 |
</item> |
| 14 |
|
| 15 |
<item> |
| 16 |
<name>flight-recorder-control</name> |
| 17 |
<binding> |
| 18 |
<command>dialog-show</command> |
| 19 |
<dialog-name>flight-recorder-control</dialog-name> |
| 20 |
</binding> |
| 21 |
</item> |
| 22 |
|
| 23 |
<item> |
| 24 |
<name>time-mode</name> |
| 25 |
<binding> |
| 26 |
<command>dialog-show</command> |
| 27 |
<dialog-name>time-mode</dialog-name> |
| 28 |
</binding> |
| 29 |
</item> |
| 30 |
|
| 31 |
<item> |
| 32 |
<name>snap-shot</name> |
| 33 |
<key>F3</key> |
| 34 |
<binding> |
| 35 |
<command>nasal</command> |
| 36 |
<script> |
| 37 |
gui.popdown(); |
| 38 |
fgcommand("screen-capture"); |
| 39 |
</script> |
| 40 |
</binding> |
| 41 |
</item> |
| 42 |
|
| 43 |
<item> |
| 44 |
<name>snap-shot-dir</name> |
| 45 |
<binding> |
| 46 |
<command>nasal</command> |
| 47 |
<script>gui.set_screenshotdir()</script> |
| 48 |
</binding> |
| 49 |
</item> |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
<item> |
| 62 |
<name>sound-config</name> |
| 63 |
<binding> |
| 64 |
<command>dialog-show</command> |
| 65 |
<dialog-name>sound-dialog</dialog-name> |
| 66 |
</binding> |
| 67 |
<enabled>false</enabled> |
| 68 |
</item> |
| 69 |
|
| 70 |
<item> |
| 71 |
<name>input-systems</name> |
| 72 |
<binding> |
| 73 |
<command>dialog-show</command> |
| 74 |
<dialog-name>input-systems</dialog-name> |
| 75 |
</binding> |
| 76 |
</item> |
| 77 |
|
| 78 |
<item> |
| 79 |
<name>terrasync</name> |
| 80 |
<binding> |
| 81 |
<command>dialog-show</command> |
| 82 |
<dialog-name>terrasync</dialog-name> |
| 83 |
</binding> |
| 84 |
</item> |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
<item> |
| 94 |
<name>error-reports</name> |
| 95 |
<binding> |
| 96 |
<command>show-error-report</command> |
| 97 |
</binding> |
| 98 |
</item> |
| 99 |
|
| 100 |
<item> |
| 101 |
<name>exit</name> |
| 102 |
<key>Esc</key> |
| 103 |
<binding> |
| 104 |
<command>dialog-show</command> |
| 105 |
<dialog-name>exit</dialog-name> |
| 106 |
</binding> |
| 107 |
</item> |
| 108 |
</menu> |
| 109 |
|
| 110 |
<menu> |
| 111 |
<name>view</name> |
| 112 |
|
| 113 |
<item> |
| 114 |
<name>toggle-fullscreen</name> |
| 115 |
<key>Shift-F10</key> |
| 116 |
<binding> |
| 117 |
<command>toggle-fullscreen</command> |
| 118 |
</binding> |
| 119 |
</item> |
| 120 |
|
| 121 |
<item> |
| 122 |
<name>rendering-options</name> |
| 123 |
<binding> |
| 124 |
<command>dialog-show</command> |
| 125 |
<dialog-name>rendering</dialog-name> |
| 126 |
</binding> |
| 127 |
</item> |
| 128 |
|
| 129 |
<item> |
| 130 |
<name>view-options</name> |
| 131 |
<binding> |
| 132 |
<command>dialog-show</command> |
| 133 |
<dialog-name>view</dialog-name> |
| 134 |
</binding> |
| 135 |
</item> |
| 136 |
|
| 137 |
<item> |
| 138 |
<name>cockpit-view-options</name> |
| 139 |
<binding> |
| 140 |
<command>dialog-show</command> |
| 141 |
<dialog-name>cockpit-view</dialog-name> |
| 142 |
</binding> |
| 143 |
</item> |
| 144 |
|
| 145 |
<item> |
| 146 |
<name>adjust-lod</name> |
| 147 |
<binding> |
| 148 |
<command>dialog-show</command> |
| 149 |
<dialog-name>static-lod</dialog-name> |
| 150 |
</binding> |
| 151 |
</item> |
| 152 |
|
| 153 |
<item> |
| 154 |
<name>pilot-offset</name> |
| 155 |
<binding> |
| 156 |
<command>dialog-show</command> |
| 157 |
<dialog-name>pilot_offset</dialog-name> |
| 158 |
</binding> |
| 159 |
</item> |
| 160 |
|
| 161 |
<item> |
| 162 |
<name>adjust-hud</name> |
| 163 |
<binding> |
| 164 |
<command>dialog-show</command> |
| 165 |
<dialog-name>hud</dialog-name> |
| 166 |
</binding> |
| 167 |
</item> |
| 168 |
|
| 169 |
<item> |
| 170 |
<name>toggle-glide-slope</name> |
| 171 |
<binding> |
| 172 |
<command>nasal</command> |
| 173 |
<script> |
| 174 |
var p = "/sim/rendering/glide-slope-tunnel"; |
| 175 |
setprop(p, var i = !getprop(p)); |
| 176 |
gui.popupTip("Glide slope tunnel " ~ (i ? "enabled" : "disabled")); |
| 177 |
</script> |
| 178 |
</binding> |
| 179 |
</item> |
| 180 |
|
| 181 |
<item> |
| 182 |
<name>replay</name> |
| 183 |
<key>Ctrl-R</key> |
| 184 |
<binding> |
| 185 |
<command>replay</command> |
| 186 |
</binding> |
| 187 |
<binding> |
| 188 |
<command>dialog-show</command> |
| 189 |
<dialog-name>replay</dialog-name> |
| 190 |
</binding> |
| 191 |
</item> |
| 192 |
|
| 193 |
<item> |
| 194 |
<label>Earthview orbital rendering</label> |
| 195 |
<name>earthview</name> |
| 196 |
<binding> |
| 197 |
<command>dialog-show</command> |
| 198 |
<dialog-name>earthview</dialog-name> |
| 199 |
</binding> |
| 200 |
<enabled>true</enabled> |
| 201 |
</item> |
| 202 |
|
| 203 |
<item> |
| 204 |
<name>stereoscopic-options</name> |
| 205 |
<binding> |
| 206 |
<command>dialog-show</command> |
| 207 |
<dialog-name>stereoscopic-view-options</dialog-name> |
| 208 |
</binding> |
| 209 |
<enabled>false</enabled> |
| 210 |
</item> |
| 211 |
|
| 212 |
<item> |
| 213 |
<name>vr-options</name> |
| 214 |
<binding> |
| 215 |
<command>dialog-show</command> |
| 216 |
<dialog-name>vr-options</dialog-name> |
| 217 |
</binding> |
| 218 |
<enabled>false</enabled> |
| 219 |
</item> |
| 220 |
|
| 221 |
<item> |
| 222 |
<enabled> |
| 223 |
<property>/sim/rendering/shaders/skydome</property> |
| 224 |
</enabled> |
| 225 |
<name>als-filter-effects</name> |
| 226 |
<binding> |
| 227 |
<command>dialog-show</command> |
| 228 |
<dialog-name>als-filters</dialog-name> |
| 229 |
</binding> |
| 230 |
</item> |
| 231 |
</menu> |
| 232 |
|
| 233 |
<menu> |
| 234 |
<name>location</name> |
| 235 |
|
| 236 |
<item> |
| 237 |
<name>position-in-air</name> |
| 238 |
<binding> |
| 239 |
<command>dialog-show</command> |
| 240 |
<dialog-name>location-in-air</dialog-name> |
| 241 |
</binding> |
| 242 |
</item> |
| 243 |
|
| 244 |
<item> |
| 245 |
<name>goto-airport</name> |
| 246 |
<binding> |
| 247 |
<command>dialog-show</command> |
| 248 |
<dialog-name>airports</dialog-name> |
| 249 |
</binding> |
| 250 |
</item> |
| 251 |
|
| 252 |
<item> |
| 253 |
<name>random-attitude</name> |
| 254 |
<binding> |
| 255 |
<command>property-assign</command> |
| 256 |
<property>/sim/presets/trim</property> |
| 257 |
<value>false</value> |
| 258 |
</binding> |
| 259 |
<binding> |
| 260 |
<command>property-randomize</command> |
| 261 |
<property>/orientation/pitch-deg</property> |
| 262 |
<min>0</min> |
| 263 |
<max>360</max> |
| 264 |
</binding> |
| 265 |
<binding> |
| 266 |
<command>property-randomize</command> |
| 267 |
<property>/orientation/roll-deg</property> |
| 268 |
<min>0</min> |
| 269 |
<max>360</max> |
| 270 |
</binding> |
| 271 |
<binding> |
| 272 |
<command>property-randomize</command> |
| 273 |
<property>/orientation/heading-deg</property> |
| 274 |
<min>0</min> |
| 275 |
<max>360</max> |
| 276 |
</binding> |
| 277 |
</item> |
| 278 |
|
| 279 |
<item> |
| 280 |
<name>tower-position</name> |
| 281 |
<binding> |
| 282 |
<command>dialog-show</command> |
| 283 |
<dialog-name>location-of-tower</dialog-name> |
| 284 |
</binding> |
| 285 |
</item> |
| 286 |
|
| 287 |
</menu> |
| 288 |
|
| 289 |
<menu> |
| 290 |
<name>autopilot</name> |
| 291 |
|
| 292 |
<item> |
| 293 |
<key>F11</key> |
| 294 |
<name>autopilot-settings</name> |
| 295 |
<binding> |
| 296 |
<command>dialog-show</command> |
| 297 |
<dialog-name>autopilot</dialog-name> |
| 298 |
</binding> |
| 299 |
</item> |
| 300 |
|
| 301 |
<item> |
| 302 |
<name>route-manager</name> |
| 303 |
<binding> |
| 304 |
<command>dialog-show</command> |
| 305 |
<dialog-name>route-manager</dialog-name> |
| 306 |
</binding> |
| 307 |
</item> |
| 308 |
|
| 309 |
<item> |
| 310 |
<name>previous-waypoint</name> |
| 311 |
<binding> |
| 312 |
<command>nasal</command> |
| 313 |
<script>setprop("/autopilot/route-manager/input", "@previous")</script> |
| 314 |
</binding> |
| 315 |
</item> |
| 316 |
|
| 317 |
<item> |
| 318 |
<name>next-waypoint</name> |
| 319 |
<binding> |
| 320 |
<command>nasal</command> |
| 321 |
<script>setprop("/autopilot/route-manager/input", "@next")</script> |
| 322 |
</binding> |
| 323 |
</item> |
| 324 |
</menu> |
| 325 |
|
| 326 |
<menu> |
| 327 |
<name>environment</name> |
| 328 |
|
| 329 |
<item> |
| 330 |
<name>global-weather</name> |
| 331 |
<binding> |
| 332 |
<command>dialog-show</command> |
| 333 |
<dialog-name>weather</dialog-name> |
| 334 |
</binding> |
| 335 |
</item> |
| 336 |
|
| 337 |
<item> |
| 338 |
<name>environment-settings</name> |
| 339 |
<binding> |
| 340 |
<command>dialog-show</command> |
| 341 |
<dialog-name>environment-settings</dialog-name> |
| 342 |
</binding> |
| 343 |
</item> |
| 344 |
|
| 345 |
<item> |
| 346 |
<name>time-settings</name> |
| 347 |
<binding> |
| 348 |
<command>dialog-show</command> |
| 349 |
<dialog-name>timeofday</dialog-name> |
| 350 |
</binding> |
| 351 |
</item> |
| 352 |
|
| 353 |
<item> |
| 354 |
<label>Volcanoes</label> |
| 355 |
<name>volcanoes</name> |
| 356 |
<binding> |
| 357 |
|
| 358 |
<command>nasal</command> |
| 359 |
<script> |
| 360 |
<![CDATA[ |
| 361 |
var varray = volcano.volcano_manager.volcano_array; |
| 362 |
var n = size(varray); |
| 363 |
|
| 364 |
var aircraft_pos = geo.aircraft_position(); |
| 365 |
|
| 366 |
var j = 0; |
| 367 |
|
| 368 |
for (var i = 0; i< n; i=i+1) |
| 369 |
{ |
| 370 |
#print(i, " ", varray[i].name); |
| 371 |
var distance = aircraft_pos.distance_to(varray[i].pos); |
| 372 |
|
| 373 |
if (distance < 150000.0) # only add nearby objects |
| 374 |
{ |
| 375 |
var name = varray[i].name; |
| 376 |
|
| 377 |
setprop("/environment/volcanoes/volcanoes-nearby/value["~j~"]", name); |
| 378 |
if (j==0) |
| 379 |
{setprop("/environment/volcanoes/volcano-selected", name);} |
| 380 |
|
| 381 |
j=j+1; |
| 382 |
} |
| 383 |
|
| 384 |
} |
| 385 |
|
| 386 |
]]> |
| 387 |
</script> |
| 388 |
</binding> |
| 389 |
<binding> |
| 390 |
<command>dialog-show</command> |
| 391 |
<dialog-name>volcanoes</dialog-name> |
| 392 |
</binding> |
| 393 |
</item> |
| 394 |
|
| 395 |
|
| 396 |
</menu> |
| 397 |
|
| 398 |
<menu> |
| 399 |
<name>equipment</name> |
| 400 |
|
| 401 |
<item> |
| 402 |
<name>map</name> |
| 403 |
<key>Ctrl-M</key> |
| 404 |
<binding> |
| 405 |
<command>dialog-show</command> |
| 406 |
<dialog-name>map</dialog-name> |
| 407 |
</binding> |
| 408 |
</item> |
| 409 |
|
| 410 |
<item> |
| 411 |
<name>map-canvas</name> |
| 412 |
|
| 413 |
<binding> |
| 414 |
<command>dialog-show</command> |
| 415 |
<dialog-name>map-canvas</dialog-name> |
| 416 |
</binding> |
| 417 |
</item> |
| 418 |
|
| 419 |
<item> |
| 420 |
<name>map-browser</name> |
| 421 |
<binding> |
| 422 |
<command>nasal</command> |
| 423 |
<script> |
| 424 |
var n = props.globals.getNode("/sim/http/running"); |
| 425 |
if( props.globals.getNode("/").getValue("sim/http/running",0) != 1 ) { |
| 426 |
gui.popupTip("Internal webserver not running. Restart FlightGear with --httpd=8080", 5.0); |
| 427 |
} else { |
| 428 |
var _url = "http://localhost:" ~ getprop("/sim/http/options/listening-port") ~ "#Map"; |
| 429 |
fgcommand("open-browser", props.Node.new({ "url": _url })); |
| 430 |
} |
| 431 |
</script> |
| 432 |
</binding> |
| 433 |
</item> |
| 434 |
|
| 435 |
|
| 436 |
<item> |
| 437 |
<name>stopwatch</name> |
| 438 |
<binding> |
| 439 |
<command>dialog-show</command> |
| 440 |
<dialog-name>stopwatch-dialog</dialog-name> |
| 441 |
</binding> |
| 442 |
</item> |
| 443 |
|
| 444 |
<item> |
| 445 |
<name>fuel-and-payload</name> |
| 446 |
<binding> |
| 447 |
<command>nasal</command> |
| 448 |
<script>gui.showWeightDialog()</script> |
| 449 |
</binding> |
| 450 |
</item> |
| 451 |
|
| 452 |
<item> |
| 453 |
<key>F12</key> |
| 454 |
<name>radio</name> |
| 455 |
<binding> |
| 456 |
<command>dialog-show</command> |
| 457 |
<dialog-name>radios</dialog-name> |
| 458 |
</binding> |
| 459 |
</item> |
| 460 |
|
| 461 |
<item> |
| 462 |
<name>gps</name> |
| 463 |
<binding> |
| 464 |
<command>dialog-show</command> |
| 465 |
<dialog-name>gps</dialog-name> |
| 466 |
</binding> |
| 467 |
</item> |
| 468 |
|
| 469 |
<item> |
| 470 |
<name>instrument-settings</name> |
| 471 |
<binding> |
| 472 |
<command>dialog-show</command> |
| 473 |
<dialog-name>instruments</dialog-name> |
| 474 |
</binding> |
| 475 |
</item> |
| 476 |
<item> |
| 477 |
<name>light-switches</name> |
| 478 |
<binding> |
| 479 |
<command>dialog-show</command> |
| 480 |
<dialog-name>light-switches</dialog-name> |
| 481 |
</binding> |
| 482 |
</item> |
| 483 |
|
| 484 |
<item> |
| 485 |
<name>failure-submenu</name> |
| 486 |
<enabled>false</enabled> |
| 487 |
</item> |
| 488 |
|
| 489 |
<item> |
| 490 |
<name>random-failures</name> |
| 491 |
<binding> |
| 492 |
<command>dialog-show</command> |
| 493 |
<dialog-name>random-failures</dialog-name> |
| 494 |
</binding> |
| 495 |
</item> |
| 496 |
|
| 497 |
<item> |
| 498 |
<name>system-failures</name> |
| 499 |
<binding> |
| 500 |
<command>dialog-show</command> |
| 501 |
<dialog-name>system-failures</dialog-name> |
| 502 |
</binding> |
| 503 |
</item> |
| 504 |
|
| 505 |
<item> |
| 506 |
<name>instrument-failures</name> |
| 507 |
<binding> |
| 508 |
<command>dialog-show</command> |
| 509 |
<dialog-name>instrument-failures</dialog-name> |
| 510 |
</binding> |
| 511 |
</item> |
| 512 |
</menu> |
| 513 |
|
| 514 |
<menu> |
| 515 |
<name>ai</name> |
| 516 |
|
| 517 |
<item> |
| 518 |
<name>scenario</name> |
| 519 |
<binding> |
| 520 |
<command>dialog-show</command> |
| 521 |
<dialog-name>scenario</dialog-name> |
| 522 |
</binding> |
| 523 |
</item> |
| 524 |
|
| 525 |
<item> |
| 526 |
<name>atc-in-range</name> |
| 527 |
<binding> |
| 528 |
<command>dialog-show</command> |
| 529 |
<dialog-name>atc-freq-search</dialog-name> |
| 530 |
</binding> |
| 531 |
</item> |
| 532 |
|
| 533 |
<item> |
| 534 |
<name>wingman</name> |
| 535 |
<binding> |
| 536 |
<command>dialog-show</command> |
| 537 |
<dialog-name>formation</dialog-name> |
| 538 |
</binding> |
| 539 |
</item> |
| 540 |
|
| 541 |
<item> |
| 542 |
<name>tanker</name> |
| 543 |
<enabled>false</enabled> |
| 544 |
<binding> |
| 545 |
<command>dialog-show</command> |
| 546 |
<dialog-name>tanker</dialog-name> |
| 547 |
</binding> |
| 548 |
</item> |
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
|
| 558 |
<item> |
| 559 |
<name>jetway</name> |
| 560 |
<binding> |
| 561 |
<command>dialog-show</command> |
| 562 |
<dialog-name>jetways</dialog-name> |
| 563 |
</binding> |
| 564 |
</item> |
| 565 |
|
| 566 |
<item> |
| 567 |
<label>AI Objects</label> |
| 568 |
<name>ai-objects</name> |
| 569 |
<binding> |
| 570 |
|
| 571 |
<command>nasal</command> |
| 572 |
<script> |
| 573 |
<![CDATA[ |
| 574 |
var carriers = props.globals.getNode("/ai/models").getChildren("carrier"); |
| 575 |
var i = 0; |
| 576 |
foreach(c; carriers) |
| 577 |
{ |
| 578 |
var name = c.getNode("dlg-name",1).getValue(); |
| 579 |
if (name != nil) # check whether a dialog is defined at all |
| 580 |
{ |
| 581 |
var aircraft_pos = geo.aircraft_position(); |
| 582 |
|
| 583 |
var carrier_lat = c.getNode("position").getNode("latitude-deg").getValue(); |
| 584 |
var carrier_lon = c.getNode("position").getNode("longitude-deg").getValue(); |
| 585 |
var carrier_pos = geo.Coord.new(); |
| 586 |
carrier_pos.set_latlon(carrier_lat, carrier_lon); |
| 587 |
|
| 588 |
var distance = aircraft_pos.distance_to(carrier_pos); |
| 589 |
|
| 590 |
if (distance < 50000.0) # only add nearby objects |
| 591 |
{ |
| 592 |
setprop("/ai/control/objects-nearby/value["~i~"]", name); |
| 593 |
if (i==0) |
| 594 |
{setprop("/ai/control/object-selected", name);} |
| 595 |
|
| 596 |
i=i+1; |
| 597 |
} |
| 598 |
} |
| 599 |
|
| 600 |
} |
| 601 |
|
| 602 |
]]> |
| 603 |
</script> |
| 604 |
</binding> |
| 605 |
<binding> |
| 606 |
<command>dialog-show</command> |
| 607 |
<dialog-name>ai-objects</dialog-name> |
| 608 |
</binding> |
| 609 |
</item> |
| 610 |
|
| 611 |
</menu> |
| 612 |
|
| 613 |
<menu> |
| 614 |
<name>multiplayer</name> |
| 615 |
|
| 616 |
<item> |
| 617 |
<name>mp-settings</name> |
| 618 |
<binding> |
| 619 |
<command>dialog-show</command> |
| 620 |
<dialog-name>multiplayer</dialog-name> |
| 621 |
</binding> |
| 622 |
</item> |
| 623 |
|
| 624 |
<item> |
| 625 |
<name>fgcom-settings</name> |
| 626 |
<binding> |
| 627 |
<command>dialog-show</command> |
| 628 |
<dialog-name>fgcom</dialog-name> |
| 629 |
</binding> |
| 630 |
</item> |
| 631 |
|
| 632 |
<item> |
| 633 |
<name>mp-chat</name> |
| 634 |
<binding> |
| 635 |
<command>dialog-show</command> |
| 636 |
<dialog-name>chat-full</dialog-name> |
| 637 |
</binding> |
| 638 |
</item> |
| 639 |
|
| 640 |
<item> |
| 641 |
<key>-</key> |
| 642 |
<name>mp-chat-menu</name> |
| 643 |
<binding> |
| 644 |
<command>dialog-show</command> |
| 645 |
<dialog-name>chat-menu</dialog-name> |
| 646 |
</binding> |
| 647 |
</item> |
| 648 |
|
| 649 |
<item> |
| 650 |
<name>mp-list</name> |
| 651 |
<binding> |
| 652 |
<command>nasal</command> |
| 653 |
<script>multiplayer.dialog.show()</script> |
| 654 |
</binding> |
| 655 |
</item> |
| 656 |
|
| 657 |
<item> |
| 658 |
<name>mp-carrier</name> |
| 659 |
<binding> |
| 660 |
<command>nasal</command> |
| 661 |
<script> |
| 662 |
if (!contains(globals, "MPCarriers")) { |
| 663 |
var base = "Aircraft/MPCarrier/Systems/MPCarriers.nas"; |
| 664 |
io.load_nasal(resolvepath(base), "MPCarriers"); |
| 665 |
} |
| 666 |
MPCarriers.carrier_dialog.show(); |
| 667 |
</script> |
| 668 |
</binding> |
| 669 |
</item> |
| 670 |
|
| 671 |
<item> |
| 672 |
<name>lag-adjust</name> |
| 673 |
<binding> |
| 674 |
<command>dialog-show</command> |
| 675 |
<dialog-name>lag-adjust</dialog-name> |
| 676 |
</binding> |
| 677 |
</item> |
| 678 |
|
| 679 |
<item> |
| 680 |
<name>swift_connection</name> |
| 681 |
<binding> |
| 682 |
<command>dialog-show</command> |
| 683 |
<dialog-name>swift_connection</dialog-name> |
| 684 |
</binding> |
| 685 |
</item> |
| 686 |
</menu> |
| 687 |
|
| 688 |
<menu> |
| 689 |
<name>debug</name> |
| 690 |
|
| 691 |
<item> |
| 692 |
<name>reload-gui</name> |
| 693 |
<binding> |
| 694 |
<command>reinit</command> |
| 695 |
<subsystem>gui</subsystem> |
| 696 |
</binding> |
| 697 |
</item> |
| 698 |
|
| 699 |
<item> |
| 700 |
<name>reload-input</name> |
| 701 |
<binding> |
| 702 |
<command>reinit</command> |
| 703 |
<subsystem>input</subsystem> |
| 704 |
</binding> |
| 705 |
</item> |
| 706 |
|
| 707 |
<item> |
| 708 |
<name>reload-hud</name> |
| 709 |
<binding> |
| 710 |
<command>reinit</command> |
| 711 |
<subsystem>hud</subsystem> |
| 712 |
</binding> |
| 713 |
</item> |
| 714 |
|
| 715 |
<item> |
| 716 |
<name>reload-panel</name> |
| 717 |
<binding> |
| 718 |
<command>panel-load</command> |
| 719 |
</binding> |
| 720 |
</item> |
| 721 |
|
| 722 |
<item> |
| 723 |
<name>reload-autopilot</name> |
| 724 |
<binding> |
| 725 |
<command>reinit</command> |
| 726 |
<subsystem>xml-autopilot</subsystem> |
| 727 |
</binding> |
| 728 |
<binding> |
| 729 |
<command>reinit</command> |
| 730 |
<subsystem>xml-proprules</subsystem> |
| 731 |
</binding> |
| 732 |
</item> |
| 733 |
|
| 734 |
<item> |
| 735 |
<name>reload-network</name> |
| 736 |
<binding> |
| 737 |
<command>reinit</command> |
| 738 |
<subsystem>io</subsystem> |
| 739 |
</binding> |
| 740 |
</item> |
| 741 |
|
| 742 |
<item> |
| 743 |
<name>reload-model</name> |
| 744 |
<binding> |
| 745 |
<command>reinit</command> |
| 746 |
<subsystem>aircraft-model</subsystem> |
| 747 |
</binding> |
| 748 |
</item> |
| 749 |
|
| 750 |
<item> |
| 751 |
<name>reload-materials</name> |
| 752 |
<binding> |
| 753 |
<command>reload-materials</command> |
| 754 |
</binding> |
| 755 |
</item> |
| 756 |
|
| 757 |
<item> |
| 758 |
<name>reload-scenery</name> |
| 759 |
<binding> |
| 760 |
<command>reinit</command> |
| 761 |
<subsystem>scenery</subsystem> |
| 762 |
</binding> |
| 763 |
</item> |
| 764 |
|
| 765 |
<item> |
| 766 |
<name>nasal-console</name> |
| 767 |
<binding> |
| 768 |
<command>dialog-show</command> |
| 769 |
<dialog-name>nasal-console</dialog-name> |
| 770 |
</binding> |
| 771 |
</item> |
| 772 |
|
| 773 |
<item> |
| 774 |
<name>nasal-repl-interpreter</name> |
| 775 |
<binding> |
| 776 |
<command>nasal</command> |
| 777 |
<script>console.CanvasPlacement.new()</script> |
| 778 |
</binding> |
| 779 |
</item> |
| 780 |
|
| 781 |
<item> |
| 782 |
<name>nasal-test</name> |
| 783 |
<binding> |
| 784 |
<command>dialog-show</command> |
| 785 |
<dialog-name>nasal-test</dialog-name> |
| 786 |
</binding> |
| 787 |
</item> |
| 788 |
|
| 789 |
<item> |
| 790 |
<name>development-keys</name> |
| 791 |
<binding> |
| 792 |
<command>nasal</command> |
| 793 |
<script>gui.showHelpDialog("/sim/help/debug")</script> |
| 794 |
</binding> |
| 795 |
</item> |
| 796 |
|
| 797 |
<item> |
| 798 |
<name>configure-dev-extension</name> |
| 799 |
<binding> |
| 800 |
<command>dialog-show</command> |
| 801 |
<dialog-name>devel-extensions</dialog-name> |
| 802 |
</binding> |
| 803 |
</item> |
| 804 |
|
| 805 |
<item> |
| 806 |
<name>display-marker</name> |
| 807 |
<binding> |
| 808 |
<command>nasal</command> |
| 809 |
<script> |
| 810 |
setprop("/nasal/tutorial/enabled",1); # load module on demand |
| 811 |
tutorial.dialog(); |
| 812 |
</script> |
| 813 |
</binding> |
| 814 |
</item> |
| 815 |
|
| 816 |
<item> |
| 817 |
<name>dump-scene-graph</name> |
| 818 |
<binding> |
| 819 |
<command>dump-scenegraph</command> |
| 820 |
</binding> |
| 821 |
</item> |
| 822 |
|
| 823 |
<item> |
| 824 |
<name>print-rendering-statistics</name> |
| 825 |
<binding> |
| 826 |
<command>property-assign</command> |
| 827 |
<property>/sim/rendering/print-statistics</property> |
| 828 |
<value>true</value> |
| 829 |
</binding> |
| 830 |
</item> |
| 831 |
|
| 832 |
<item> |
| 833 |
<name>statistics-display</name> |
| 834 |
<binding> |
| 835 |
<command>property-adjust</command> |
| 836 |
<property>/sim/rendering/on-screen-statistics</property> |
| 837 |
<step type="int">1</step> |
| 838 |
</binding> |
| 839 |
</item> |
| 840 |
|
| 841 |
<item> |
| 842 |
<name>performance-monitor</name> |
| 843 |
<binding> |
| 844 |
<command>property-assign</command> |
| 845 |
<property>/nasal/performance_monitor/enabled</property> |
| 846 |
<value>true</value> |
| 847 |
</binding> |
| 848 |
<binding> |
| 849 |
<command>nasal</command> |
| 850 |
<script>performance_monitor.dialog.show()</script> |
| 851 |
</binding> |
| 852 |
</item> |
| 853 |
|
| 854 |
<item> |
| 855 |
<name>write-video-config</name> |
| 856 |
<binding> |
| 857 |
<command>nasal</command> |
| 858 |
<script>video.save()</script> |
| 859 |
</binding> |
| 860 |
</item> |
| 861 |
|
| 862 |
<item> |
| 863 |
<name>property-browser</name> |
| 864 |
<binding> |
| 865 |
<command>nasal</command> |
| 866 |
<script>gui.property_browser()</script> |
| 867 |
</binding> |
| 868 |
</item> |
| 869 |
|
| 870 |
<item> |
| 871 |
<name>fg1000-pfd</name> |
| 872 |
<binding> |
| 873 |
<command>nasal</command> |
| 874 |
<script> |
| 875 |
var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/"; |
| 876 |
if (! defined("fg1000")) { |
| 877 |
io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000"); |
| 878 |
io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000"); |
| 879 |
var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); |
| 880 |
interfaceController.start(); |
| 881 |
} |
| 882 |
|
| 883 |
var fg1000system = fg1000.FG1000.getOrCreateInstance(); |
| 884 |
var pfdindex = getprop("/sim/gui/fg1000/pfd-index"); |
| 885 |
if (pfdindex == nil) { |
| 886 |
pfdindex = fg1000system.addPFD(); |
| 887 |
setprop("/sim/gui/fg1000/pfd-index", pfdindex); |
| 888 |
} |
| 889 |
|
| 890 |
fg1000system.displayGUI(pfdindex); |
| 891 |
|
| 892 |
</script> |
| 893 |
</binding> |
| 894 |
</item> |
| 895 |
|
| 896 |
<item> |
| 897 |
<name>fg1000-mfd</name> |
| 898 |
<binding> |
| 899 |
<command>nasal</command> |
| 900 |
<script> |
| 901 |
var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/"; |
| 902 |
if (! defined("fg1000")) { |
| 903 |
io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000"); |
| 904 |
io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000"); |
| 905 |
var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); |
| 906 |
interfaceController.start(); |
| 907 |
} |
| 908 |
|
| 909 |
var fg1000system = fg1000.FG1000.getOrCreateInstance(); |
| 910 |
var mfdindex = getprop("/sim/gui/fg1000/mfd-index"); |
| 911 |
if (mfdindex == nil) { |
| 912 |
mfdindex = fg1000system.addMFD(); |
| 913 |
setprop("/sim/gui/fg1000/mfd-index", mfdindex); |
| 914 |
} |
| 915 |
|
| 916 |
fg1000system.displayGUI(mfdindex); |
| 917 |
|
| 918 |
</script> |
| 919 |
</binding> |
| 920 |
</item> |
| 921 |
|
| 922 |
<item> |
| 923 |
<name>logging</name> |
| 924 |
<binding> |
| 925 |
<command>dialog-show</command> |
| 926 |
<dialog-name>logging</dialog-name> |
| 927 |
</binding> |
| 928 |
</item> |
| 929 |
|
| 930 |
<item> |
| 931 |
<name>local_weather</name> |
| 932 |
<enabled>false</enabled> |
| 933 |
<binding> |
| 934 |
<command>dialog-show</command> |
| 935 |
<dialog-name>local_weather</dialog-name> |
| 936 |
</binding> |
| 937 |
</item> |
| 938 |
|
| 939 |
<item> |
| 940 |
<name>print-scene-info</name> |
| 941 |
<binding> |
| 942 |
<command>print-visible-scene</command> |
| 943 |
</binding> |
| 944 |
</item> |
| 945 |
|
| 946 |
<item> |
| 947 |
<name>rendering-buffers</name> |
| 948 |
<binding> |
| 949 |
<command>property-toggle</command> |
| 950 |
<property>/sim/rendering/rembrandt/show-buffers</property> |
| 951 |
</binding> |
| 952 |
<enabled>false</enabled> |
| 953 |
</item> |
| 954 |
|
| 955 |
<item> |
| 956 |
<name>rembrandt-buffers-choice</name> |
| 957 |
<binding> |
| 958 |
<command>dialog-show</command> |
| 959 |
<dialog-name>rembrandt-buffers</dialog-name> |
| 960 |
</binding> |
| 961 |
<enabled>false</enabled> |
| 962 |
</item> |
| 963 |
|
| 964 |
<item> |
| 965 |
<name>cycle-gui</name> |
| 966 |
<binding> |
| 967 |
<command>nasal</command> |
| 968 |
<script>gui.nextStyle()</script> |
| 969 |
</binding> |
| 970 |
</item> |
| 971 |
|
| 972 |
</menu> |
| 973 |
|
| 974 |
<menu> |
| 975 |
<name>help</name> |
| 976 |
|
| 977 |
<item> |
| 978 |
<name>help-browser</name> |
| 979 |
<binding> |
| 980 |
<command>open-browser</command> |
| 981 |
<path>Docs/index.html</path> |
| 982 |
</binding> |
| 983 |
</item> |
| 984 |
|
| 985 |
<item> |
| 986 |
<name>doc-browser</name> |
| 987 |
<binding> |
| 988 |
<command>dialog-show</command> |
| 989 |
<dialog-name>doc-browser</dialog-name> |
| 990 |
</binding> |
| 991 |
</item> |
| 992 |
|
| 993 |
<item> |
| 994 |
<key>?</key> |
| 995 |
<name>aircraft-keys</name> |
| 996 |
<binding> |
| 997 |
<command>nasal</command> |
| 998 |
<script>gui.showHelpDialog("/sim/help")</script> |
| 999 |
</binding> |
| 1000 |
</item> |
| 1001 |
|
| 1002 |
<item> |
| 1003 |
<name>aircraft-checklists</name> |
| 1004 |
<binding> |
| 1005 |
<command>dialog-show</command> |
| 1006 |
<dialog-name>checklist</dialog-name> |
| 1007 |
</binding> |
| 1008 |
</item> |
| 1009 |
|
| 1010 |
<item> |
| 1011 |
<name>common-keys</name> |
| 1012 |
<binding> |
| 1013 |
<command>nasal</command> |
| 1014 |
<script>gui.showHelpDialog("/sim/help/common")</script> |
| 1015 |
</binding> |
| 1016 |
</item> |
| 1017 |
|
| 1018 |
<item> |
| 1019 |
<name>basic-keys</name> |
| 1020 |
<binding> |
| 1021 |
<command>nasal</command> |
| 1022 |
<script>gui.showHelpDialog("/sim/help/basic")</script> |
| 1023 |
</binding> |
| 1024 |
</item> |
| 1025 |
|
| 1026 |
<item> |
| 1027 |
<name>highlighting</name> |
| 1028 |
<label>Highlighting</label> |
| 1029 |
<binding> |
| 1030 |
<command>dialog-show</command> |
| 1031 |
<dialog-name>highlighting</dialog-name> |
| 1032 |
</binding> |
| 1033 |
</item> |
| 1034 |
|
| 1035 |
<item> |
| 1036 |
<label>------------------</label> |
| 1037 |
<enabled>false</enabled> |
| 1038 |
</item> |
| 1039 |
|
| 1040 |
<item> |
| 1041 |
<name>tutorial-start</name> |
| 1042 |
<binding> |
| 1043 |
<command>dialog-show</command> |
| 1044 |
<dialog-name>tutorial</dialog-name> |
| 1045 |
</binding> |
| 1046 |
</item> |
| 1047 |
|
| 1048 |
<item> |
| 1049 |
<name>menu-about</name> |
| 1050 |
<binding> |
| 1051 |
<command>dialog-show</command> |
| 1052 |
<dialog-name>about</dialog-name> |
| 1053 |
</binding> |
| 1054 |
</item> |
| 1055 |
|
| 1056 |
<item> |
| 1057 |
<name>scenery-sources</name> |
| 1058 |
<binding> |
| 1059 |
<command>dialog-show</command> |
| 1060 |
<dialog-name>scenery-sources</dialog-name> |
| 1061 |
</binding> |
| 1062 |
</item> |
| 1063 |
|
| 1064 |
</menu> |
| 1065 |
|
| 1066 |
</PropertyList> |