2003-11-29 14:20:00 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
2015-07-09 08:15:40 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
<![CDATA[
|
|
|
|
var modePixel = (getprop("/sim/rendering/static-lod/ai-range-mode-pixel") == 1);
|
|
|
|
setprop( "/sim/gui/dialogs/static-lod/mode/pixel", modePixel );
|
|
|
|
setprop( "/sim/gui/dialogs/static-lod/mode/distance", !modePixel );
|
2016-04-08 21:39:29 +00:00
|
|
|
|
|
|
|
var reload_props = [
|
|
|
|
"/sim/rendering/static-lod/rough",
|
|
|
|
"/sim/rendering/static-lod/bare"];
|
|
|
|
|
|
|
|
var reload_vals = {};
|
|
|
|
foreach (var p; reload_props) {
|
|
|
|
reload_vals[p] = getprop(p);
|
|
|
|
}
|
2015-07-09 08:15:40 +00:00
|
|
|
]]>
|
|
|
|
</open>
|
|
|
|
</nasal>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<name>static-lod</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
2011-07-11 21:15:23 +00:00
|
|
|
<label>Adjust Level Of Detail Ranges</label>
|
2010-12-27 20:19:31 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
2004-05-12 15:37:17 +00:00
|
|
|
|
2007-03-26 15:25:27 +00:00
|
|
|
<hrule/>
|
2006-03-31 10:29:07 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<halign>center</halign>
|
|
|
|
|
|
|
|
<text>
|
2011-10-03 10:04:53 +00:00
|
|
|
<row>0</row><col>1</col><colspan>3</colspan>
|
|
|
|
<label>Max. Ranges (m)</label>
|
2004-05-12 15:37:17 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
2011-10-03 10:04:53 +00:00
|
|
|
<row>1</row><col>1</col>
|
2004-05-12 15:37:17 +00:00
|
|
|
<label>Detailed</label>
|
|
|
|
</text>
|
2011-10-03 10:04:53 +00:00
|
|
|
<text>
|
|
|
|
<row>1</row><col>2</col>
|
|
|
|
<label>Rough</label>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>1</row><col>3</col>
|
|
|
|
<label>Bare</label>
|
|
|
|
</text>
|
2004-05-12 15:37:17 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>2</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
2011-10-03 10:04:53 +00:00
|
|
|
<label>Scenery</label>
|
2004-05-12 15:37:17 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<row>2</row><col>1</col>
|
|
|
|
<halign>fill</halign>
|
2011-10-03 10:04:53 +00:00
|
|
|
<property>/sim/rendering/static-lod/detailed</property>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<row>2</row><col>2</col>
|
|
|
|
<halign>fill</halign>
|
2004-05-12 15:37:17 +00:00
|
|
|
<property>/sim/rendering/static-lod/rough</property>
|
|
|
|
</input>
|
|
|
|
|
2011-10-03 10:04:53 +00:00
|
|
|
<input>
|
|
|
|
<row>2</row><col>3</col>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<property>/sim/rendering/static-lod/bare</property>
|
|
|
|
</input>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<text>
|
|
|
|
<row>3</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
2011-10-03 10:04:53 +00:00
|
|
|
<label>AI/MP Aircraft</label>
|
2004-05-12 15:37:17 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<row>3</row><col>1</col>
|
|
|
|
<halign>fill</halign>
|
2011-10-03 10:04:53 +00:00
|
|
|
<property>/sim/rendering/static-lod/ai-detailed</property>
|
|
|
|
</input>
|
|
|
|
|
2015-07-09 08:15:40 +00:00
|
|
|
<radio>
|
|
|
|
<row>3</row>
|
|
|
|
<col>2</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<name>pixel</name>
|
|
|
|
<property>sim/gui/dialogs/static-lod/mode/pixel</property>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Pixel</label>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/gui/dialogs/static-lod/mode/distance</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/gui/dialogs/static-lod/mode/pixel</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/rendering/static-lod/ai-range-mode-pixel</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
|
|
|
|
<radio>
|
|
|
|
<row>3</row>
|
|
|
|
<col>3</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<name>distance</name>
|
|
|
|
<property>sim/gui/dialogs/static-lod/mode/distance</property>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Distance (m)</label>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/gui/dialogs/static-lod/mode/distance</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/gui/dialogs/static-lod/mode/pixel</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/rendering/static-lod/ai-range-mode-pixel</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
|
2014-09-21 20:15:40 +00:00
|
|
|
<text>
|
|
|
|
<row>4</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>AI/MP Interior</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<row>4</row><col>1</col>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<property>/sim/rendering/static-lod/ai-interior</property>
|
|
|
|
</input>
|
|
|
|
|
2011-10-03 10:04:53 +00:00
|
|
|
<!-- // meaningless for now...
|
|
|
|
<input>
|
|
|
|
<row>3</row><col>3</col>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<property>/sim/rendering/static-lod/ai-bare</property>
|
2004-05-12 15:37:17 +00:00
|
|
|
</input>
|
2011-10-03 10:04:53 +00:00
|
|
|
-->
|
2004-05-12 15:37:17 +00:00
|
|
|
|
|
|
|
</group>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<hrule/>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>10</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>OK</legend>
|
2005-11-05 13:59:06 +00:00
|
|
|
<default>true</default>
|
2004-05-12 15:37:17 +00:00
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-apply</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
2016-04-08 21:39:29 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script><![CDATA[
|
|
|
|
var reinit = 0;
|
|
|
|
foreach (var p; reload_props) {
|
|
|
|
if (reload_vals[p] != getprop(p)) {
|
|
|
|
reinit = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (reinit) {
|
|
|
|
fgcommand("reload-materials", props.Node.new());
|
2017-03-26 19:34:41 +00:00
|
|
|
fgcommand("reinit", props.Node.new({"subsystem": "scenery"}));
|
2016-04-08 21:39:29 +00:00
|
|
|
}
|
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
</binding>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-close</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Apply</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-apply</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Reset</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-update</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Cancel</legend>
|
2005-11-05 18:42:28 +00:00
|
|
|
<key>Esc</key>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-close</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
2016-04-08 21:39:29 +00:00
|
|
|
|
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
</open>
|
|
|
|
</nasal>
|
|
|
|
|
2003-11-29 14:20:00 +00:00
|
|
|
</PropertyList>
|