improve OHpanel
This commit is contained in:
parent
7dd01e960d
commit
f43526ab89
3 changed files with 794 additions and 733 deletions
|
@ -6223,6 +6223,54 @@
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>MaskManOnBtn2O</object-name>
|
||||||
|
<object-name>MaskManOnBtn2</object-name>
|
||||||
|
<object-name>MaskManOnBtn1</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<or>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>systems/electrical/bus/dc1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>systems/electrical/bus/dc2</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</or>
|
||||||
|
</condition>
|
||||||
|
<command>property-toggle</command>
|
||||||
|
<property>controls/oxygen/masksDeployMan</property>
|
||||||
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>setprop("/sim/sounde/oh-btn", 1);</script>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<object-name>MaskManOnBtn2O</object-name>
|
||||||
|
<condition>
|
||||||
|
<or>
|
||||||
|
<equals>
|
||||||
|
<property>controls/oxygen/masksDeployMan</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
<equals>
|
||||||
|
<property>controls/switches/annun-test</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
</or>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>CrewOxyBtn</object-name>
|
<object-name>CrewOxyBtn</object-name>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -412,10 +412,23 @@ var flashfault2 = func {
|
||||||
setprop("/controls/oxygen/masksSys", 1);
|
setprop("/controls/oxygen/masksSys", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||||
|
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||||
|
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||||
|
if (!masks) {
|
||||||
|
setprop("/controls/oxygen/masksDeployMan", 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
setlistener("/controls/oxygen/masksDeploy", func {
|
||||||
|
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||||
|
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||||
|
if (!autoMasks) {
|
||||||
|
setprop("/controls/oxygen/masksDeploy", 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Update Function #
|
# Update Function #
|
||||||
###################
|
###################
|
||||||
|
|
Reference in a new issue