Bugfix
This commit is contained in:
parent
943c939553
commit
6c7d862a31
1 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue