add flag/checkbox to enable/disable particles
This commit is contained in:
parent
fcffbe5986
commit
4393681be9
3 changed files with 16 additions and 9 deletions
|
@ -93,9 +93,8 @@
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>
|
||||||
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg");
|
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg");
|
||||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||||
carrier.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
carrier.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
@ -111,9 +110,8 @@
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>
|
||||||
var v = getprop("/ai/models/carrier/controls/elevators");
|
var v = getprop("/ai/models/carrier/controls/elevators");
|
||||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||||
carrier.getNode("controls/elevators").setBoolValue(v);
|
carrier.getNode("controls/elevators").setBoolValue(v);
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
@ -129,9 +127,8 @@
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>
|
||||||
var v = getprop("/ai/models/carrier/controls/deck-lights");
|
var v = getprop("/ai/models/carrier/controls/deck-lights");
|
||||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||||
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
|
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
|
|
@ -78,6 +78,15 @@
|
||||||
</binding>
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
|
||||||
|
<checkbox>
|
||||||
|
<halign>left</halign>
|
||||||
|
<label>Particles</label>
|
||||||
|
<property>/sim/rendering/particles</property>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
</binding>
|
||||||
|
</checkbox>
|
||||||
|
|
||||||
<checkbox>
|
<checkbox>
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<label>Precipitation</label>
|
<label>Precipitation</label>
|
||||||
|
|
|
@ -67,6 +67,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
<point-sprites type="bool" userarchive="y">true</point-sprites>
|
<point-sprites type="bool" userarchive="y">true</point-sprites>
|
||||||
<enhanced-lighting type="bool" userarchive="y">false</enhanced-lighting>
|
<enhanced-lighting type="bool" userarchive="y">false</enhanced-lighting>
|
||||||
<distance-attenuation type="bool" userarchive="y">false</distance-attenuation>
|
<distance-attenuation type="bool" userarchive="y">false</distance-attenuation>
|
||||||
|
<particles type="bool" userarchive="y">true</particles>
|
||||||
<precipitation-enable type="bool" userarchive="y">false</precipitation-enable>
|
<precipitation-enable type="bool" userarchive="y">false</precipitation-enable>
|
||||||
<precipitation>
|
<precipitation>
|
||||||
<!-- streaks coloring and transparency -->
|
<!-- streaks coloring and transparency -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue