Bugfix
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
This commit is contained in:
parent
2a505cd29e
commit
85d64deb04
1 changed files with 216 additions and 205 deletions
|
@ -10,13 +10,17 @@
|
|||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<empty><stretch>1</stretch></empty>
|
||||
<empty>
|
||||
<stretch>1</stretch>
|
||||
</empty>
|
||||
|
||||
<text>
|
||||
<label>AI Carrier Controls</label>
|
||||
</text>
|
||||
|
||||
<empty><stretch>1</stretch></empty>
|
||||
<empty>
|
||||
<stretch>1</stretch>
|
||||
</empty>
|
||||
|
||||
<button>
|
||||
<pref-width>16</pref-width>
|
||||
|
@ -166,12 +170,19 @@
|
|||
<width>75</width>
|
||||
<height>25</height>
|
||||
<property>/ai/models/carrier/controls/lighting/flood-lights-red-norm</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
print("get red light");
|
||||
var v = getprop("/ai/models/carrier/controls/lighting/flood-lights-red-norm");
|
||||
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier"))
|
||||
{
|
||||
c.getNode("controls/lighting/flood-lights-red-norm",1).setDoubleValue(v);
|
||||
print("set red light", v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</slider>
|
||||
|
|
Loading…
Reference in a new issue