1
0
Fork 0

Add switchable flightdeck lighting

This commit is contained in:
vmmeazza 2008-10-15 18:08:16 +00:00
parent 181dbba72c
commit 33161d2ec0

View file

@ -113,6 +113,24 @@
</script>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Deck Lights</label>
<property>/ai/models/carrier/controls/elevators</property>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
var v = getprop("/ai/models/carrier/controls/elevators");
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
}
</script>
</binding>
</checkbox>
</group>