1
0
Fork 0
This commit is contained in:
vmmeazza 2008-10-16 16:30:41 +00:00
parent 943c939553
commit 6c7d862a31

View file

@ -114,20 +114,20 @@
</binding>
</checkbox>
<checkbox>
<checkbox>
<halign>left</halign>
<label>Deck Lights</label>
<property>/ai/models/carrier/controls/elevators</property>
<property>/ai/models/carrier/controls/deck-lights</property>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
var v = getprop("/ai/models/carrier/controls/elevators");
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);
}
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
}
</script>
</binding>
</checkbox>