rendering false vbox 20 hbox 1 1 /sim/gui/dialogs/rendering/shader-warning 1 1.0 0.6 0.6 center hbox vbox 1 vbox hbox left true left wireframe /sim/rendering/wireframe dialog-apply wireframe left /sim/rendering/point-sprites dialog-apply hbox left frame-rate-throttle /sim/gui/frame-rate-throttled dialog-apply frame-rate-throttle nasal 46 frame-rate /sim/frame-rate-throttle-hz 0 15.0 70.0 1.0 true /sim/frame-rate-throttle-hz dialog-apply frame-rate /sim/frame-rate-throttle-hz 0 %2.0f Hz true /sim/frame-rate-throttle-hz left sim/current-view/field-of-view-compensation nasal left jetways /nasal/jetways/enabled dialog-apply jetways left texture-cache-enabled /sim/rendering/texture-cache/cache-enabled dialog-apply texture-cache-enabled 1 hbox left true table 0 0 left 0 1 pylons 200 /sim/gui/dialogs/rendering/pylons Disabled Enabled dialog-apply pylons nasal 1 0 left 1 1 roads 200 /sim/gui/dialogs/rendering/roads Disabled Enabled dialog-apply roads nasal 2 0 left 2 1 buildings 200 /sim/gui/dialogs/rendering/buildings Disabled Randomly Generated OpenStreetMap Data dialog-apply buildings nasal 3 0 left 3 1 random-objects 200 /sim/gui/dialogs/rendering/random-objects Disabled Enabled dialog-apply random-objects nasal 4 0 left 4 1 random-vegetation 200 /sim/gui/dialogs/rendering/random-vegetation Disabled Ultra Low Density Very Low Density Low Density Medium Density High Density Very High Density Ultra High Density dialog-apply random-vegetation nasal 5 0 left 5 1 vegetation-shadows 200 /sim/gui/dialogs/rendering/vegetation-shadows Disabled Enabled dialog-apply vegetation-shadows nasal 6 0 left 6 1 placed-objects 200 /sim/gui/dialogs/rendering/placed-objects Disabled Enabled dialog-apply placed-objects nasal 7 0 left 7 1 texture-set 200 sim/gui/dialogs/rendering/texture-set Region-specific Global Global alternative (DDS format) dialog-apply texture-set nasal reload-materials 8 0 2 left 1.0 0.6 0.6 9 0 2 left 1.0 0.6 0.6 vbox 1 vbox 1 vbox 1 vbox hbox left true table left 0 0 custom-settings /sim/rendering/shaders/custom-settings dialog-apply custom-settings hbox 1 0 /sim/rendering/shaders/custom-settings quality-level 0.0 5.0 1.0 0.17 /sim/rendering/shaders/quality-level-internal dialog-apply quality-level (%1.0f) true /sim/rendering/shaders/quality-level-internal hbox 1 0 /sim/rendering/shaders/custom-settings /sim/rendering/shaders/skydome hbox 1 0 /sim/rendering/shaders/custom-settings /sim/rendering/shaders/skydome /sim/rendering/rembrandt/enabled hbox left true left particles /sim/rendering/particles dialog-apply particles left precipitation /sim/rendering/precipitation-gui-enable dialog-apply precipitation left 3d-clouds /sim/rendering/clouds3d-enable dialog-apply 3d-clouds hbox right /sim/rendering/clouds3d-enable cloud-density 0 1.0 /sim/rendering/clouds3d-density dialog-apply cloud-density property-toggle /sim/rendering/clouds3d-enable property-toggle /sim/rendering/clouds3d-enable /sim/rendering/clouds3d-enable %.2f true /sim/rendering/clouds3d-density hbox right /sim/rendering/clouds3d-enable cloud-vis-range 1000.0 150000.0 /sim/rendering/clouds3d-vis-range dialog-apply cloud-vis-range /sim/rendering/clouds3d-enable %.fm true /sim/rendering/clouds3d-vis-range table vbox 35 left 0 0 left skydome-scattering /sim/rendering/rembrandt/enabled /sim/rendering/shaders/skydome dialog-apply skydome-scattering hbox 2 0 left /sim/rendering/rembrandt/enabled left 1.0 0.6 0.6 /sim/rendering/rembrandt/enabled true /sim/rendering/rembrandt/enabled 1 vbox 1 0)); var matfile = getprop("/sim/rendering/materials-file"); foreach (var name; keys(materials)) { if (matfile == materials[name]) { setprop("/sim/gui/dialogs/rendering/texture-set", name); } } var vendor = getprop("/sim/rendering/gl-vendor"); if (vendor != nil) { vendor = string.lc(vendor); if (find("intel", vendor) != -1) { setprop("/sim/gui/dialogs/rendering/shader-warning", 1); } else { setprop("/sim/gui/dialogs/rendering/shader-warning", 0); } } # Mapping from underlying properties to those used by the GUI. if (getScenerySuffix("Pylons")) { setprop("/sim/gui/dialogs/rendering/pylons", "Enabled"); } else { setprop("/sim/gui/dialogs/rendering/pylons", "Disabled"); } if (getScenerySuffix("Roads")) { setprop("/sim/gui/dialogs/rendering/roads", "Enabled"); } else { setprop("/sim/gui/dialogs/rendering/roads", "Disabled"); } if (getScenerySuffix("Buildings")) { setprop("/sim/gui/dialogs/rendering/buildings", "OpenStreetMap Data"); } else if (getprop("/sim/rendering/random-buildings")) { setprop("/sim/gui/dialogs/rendering/buildings", "Random"); } else { setprop("/sim/gui/dialogs/rendering/buildings", "Disabled"); } if (getprop("/sim/rendering/random-objects")) { setprop("/sim/gui/dialogs/rendering/random-objects", "Enabled"); } else { setprop("/sim/gui/dialogs/rendering/random-objects", "Disabled"); } if (getprop("/sim/rendering/random-vegetation")) { var density = getprop("/sim/rendering/vegetation-density"); if (density < 0.2) { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Ultra Low Density"); # 0.1 } else if (density < 0.4) { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Very Low Density"); # 0.25 } else if (density < 0.8) { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Low Density"); # 0.5 } else if (density < 1.5) { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Medium Density"); # 1.0 } else if (density < 3.0) { setprop("/sim/gui/dialogs/rendering/random-vegetation", "High Density"); # 2.0 } else if (density < 6.0) { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Very High Density"); # 4.0 } else { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Ultra High Density"); # 8.0 } } else { setprop("/sim/gui/dialogs/rendering/random-vegetation", "Disabled"); } if (getprop("/sim/rendering/random-vegetation-shadows")) { setprop("/sim/gui/dialogs/rendering/vegetation-shadows", "Enabled"); } else { setprop("/sim/gui/dialogs/rendering/vegetation-shadows", "Disabled"); } if (getScenerySuffix("Objects")) { setprop("/sim/gui/dialogs/rendering/placed-objects", "Enabled"); } else { setprop("/sim/gui/dialogs/rendering/placed-objects", "Disabled"); } var reload_props = [ "/sim/rendering/materials-file", "/sim/rendering/osm-buildings", "/sim/rendering/random-buildings", "/sim/rendering/random-objects", "/sim/rendering/random-vegetation", "/sim/rendering/random-vegetation-shadows", "/sim/rendering/vegetation-density", "/sim/rendering/clouds3d-enable", "/sim/rendering/clouds3d-density", "/sim/rendering/scenery-path-suffix[0]/enabled", "/sim/rendering/scenery-path-suffix[1]/enabled", "/sim/rendering/scenery-path-suffix[2]/enabled", "/sim/rendering/scenery-path-suffix[3]/enabled", "/sim/rendering/scenery-path-suffix[4]/enabled", "/sim/rendering/scenery-path-suffix[5]/enabled", "/sim/rendering/scenery-path-suffix[6]/enabled" ]; var reload_vals = {}; foreach (var p; reload_props) { reload_vals[p] = getprop(p); } ]]>