webgui: don't hide global props object
[fg:toms-fgdata.git] / gui / menubar.xml.alt
1 <PropertyList>
2
3         <menu>
4                 <label>File</label>
5
6                 <item>
7                         <label>Load</label>
8                         <binding>
9                                 <command>nasal</command>
10                                 <script>gui.load_flight()</script>
11                         </binding>
12                 </item>
13
14                 <item>
15                         <label>Save</label>
16                         <binding>
17                                 <command>nasal</command>
18                                 <script>gui.save_flight()</script>
19                         </binding>
20                 </item>
21
22                 <item>
23                         <label>Reset</label>
24                         <binding>
25                                 <command>reset</command>
26                         </binding>
27                 </item>
28
29                 <item>
30                         <label>High-Res Snapshot</label>
31                         <enabled>false</enabled>
32                         <binding>
33                                 <command>hires-screen-capture</command>
34                         </binding>
35                 </item>
36
37                 <item>
38                         <label>Snapshot</label>
39                         <binding>
40                                 <command>nasal</command>
41                                 <script>
42                                         var success = fgcommand("screen-capture");
43                                         var path = getprop("/sim/paths/screenshot-last");
44                                         if (success)
45                                         gui.popupTip("Screenshot written to '" ~ path ~ "'");
46                                         else
47                                         gui.popupTip("Error writing screenshot '" ~ path ~ "'");
48                                 </script>
49                         </binding>
50                 </item>
51
52                 <item>
53                         <label>Print Screen</label>
54                         <binding>
55                                 <command>old-print-dialog</command>
56                         </binding>
57                 </item>
58
59                 <item>
60                         <label>Sound Configuration</label>
61                         <binding>
62                                 <command>dialog-show</command>
63                                 <dialog-name>sound-dialog</dialog-name>
64                         </binding>
65                 </item>
66
67                 <item>
68                         <label>Browse Internal Properties</label>
69                         <binding>
70                                 <command>nasal</command>
71                                 <script>gui.property_browser()</script>
72                         </binding>
73                 </item>
74
75                 <item>
76                         <label>Logging</label>
77                         <binding>
78                                 <command>dialog-show</command>
79                                 <dialog-name>logging</dialog-name>
80                         </binding>
81                 </item>
82
83                 <item>
84                         <label>Quit</label>
85                         <binding>
86                                 <command>dialog-show</command>
87                                 <dialog-name>exit</dialog-name>
88                         </binding>
89                 </item>
90         </menu>
91
92         <menu>
93                 <label>View</label>
94
95                 <item>
96                         <label>Display Options</label>
97                         <binding>
98                                 <command>dialog-show</command>
99                                 <dialog-name>display</dialog-name>
100                         </binding>
101                 </item>
102
103                 <item>
104                         <label>Rendering Options</label>
105                         <binding>
106                                 <command>dialog-show</command>
107                                 <dialog-name>rendering</dialog-name>
108                         </binding>
109                 </item>
110
111                 <item>
112                         <label>View Options</label>
113                         <binding>
114                                 <command>dialog-show</command>
115                                 <dialog-name>view</dialog-name>
116                         </binding>
117                 </item>
118
119                 <item>
120                         <label>Cockpit View Options</label>
121                         <binding>
122                                 <command>dialog-show</command>
123                                 <dialog-name>cockpit-view</dialog-name>
124                         </binding>
125                 </item>
126
127                 <item>
128                         <label>Adjust View Position</label>
129                         <binding>
130                                 <command>dialog-show</command>
131                                 <dialog-name>pilot_offset</dialog-name>
132                         </binding>
133                 </item>
134
135                 <item>
136                         <label>Adjust HUD Properties</label>
137                         <binding>
138                                 <command>dialog-show</command>
139                                 <dialog-name>hud</dialog-name>
140                         </binding>
141                 </item>
142
143                 <item>
144                         <label>Instant Replay</label>
145                         <binding>
146                                 <command>dialog-show</command>
147                                 <dialog-name>replay</dialog-name>
148                         </binding>
149                 </item>
150
151                 <item>
152                         <label>Adjust LOD Ranges</label>
153                         <binding>
154                                 <command>dialog-show</command>
155                                 <dialog-name>static-lod</dialog-name>
156                         </binding>
157                 </item>
158         </menu>
159
160         <menu>
161                 <label>Location</label>
162
163                 <item>
164                         <label>Position Aircraft (on ground)</label>
165                         <binding>
166                                 <command>dialog-show</command>
167                                 <dialog-name>location-on-ground</dialog-name>
168                         </binding>
169                 </item>
170
171                 <item>
172                         <label>Position Aircraft (in air)</label>
173                         <binding>
174                                 <command>dialog-show</command>
175                                 <dialog-name>location-in-air</dialog-name>
176                         </binding>
177                 </item>
178
179                 <item>
180                         <label>Select Airport from List</label>
181                         <binding>
182                                 <command>dialog-show</command>
183                                 <dialog-name>airports</dialog-name>
184                         </binding>
185                 </item>
186
187                 <item>
188                         <label>Random Attitude</label>
189                         <binding>
190                                 <command>property-assign</command>
191                                 <property>/sim/presets/trim</property>
192                                 <value>false</value>
193                         </binding>
194                         <binding>
195                                 <command>property-randomize</command>
196                                 <property>/orientation/pitch-deg</property>
197                                 <min>0</min>
198                                 <max>360</max>
199                         </binding>
200                         <binding>
201                                 <command>property-randomize</command>
202                                 <property>/orientation/roll-deg</property>
203                                 <min>0</min>
204                                 <max>360</max>
205                         </binding>
206                         <binding>
207                                 <command>property-randomize</command>
208                                 <property>/orientation/heading-deg</property>
209                                 <min>0</min>
210                                 <max>360</max>
211                         </binding>
212                 </item>
213
214                 <item>
215                         <label>Tower position</label>
216                         <binding>
217                                 <command>dialog-show</command>
218                                 <dialog-name>location-of-tower</dialog-name>
219                         </binding>
220                 </item>
221
222         </menu>
223
224         <menu>
225                 <label>Autopilot</label>
226                 <name>autopilot</name>
227
228                 <item>
229                         <label>Autopilot Settings</label>
230                         <binding>
231                                 <command>dialog-show</command>
232                                 <dialog-name>autopilot</dialog-name>
233                         </binding>
234                 </item>
235
236                 <item>
237                         <label>Route Manager</label>
238                         <binding>
239                                 <command>dialog-show</command>
240                                 <dialog-name>route-manager</dialog-name>
241                         </binding>
242                 </item>
243
244                 <item>
245                         <label>Pop Waypoint</label>
246                         <binding>
247                                 <command>nasal</command>
248                                 <script>setprop("/autopilot/route-manager/input", "@pop")</script>
249                         </binding>
250                 </item>
251
252                 <item>
253                         <label>Clear Route</label>
254                         <binding>
255                                 <command>nasal</command>
256                                 <script>setprop("/autopilot/route-manager/input", "@clear")</script>
257                         </binding>
258                 </item>
259
260                 <item>
261                         <label>Set Lat/Lon Format</label>
262                         <binding>
263                                 <command>nasal</command>
264                                 <script>
265                                         var f = getprop(var d = "/sim/lon-lat-format") + 1;
266                                         setprop(d, f &lt; 0 ? 0 : f > 2 ? 0 : f);
267                                 </script>
268                         </binding>
269                 </item>
270         </menu>
271
272         <menu>
273                 <label>Environment</label>
274
275                 <item>
276                         <label>Weather Scenario</label>
277                         <binding>
278                                 <command>dialog-show</command>
279                                 <dialog-name>weather_scenario</dialog-name>
280                         </binding>
281                 </item>
282
283                 <item>
284                         <label>Weather Conditions</label>
285                         <binding>
286                                 <command>dialog-show</command>
287                                 <dialog-name>weather</dialog-name>
288                         </binding>
289                 </item>
290
291                 <item>
292                         <label>Clouds</label>
293                         <binding>
294                                 <command>dialog-show</command>
295                                 <dialog-name>clouds</dialog-name>
296                         </binding>
297                 </item>
298
299                 <item>
300                         <label>Time Settings</label>
301                         <binding>
302                                 <command>dialog-show</command>
303                                 <dialog-name>timeofday</dialog-name>
304                         </binding>
305                 </item>
306
307                 <item>
308                         <label>Rain/Snow Settings</label>
309                         <binding>
310                                 <command>dialog-show</command>
311                                 <dialog-name>rainsnow</dialog-name>
312                         </binding>
313                 </item>
314
315                 <item>
316                         <label>Wildfire Settings</label>
317                         <binding>
318                                 <command>nasal</command>
319                                 <script>wildfire.dialog.show()</script>
320                         </binding>
321                 </item>
322                 <item>
323                         <label>Local Weather</label>
324                         <binding>
325                                 <command>dialog-show</command>
326                                 <dialog-name>local_weather</dialog-name>
327                         </binding>
328                 </item>
329                 <item>
330                         <label>Local Weather Tiles</label>
331                         <binding>
332                                 <command>dialog-show</command>
333                                 <dialog-name>local_weather_tiles</dialog-name>
334                         </binding>
335                 </item>
336                 <item>
337                         <label>Local Weather Settings</label>
338                         <binding>
339                                 <command>dialog-show</command>
340                                 <dialog-name>local_weather_config</dialog-name>
341                         </binding>
342                 </item>
343         </menu>
344
345         <menu>
346                 <label>Equipment</label>
347
348                 <item>
349                         <label>Fuel and Payload</label>
350                         <name>fuel-and-payload</name>
351                         <binding>
352                                 <command>nasal</command>
353                                 <script>gui.showWeightDialog()</script>
354                         </binding>
355                 </item>
356
357                 <item>
358                         <label>Radio Settings</label>
359                         <binding>
360                                 <command>dialog-show</command>
361                                 <dialog-name>radios</dialog-name>
362                         </binding>
363                 </item>
364
365                 <item>
366                         <label>GPS Settings</label>
367                         <binding>
368                                 <command>dialog-show</command>
369                                 <dialog-name>gps</dialog-name>
370                         </binding>
371                 </item>
372
373                 <item>
374                         <label>Instrument Settings</label>
375                         <binding>
376                                 <command>dialog-show</command>
377                                 <dialog-name>instruments</dialog-name>
378                         </binding>
379                 </item>
380
381                 <item>
382                         <label>Stopwatch</label>
383                         <binding>
384                                 <command>dialog-show</command>
385                                 <dialog-name>stopwatch-dialog</dialog-name>
386                         </binding>
387                 </item>
388
389                 <item>
390                         <label>Random Failures</label>
391                         <binding>
392                                 <command>dialog-show</command>
393                                 <dialog-name>random-failures</dialog-name>
394                         </binding>
395                 </item>
396
397                 <item>
398                         <label>System Failures</label>
399                         <binding>
400                                 <command>dialog-show</command>
401                                 <dialog-name>system-failures</dialog-name>
402                         </binding>
403                 </item>
404
405                 <item>
406                         <label>Instrument Failures</label>
407                         <binding>
408                                 <command>dialog-show</command>
409                                 <dialog-name>instrument-failures</dialog-name>
410                         </binding>
411                 </item>
412         </menu>
413
414         <menu>
415                 <label>ATC/AI</label>
416
417                 <item>
418                         <label>Frequencies</label>
419                         <binding>
420                                 <command>ATC-freq-search</command>
421                         </binding>
422                 </item>
423
424                 <item>
425                         <label>Options</label>
426                         <binding>
427                                 <command>dialog-show</command>
428                                 <dialog-name>atc-ai</dialog-name>
429                         </binding>
430                 </item>
431
432                 <item>
433                         <label>Tanker</label>
434                         <name>tanker</name>
435                         <enabled>false</enabled>
436                         <binding>
437                                 <command>dialog-show</command>
438                                 <dialog-name>tanker</dialog-name>
439                         </binding>
440                 </item>
441         </menu>
442
443         <menu>
444                 <label>Network</label>
445                 <name>multiplayer</name>
446
447                 <item>
448                         <label>Chat</label>
449                         <binding>
450                                 <command>dialog-show</command>
451                                 <dialog-name>chat-full</dialog-name>
452                         </binding>
453                 </item>
454
455                 <item>
456                         <label>Chat Menu</label>
457                         <binding>
458                                 <command>dialog-show</command>
459                                 <dialog-name>chat-menu</dialog-name>
460                         </binding>
461                 </item>
462
463                 <item>
464                         <label>Pilot List</label>
465                         <binding>
466                                 <command>nasal</command>
467                                 <script>multiplayer.dialog.show()</script>
468                         </binding>
469                 </item>
470
471                 <item>
472                         <label>MPCarrier selection</label>
473                         <binding>
474                                 <command>nasal</command>
475                                 <script>
476                                         if (contains(globals, "MPCarriers")) {
477                                                 MPCarriers.carrier_dialog.show();
478                                         } else {
479                                                 gui.popupTip("No MPCarriers around at the moment.");
480                                         }
481                                 </script>
482                         </binding>
483                 </item>
484         </menu>
485
486         <menu>
487                 <label>Debug</label>
488
489                 <item>
490                         <label>Reload GUI</label>
491                         <binding>
492                                 <command>reinit</command>
493                                 <subsystem>gui</subsystem>
494                         </binding>
495                 </item>
496
497                 <item>
498                         <label>Reload Input</label>
499                         <binding>
500                                 <command>reinit</command>
501                                 <subsystem>input</subsystem>
502                         </binding>
503                 </item>
504
505                 <item>
506                         <label>Reload Panel</label>
507                         <binding>
508                                 <command>panel-load</command>
509                         </binding>
510                 </item>
511
512                 <item>
513                         <label>Reload Autopilot</label>
514                         <binding>
515                                 <command>reinit</command>
516                                 <subsystem>xml-autopilot</subsystem>
517                         </binding>
518                 </item>
519
520                 <item>
521                         <label>Reload Network</label>
522                         <binding>
523                                 <command>reinit</command>
524                                 <subsystem>io</subsystem>
525                         </binding>
526                 </item>
527
528                 <item>
529                         <label>Nasal Console</label>
530                         <binding>
531                                 <command>dialog-show</command>
532                                 <dialog-name>nasal-console</dialog-name>
533                         </binding>
534                 </item>
535
536                 <item>
537                         <label>Development Keys</label>
538                         <binding>
539                                 <command>nasal</command>
540                                 <script>gui.showHelpDialog("/sim/help/debug")</script>
541                         </binding>
542                 </item>
543
544                 <item>
545                         <label>Configure Development Extensions</label>
546                         <binding>
547                                 <command>dialog-show</command>
548                                 <dialog-name>devel-extensions</dialog-name>
549                         </binding>
550                 </item>
551
552                 <item>
553                         <label>Display Tutorial Marker</label>
554                         <binding>
555                                 <command>nasal</command>
556                                 <script>tutorial.dialog()</script>
557                         </binding>
558                 </item>
559
560                 <item>
561                         <label>Dump Scene Graph</label>
562                         <binding>
563                                 <command>dump-scenegraph</command>
564                         </binding>
565                 </item>
566
567                 <item>
568                         <label>Print Statistics</label>
569                         <binding>
570                                 <command>property-assign</command>
571                                 <property>/sim/rendering/print-statistics</property>
572                                 <value>true</value>
573                         </binding>
574                 </item>
575
576                 <item>
577                         <label>Cycle On-Screen Statistics</label>
578                         <binding>
579                                 <command>property-adjust</command>
580                                 <property>/sim/rendering/on-screen-statistics</property>
581                                 <step type="int">1</step>
582                         </binding>
583                 </item>
584         </menu>
585
586         <menu>
587                 <label>Help</label>
588
589                 <item>
590                         <label>Help</label>
591                         <binding>
592                                 <command>old-help-dialog</command>
593                         </binding>
594                 </item>
595
596                 <item>
597                         <label>Joystick Information</label>
598                         <name>joystick-info</name>
599                         <binding>
600                                 <command>dialog-show</command>
601                                 <dialog-name>joystick-info</dialog-name>
602                         </binding>
603                 </item>
604
605                 <item>
606                         <label>Basic Keys</label>
607                         <binding>
608                                 <command>nasal</command>
609                                 <script>gui.showHelpDialog("/sim/help/basic")</script>
610                         </binding>
611                 </item>
612
613                 <item>
614                         <label>Common Aircraft Keys</label>
615                         <binding>
616                                 <command>nasal</command>
617                                 <script>gui.showHelpDialog("/sim/help/common")</script>
618                         </binding>
619                 </item>
620
621                 <item>
622                         <label>Aircraft Help</label>
623                         <binding>
624                                 <command>nasal</command>
625                                 <script>gui.showHelpDialog("/sim/help")</script>
626                         </binding>
627                 </item>
628
629                 <item>
630                         <label>Toggle Glide Slope Tunnel</label>
631                         <binding>
632                                 <command>nasal</command>
633                                 <script>
634                                         var p = "/sim/rendering/glide-slope-tunnel";
635                                         setprop(p, var i = !getprop(p));
636                                         gui.popupTip("Glide slope tunnel " ~ (i ? "enabled" : "disabled"));
637                                 </script>
638                         </binding>
639                 </item>
640
641                 <item>
642                         <label>Start Tutorial</label>
643                         <name>tutorial-start</name>
644                         <binding>
645                                 <command>dialog-show</command>
646                                 <dialog-name>tutorial</dialog-name>
647                         </binding>
648                 </item>
649
650                 <item>
651                         <label>End Tutorial</label>
652                         <name>tutorial-stop</name>
653                         <enabled>false</enabled>
654                         <binding>
655                                 <command>nasal</command>
656                                 <script>tutorial.stopTutorial()</script>
657                         </binding>
658                 </item>
659         </menu>
660
661 </PropertyList>