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>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
||||
}
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||
carrier.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
@ -111,9 +110,8 @@
|
|||
<command>nasal</command>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/elevators");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/elevators").setBoolValue(v);
|
||||
}
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||
carrier.getNode("controls/elevators").setBoolValue(v);
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
@ -129,9 +127,8 @@
|
|||
<command>nasal</command>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/deck-lights");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
|
||||
}
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
|
|
@ -78,6 +78,15 @@
|
|||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Particles</label>
|
||||
<property>/sim/rendering/particles</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<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>
|
||||
<enhanced-lighting type="bool" userarchive="y">false</enhanced-lighting>
|
||||
<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>
|
||||
<!-- streaks coloring and transparency -->
|
||||
|
|
Loading…
Reference in a new issue