Improve layout of season selector.
[fg:toms-fgdata.git] / gui / dialogs / rendering.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4         <name>rendering</name>
5         <modal>false</modal>
6         <layout>vbox</layout>
7         <padding>20</padding>
8
9         <group>
10                 <layout>hbox</layout>
11                 <empty>
12                         <stretch>1</stretch>
13                 </empty>
14
15                 <text>
16                         <label>Rendering options</label>
17                 </text>
18
19                 <empty>
20                         <stretch>1</stretch>
21                 </empty>
22
23                 <button>
24                         <pref-width>16</pref-width>
25                         <pref-height>16</pref-height>
26                         <legend></legend>
27                         <keynum>27</keynum>
28                         <border>2</border>
29                         <binding>
30                                 <command>dialog-close</command>
31                         </binding>
32                 </button>
33         </group>
34
35         <hrule/>
36
37         <group>
38                 <halign>center</halign>
39                 <layout>hbox</layout>
40
41                 <group>
42                         <layout>vbox</layout>
43
44                         <group>
45                                 <layout>hbox</layout>
46                                 <text>
47                                         <label>General</label>
48                                         <halign>left</halign>
49                                 </text>
50                                 <hrule>
51                                         <stretch>true</stretch>
52                                 </hrule>
53                         </group>
54
55                         <checkbox>
56                                 <halign>left</halign>
57                                 <label>Wireframe</label>
58                                 <name>wireframe</name>
59                                 <property>/sim/rendering/wireframe</property>
60                                 <binding>
61                                         <command>dialog-apply</command>
62                                         <object-name>wireframe</object-name>
63                                 </binding>
64                         </checkbox>
65
66                         <!--
67                         <group>
68                                 <layout>hbox</layout>
69                                 <text>
70                                 <label>Lighting</label>
71                                 <halign>left</halign>
72                                 </text>
73                                 <hrule>
74                                 <stretch>true</stretch>
75                                 </hrule>
76                         </group>
77
78                         <checkbox>
79                                 <halign>left</halign>
80                                 <label>Sun/Moon horizon effect</label>
81                                 <property>/sim/rendering/horizon-effect</property>
82                                 <binding>
83                                         <command>dialog-apply</command>
84                                 </binding>
85                         </checkbox>
86                         -->
87
88                         <checkbox>
89                                 <halign>left</halign>
90                                 <label>Use point sprites for runway lights (requires restart)</label>
91                                 <property>/sim/rendering/point-sprites</property>
92                                 <binding>
93                                         <command>dialog-apply</command>
94                                 </binding>
95                         </checkbox>
96
97                         <!--
98                         <checkbox>
99                                 <halign>left</halign>
100                                 <label>Enhanced runway lighting</label>
101                                 <property>/sim/rendering/enhanced-lighting</property>
102                                 <binding>
103                                         <command>dialog-apply</command>
104                                 </binding>
105                         </checkbox>
106
107                         <checkbox>
108                                 <halign>left</halign>
109                                 <label>Runway light distance attenuation</label>
110                                 <property>/sim/rendering/distance-attenuation</property>
111                                 <binding>
112                                         <command>dialog-apply</command>
113                                 </binding>
114                         </checkbox>
115
116                         <checkbox>
117                                 <halign>left</halign>
118                                 <label>Specular reflections on objects</label>
119                                 <property>/sim/rendering/specular-highlight</property>
120                                 <binding>
121                                         <command>dialog-apply</command>
122                                 </binding>
123                         </checkbox>
124                         -->
125                         <group>
126                                 <layout>hbox</layout>
127                                 <halign>left</halign>
128                                 
129                                 <checkbox>
130                                         <label>Throttle frame rate</label>
131                                         <name>frame-rate-throttle</name>
132                                         <property>/sim/gui/frame-rate-throttled</property>
133                                         <binding>
134                                                 <command>dialog-apply</command>
135                                                 <object-name>frame-rate-throttle</object-name>
136                                         </binding>
137                                         <binding>
138                                                 <command>nasal</command>
139                                                 <script>
140                                                         var throttled = getprop("/sim/gui/frame-rate-throttled");
141                                                         if (throttled)
142                                                                 setprop("/sim/frame-rate-throttle-hz", 50);
143                                                         else
144                                                                 setprop("/sim/frame-rate-throttle-hz", 0);
145                                                 </script>
146                                         </binding>
147                                 </checkbox>
148                                 <empty>
149                                         <pref-width>46</pref-width>
150                                 </empty>
151                                 <slider>
152                                         <name>frame-rate</name>
153                                         <visible>
154                                                 <greater-than>
155                                                         <property>/sim/frame-rate-throttle-hz</property>
156                                                         <value>0</value>
157                                                 </greater-than>
158                                         </visible>
159                                         <min>15.0</min>
160                                         <max>70.0</max>
161                                         <step>1.0</step>
162                                         <live>true</live>
163                                         <property>/sim/frame-rate-throttle-hz</property>
164                                         <binding>
165                                                 <command>dialog-apply</command>
166                                                 <object-name>frame-rate</object-name>
167                                         </binding>
168                                 </slider>
169                                 <text>
170                                         <visible>
171                                                 <greater-than>
172                                                         <property>/sim/frame-rate-throttle-hz</property>
173                                                         <value>0</value>
174                                                 </greater-than>
175                                         </visible>
176                                         <label>99 Hz</label>
177                                         <format>%2.0f Hz</format>
178                                         <live>true</live>
179                                         <property>/sim/frame-rate-throttle-hz</property>
180                                 </text>
181                         </group>
182
183                         <!--
184
185                         <checkbox>
186                                 <halign>left</halign>
187                                 <label>Lightning</label>
188                                 <property>/sim/rendering/lightning-enable</property>
189                                 <binding>
190                                         <command>dialog-apply</command>
191                                 </binding>
192                         </checkbox>
193
194                         -->
195
196                         <group>
197                                 <layout>hbox</layout>
198                                 <text>
199                                         <label>Scenery</label>
200                                         <halign>left</halign>
201                                 </text>
202                                 <hrule>
203                                         <stretch>true</stretch>
204                                 </hrule>
205                         </group>
206
207                         <group>
208                                 <layout>table</layout>
209                                 
210                                 <text>
211                                         <row>0</row>
212                                         <col>0</col>
213                                         <colspan>2</colspan>
214                                         <label>Season (ground textures): </label>
215                                         <halign>right</halign>
216                                 </text>
217                                 <combo>
218                                         <row>0</row>
219                                         <col>2</col>
220                                         <colspan>2</colspan>
221                                         <name>season</name>
222                                         <halign>left</halign>
223                                         <live>true</live>
224                                         <property>/sim/startup/season</property>
225                                         <value>summer</value>
226                                         <value>winter</value>
227                                         <binding>
228                                                 <command>dialog-apply</command>
229                                                 <object-name>season</object-name>
230                                         </binding>
231                                 </combo>
232
233                                 <checkbox>
234                                         <row>1</row>
235                                         <col>0</col>
236                                         <halign>left</halign>
237                                         <label>Animated jetways</label>
238                                         <name>jetways</name>
239                                         <property>/nasal/jetways/enabled</property>
240                                         <binding>
241                                                 <command>dialog-apply</command>
242                                                 <object-name>jetways</object-name>
243                                         </binding>
244                                 </checkbox>
245
246                                 <checkbox>
247                                         <row>2</row>
248                                         <col>0</col>
249                                         <halign>left</halign>
250                                         <label>Random objects</label>
251                                         <name>random-objects</name>
252                                         <property>/sim/rendering/random-objects</property>
253                                         <binding>
254                                                 <command>dialog-apply</command>
255                                                 <object-name>random-objects</object-name>
256                                         </binding>
257                                 </checkbox>
258
259                                 <checkbox>
260                                         <row>3</row>
261                                         <col>0</col>
262                                         <halign>left</halign>
263                                         <label>Random vegetation</label>
264                                         <name>random-vegetation</name>
265                                         <property>/sim/rendering/random-vegetation</property>
266                                         <binding>
267                                                 <command>dialog-apply</command>
268                                                 <object-name>random-vegetation</object-name>
269                                         </binding>
270                                 </checkbox>
271                                 <text>
272                                         <row>3</row>
273                                         <col>1</col>
274                                         <label>density</label>
275                                         <enable>
276                                                 <property>/sim/rendering/random-vegetation</property>
277                                         </enable>
278                                 </text>
279                                 <slider>
280                                         <row>3</row>
281                                         <col>2</col>
282                                         <name>vegetation-density</name>
283                                         <min>0</min>
284                                         <max>10.0</max>
285                                         <step>0.1</step>
286                                         <property>/sim/rendering/vegetation-density</property>
287                                         <binding>
288                                                 <command>dialog-apply</command>
289                                                 <object-name>vegetation-density</object-name>
290                                         </binding>
291                                 </slider>
292                                 <text>
293                                         <row>3</row>
294                                         <col>3</col>
295                                         <label>12345678</label>
296                                         <format>%.1f</format>
297                                         <live>true</live>
298                                         <property>/sim/rendering/vegetation-density</property>
299                                         <enable>
300                                                 <property>/sim/rendering/random-vegetation</property>
301                                         </enable>
302                                 </text>
303                                 
304                                 <checkbox>
305                                         <row>4</row>
306                                         <col>0</col>
307                                         <halign>left</halign>
308                                         <label>Random buildings</label>
309                                         <name>random-buildings</name>
310                                         <property>/sim/rendering/random-buildings</property>
311                                         <binding>
312                                                 <command>dialog-apply</command>
313                                                 <object-name>random-buildings</object-name>
314                                         </binding>
315                                 </checkbox>
316                                 <text>
317                                         <row>4</row>
318                                         <col>1</col>
319                                         <label>density</label>
320                                         <enable>
321                                                 <property>/sim/rendering/random-buildings</property>
322                                         </enable>
323                                 </text>
324                                 <slider>
325                                         <row>4</row>
326                                         <col>2</col>
327                                         <name>building-density</name>
328                                         <min>0</min>
329                                         <max>5.0</max>
330                                         <step>0.1</step>
331                                         <property>/sim/rendering/building-density</property>
332                                         <binding>
333                                                 <command>dialog-apply</command>
334                                                 <object-name>building-density</object-name>
335                                         </binding>
336                                 </slider>
337                                 <text>
338                                         <row>4</row>
339                                         <col>3</col>
340                                         <label>12345678</label>
341                                         <format>%.1f</format>
342                                         <live>true</live>
343                                         <property>/sim/rendering/building-density</property>
344                                         <enable>
345                                                 <property>/sim/rendering/random-buildings</property>
346                                         </enable>
347                                 </text>
348                         </group>
349
350                         <button>
351                                 <legend>Reload Scenery</legend>
352                                 <binding>
353                                         <command>reinit</command>
354                                         <subsystem>tile-manager</subsystem>
355                                 </binding>
356                         </button>
357
358                         <group>
359                                 <layout>vbox</layout>
360                                 <stretch>1</stretch>
361                         </group>
362
363                 </group>
364
365                 <vrule/>
366
367                 <group>
368                         <layout>vbox</layout>
369                         
370                         <group>
371                                 <layout>hbox</layout>
372                                 <text>
373                                         <label>Shader effects</label>
374                                         <halign>left</halign>
375                                 </text>
376                                 <hrule>
377                                         <stretch>true</stretch>
378                                 </hrule>
379                         </group>
380                         
381                         <group>
382                                 <layout>table</layout>
383                                 
384                                 <checkbox>
385                                         <halign>left</halign>
386                                         <row>0</row>
387                                         <col>0</col>
388                                         <label>Custom settings (fine-tuning)</label>
389                                         <name>custom-settings</name>
390                                         <property>/sim/rendering/shaders/custom-settings</property>
391                                         <binding>
392                                                 <command>dialog-apply</command>
393                                                 <object-name>custom-settings</object-name>
394                                         </binding>
395                                 </checkbox>
396                                 
397                                 <group>
398                                         <layout>hbox</layout>
399                                         <row>1</row>
400                                         <col>0</col>
401                                         <visible>
402                                                 <not>
403                                                         <property>/sim/rendering/shaders/custom-settings</property>
404                                                 </not>
405                                         </visible>
406
407                                         <text>
408                                                 <label>Performance</label>
409                                         </text>
410                                         <slider>
411                                                 <name>quality-level</name>
412                                                 <min>0.0</min>
413                                                 <max>5.0</max>
414                                                 <step>1.0</step>
415                                                 <fraction>0.17</fraction>
416                                                 <property>/sim/rendering/shaders/quality-level-internal</property>
417                                                 <binding>
418                                                         <command>dialog-apply</command>
419                                                         <object-name>quality-level</object-name>
420                                                 </binding>
421                                         </slider>
422                                         <text>
423                                                 <label>Quality</label>
424                                         </text>
425                                         <text>
426                                                 <label>12345678</label>
427                                                 <format>(%1.0f)</format>
428                                                 <live>true</live>
429                                                 <property>/sim/rendering/shaders/quality-level-internal</property>
430                                         </text>
431                                         
432                                 </group>
433                                 
434                                 <group>
435                                         <layout>hbox</layout>
436                                         <row>1</row>
437                                         <col>0</col>
438                                         <visible>
439                                                 <and>
440                                                         <property>/sim/rendering/shaders/custom-settings</property>
441                                                         <not>
442                                                                 <property>/sim/rendering/shaders/skydome</property>
443                                                         </not>
444                                                 </and>
445                                         </visible>
446                                         
447                                         <button>
448                                                 <legend>Shader Options</legend>
449                                                 <halign>left</halign>
450                                                 <binding>
451                                                         <command>dialog-show</command>
452                                                         <dialog-name>shaders</dialog-name>
453                                                 </binding>
454                                                 <binding>
455                                                         <command>dialog-close</command>
456                                                         <dialog-name>rendering</dialog-name>
457                                                 </binding>
458                                                 <pref-width>200</pref-width>
459                                         </button>
460
461                                 </group>
462                                 <group>
463                                         <layout>hbox</layout>
464                                         <row>1</row>
465                                         <col>0</col>
466                                         <visible>
467                                                 <and>
468                                                         <property>/sim/rendering/shaders/custom-settings</property>
469                                                         <property>/sim/rendering/shaders/skydome</property>
470                                                         <not>
471                                                                 <property>/sim/rendering/rembrandt/enabled</property>
472                                                         </not>
473                                                 </and>
474                                         </visible>
475                                         
476                                         <button>
477                                                 <legend>Shader Options</legend>
478                                                 <halign>left</halign>
479                                                 <binding>
480                                                         <command>dialog-show</command>
481                                                         <dialog-name>shaders-lightfield</dialog-name>
482                                                 </binding>
483                                                 <binding>
484                                                         <command>dialog-close</command>
485                                                         <dialog-name>rendering</dialog-name>
486                                                 </binding>
487                                                 <pref-width>200</pref-width>
488                                         </button>
489
490                                 </group>
491                         </group>
492                         
493                         <group>
494                                 <layout>hbox</layout>
495                                 <text>
496                                         <label>Atmospheric effects</label>
497                                         <halign>left</halign>
498                                 </text>
499                                 <hrule>
500                                         <stretch>true</stretch>
501                                 </hrule>
502                         </group>
503
504                         <checkbox>
505                                 <halign>left</halign>
506                                 <label>Particles (smoke, dust, spray)</label>
507                                 <name>particles</name>
508                                 <property>/sim/rendering/particles</property>
509                                 <binding>
510                                         <command>dialog-apply</command>
511                                         <object-name>particles</object-name>
512                                 </binding>
513                         </checkbox>
514
515                         <checkbox>
516                                 <halign>left</halign>
517                                 <label>Precipitation</label>
518                                 <name>precipitation</name>
519                                 <property>/sim/rendering/precipitation-gui-enable</property>
520                                 <binding>
521                                         <command>dialog-apply</command>
522                                         <object-name>precipitation</object-name>
523                                 </binding>
524                         </checkbox>
525
526                         <!--
527
528                         <checkbox>
529                                 <halign>left</halign>
530                                 <label>2D clouds</label>
531                                 <property>/sim/rendering/bump-mapping</property>
532                                 <binding>
533                                         <command>dialog-apply</command>
534                                 </binding>
535                         </checkbox>
536
537                         -->
538
539                         <checkbox>
540                                 <halign>left</halign>
541                                 <label>3D clouds</label>
542                                 <name>3d-clouds</name>
543                                 <property>/sim/rendering/clouds3d-enable</property>
544                                 <binding>
545                                         <command>dialog-apply</command>
546                                         <object-name>3d-clouds</object-name>
547                                 </binding>
548                         </checkbox>
549
550                         <group>
551                                 <layout>hbox</layout>
552                                 <halign>right</halign>
553                                 <text>
554                                         <label>Cloud density</label>
555                                         <enable>
556                                                 <property>/sim/rendering/clouds3d-enable</property>
557                                         </enable>
558                                 </text>
559                                 <slider>
560                                         <name>cloud-density</name>
561                                         <min>0</min>
562                                         <max>1.0</max>
563                                         <property>/sim/rendering/clouds3d-density</property>
564                                         <binding>
565                                                 <command>dialog-apply</command>
566                                                 <object-name>cloud-density</object-name>
567                                         </binding>
568                                         <binding>
569                                                 <command>property-toggle</command>
570                                                 <property>/sim/rendering/clouds3d-enable</property>
571                                         </binding>
572                                         <binding>
573                                                 <command>property-toggle</command>
574                                                 <property>/sim/rendering/clouds3d-enable</property>
575                                         </binding>
576                                 </slider>
577                                 <text>
578                                         <enable>
579                                                 <property>/sim/rendering/clouds3d-enable</property>
580                                         </enable>
581                                         <label>12345678</label>
582                                         <format>%.2f</format>
583                                         <live>true</live>
584                                         <property>/sim/rendering/clouds3d-density</property>
585                                 </text>
586                         </group>
587
588                         <group>
589                                 <layout>hbox</layout>
590                                 <halign>right</halign>
591                                 <text>
592                                         <label>Cloud visibility range</label>
593                                         <enable>
594                                                 <property>/sim/rendering/clouds3d-enable</property>
595                                         </enable>
596                                 </text>
597                                 <slider>
598                                         <name>cloud-vis-range</name>
599                                         <min>1000.0</min>
600                                         <max>45000.0</max>
601                                         <property>/sim/rendering/clouds3d-vis-range</property>
602                                         <binding>
603                                                 <command>dialog-apply</command>
604                                                 <object-name>cloud-vis-range</object-name>
605                                         </binding>
606                                 </slider>
607                                 <text>
608                                         <enable>
609                                                 <property>/sim/rendering/clouds3d-enable</property>
610                                         </enable>
611                                         <label>12345678</label>
612                                         <format>%.fm</format>
613                                         <live>true</live>
614                                         <property>/sim/rendering/clouds3d-vis-range</property>
615                                 </text>
616                         </group>
617                         
618                         <group>
619                                 <layout>table</layout>
620                                 <group>
621                                         <layout>hbox</layout>
622                                         <halign>left</halign>
623                                         <row>0</row>
624                                         <col>0</col>
625                                         <checkbox>
626                                                 <halign>left</halign>
627                                                 <label>Atmospheric light scattering</label>
628                                                 <name>skydome-scattering</name>
629                                                 <visible>
630                                                         <not>
631                                                                 <property>/sim/rendering/rembrandt/enabled</property>
632                                                         </not>
633                                                 </visible>
634                                                 <property>/sim/rendering/shaders/skydome</property>
635                                                 <binding>
636                                                         <command>dialog-apply</command>
637                                                         <object-name>skydome-scattering</object-name>
638                                                 </binding>
639                                         </checkbox>
640                                         <text>
641                                                 <label>(Experimental)</label>
642                                                 <visible>
643                                                         <not>
644                                                                 <property>/sim/rendering/rembrandt/enabled</property>
645                                                         </not>
646                                                 </visible>
647                                                 <color>
648                                                         <red>1.0</red>
649                                                         <green>0.6</green>
650                                                         <blue>0.6</blue>
651                                                 </color>
652                                         </text>
653                                 </group>
654                                 <text>
655                                         <row>1</row>
656                                         <col>0</col>
657                                         <label>This disables most effects/shaders.</label>
658                                         <halign>left</halign>
659                                         <visible>
660                                                 <not>
661                                                         <property>/sim/rendering/rembrandt/enabled</property>
662                                                 </not>
663                                         </visible>
664                                         <color>
665                                                 <red>1.0</red>
666                                                 <green>0.6</green>
667                                                 <blue>0.6</blue>
668                                         </color>
669                                 </text>
670                                 
671                                 <group>
672                                         <layout>hbox</layout>
673                                         <row>0</row>
674                                         <col>0</col>
675                                         
676                                         <text>
677                                                 <label>Rembrandt</label>
678                                                 <halign>left</halign>
679                                                 <visible>
680                                                         <property>/sim/rendering/rembrandt/enabled</property>
681                                                 </visible>
682                                         </text>
683                                         <text>
684                                                 <label>(Experimental)</label>
685                                                 <halign>left</halign>
686                                                 <color>
687                                                         <red>1.0</red>
688                                                         <green>0.6</green>
689                                                         <blue>0.6</blue>
690                                                 </color>
691                                                 <visible>
692                                                         <property>/sim/rendering/rembrandt/enabled</property>
693                                                 </visible>
694                                         </text>
695                                         <hrule>
696                                                 <stretch>true</stretch>
697                                                 <visible>
698                                                         <property>/sim/rendering/rembrandt/enabled</property>
699                                                 </visible>
700                                         </hrule>
701                                 </group>
702                                 
703                                 <button>
704                                         <row>1</row>
705                                         <col>0</col>
706                                         <visible>
707                                                 <property>/sim/rendering/rembrandt/enabled</property>
708                                         </visible>
709                                         <legend>Rembrandt Options</legend>
710                                         <halign>center</halign>
711                                         <binding>
712                                                 <command>dialog-show</command>
713                                                 <dialog-name>rembrandt</dialog-name>
714                                         </binding>
715                                         <binding>
716                                                 <command>dialog-close</command>
717                                                 <dialog-name>rendering</dialog-name>
718                                         </binding>
719                                         <pref-width>200</pref-width>
720                                 </button>
721                         
722                         </group>
723
724                         <empty>
725                                 <stretch>1</stretch>
726                         </empty>
727
728                 </group>
729         </group>
730
731         <hrule/>
732
733         <button>
734                 <legend>Close</legend>
735                 <default>true</default>
736                 <key>Esc</key>
737                 <binding>
738                         <command>dialog-close</command>
739                 </binding>
740         </button>
741
742         <nasal>
743                 <open>
744                         gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
745                         props.globals.getNode("/sim/rendering/shaders/quality-level", 1).setAttribute("userarchive", 0);
746                         setprop("/sim/gui/frame-rate-throttled", (getprop("/sim/frame-rate-throttle-hz") > 0));
747                 </open>
748         </nasal>
749 </PropertyList>