1
0
Fork 0

Finish interior lighting panel

This commit is contained in:
Jonathan Redpath 2022-02-17 22:50:02 +00:00
parent 7d3dabf3e5
commit c02994d83e
4 changed files with 142 additions and 132 deletions

View file

@ -1078,6 +1078,7 @@
<reading-light-left-knb type="double">0</reading-light-left-knb>
<reading-light-right-knb type="double">0</reading-light-right-knb>
<strobe type="bool">0</strobe>
<stby-compass-switch type="bool">0</stby-compass-switch>
<no-smoking-sign type="bool">1</no-smoking-sign>
<seatbelt-sign type="bool">0</seatbelt-sign>
<taxi-light-switch type="float">0</taxi-light-switch>

View file

@ -12489,32 +12489,6 @@
</hovered>
</animation>
<animation>
<type>knob</type>
<object-name>AnnunciatorLtSwtch</object-name>
<property>controls/switches/annun-test-pos</property>
<axis>
<object-name>AnnunciatorLtSwtch.axis</object-name>
</axis>
<offset-deg>0</offset-deg>
<factor>30</factor>
<drag-scale-px>3</drag-scale-px>
<drag-direction>vertical</drag-direction>
<action>
<binding>
<command>property-cycle</command>
<property>controls/switches/annun-test</property>
<value>0</value>
<value>1</value>
<wrap>false</wrap>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/switch1", 1);</script>
</binding>
</action>
</animation>
<animation>
<type>knob</type>
<object-name>EmerExtLtSwtch</object-name>
@ -12559,6 +12533,137 @@
</or>
</condition>
</animation>
<!-- Interior lights -->
<animation>
<type>knob</type>
<object-name>OHPMarkLtKnb</object-name>
<object-name>flood_lt_main.mark.002</object-name>
<property>controls/lighting/overhead-panel-knb</property>
<offset-deg>-125</offset-deg>
<factor>250</factor>
<axis>
<object-name>OHPMarkLtKnb.axis</object-name>
</axis>
<action>
<binding>
<command>property-adjust</command>
<property>controls/lighting/overhead-panel-knb</property>
<factor>0.05</factor>
<min>0</min>
<max>1</max>
<wrap>false</wrap>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ohp-mark-brt-lbl</tooltip-id>
<label>Overhead Panel Brightness</label>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
<object-name>StbyCompassLtSwtch</object-name>
<property>controls/lighting/stby-compass-switch-pos</property>
<axis>
<object-name>StbyCompassLtSwtch.axis</object-name>
</axis>
<offset-deg>-30</offset-deg>
<factor>60</factor>
<drag-scale-px>3</drag-scale-px>
<drag-direction>vertical</drag-direction>
<action>
<binding>
<command>property-cycle</command>
<property>controls/lighting/stby-compass-switch</property>
<value>0</value>
<value>1</value>
<wrap>false</wrap>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/switch1", 1);</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>stby-compass-lt-lbl</tooltip-id>
<label>Standby compass light switch</label>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
<object-name>DomeLtSwtch</object-name>
<property>controls/lighting/dome-norm-pos</property>
<axis>
<object-name>DomeLtSwtch.axis</object-name>
</axis>
<offset-deg>-30</offset-deg>
<factor>60</factor>
<drag-scale-px>3</drag-scale-px>
<drag-direction>vertical</drag-direction>
<action>
<binding>
<command>property-cycle</command>
<property>controls/lighting/dome-norm</property>
<value>0</value>
<value>0.5</value>
<value>1</value>
<wrap>false</wrap>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/switch1", 1);</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>dome-lt-lbl</tooltip-id>
<label>Dome light switch</label>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
<object-name>AnnunciatorLtSwtch</object-name>
<property>controls/switches/annun-test-pos</property>
<axis>
<object-name>AnnunciatorLtSwtch.axis</object-name>
</axis>
<offset-deg>0</offset-deg>
<factor>30</factor>
<drag-scale-px>3</drag-scale-px>
<drag-direction>vertical</drag-direction>
<action>
<binding>
<command>property-cycle</command>
<property>controls/switches/annun-test</property>
<value>0</value>
<value>1</value>
<wrap>false</wrap>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/switch1", 1);</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>audio-swtg-lbl</tooltip-id>
<label>Annunciator light test switch</label>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>

View file

@ -5558,112 +5558,6 @@
</condition>
</animation>
<!-- Interior lights -->
<animation>
<name>Overhead panel light pick</name>
<type>pick</type>
<object-name>OHPMarkLtKnb</object-name>
<action>
<button>0</button>
<button>3</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>controls/lighting/overhead-panel-knb</property>
<step>0.05</step>
<max>1</max>
</binding>
</action>
<action>
<button>1</button>
<button>4</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>controls/lighting/overhead-panel-knb</property>
<step>-0.05</step>
<min>0</min>
</binding>
</action>
</animation>
<animation>
<name>Overhead panel light rotate</name>
<type>rotate</type>
<object-name>OHPMarkLtKnb</object-name>
<property>controls/lighting/overhead-panel-knb</property>
<interpolation>
<entry><ind>0</ind><dep>-129</dep></entry>
<entry><ind>1</ind><dep>129</dep></entry>
</interpolation>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
<center>
<x-m>0</x-m>
<y-m>0.0405</y-m>
<z-m>-0.26</z-m>
</center>
</animation>
<animation>
<name>Dome lights pick</name>
<type>pick</type>
<object-name>DomeLtSwtch</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-cycle</command>
<property>controls/lighting/dome-norm</property>
<value>0.0</value>
<value>0.5</value>
<value>1.0</value>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/switch1", 1);</script>
</binding>
</action>
<action>
<button>1</button>
<repeatable>false</repeatable>
<binding>
<command>property-cycle</command>
<property>controls/lighting/dome-norm</property>
<value>1.0</value>
<value>0.5</value>
<value>0.0</value>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/switch1", 1);</script>
</binding>
</action>
</animation>
<animation>
<name>Dome lights rotate</name>
<type>rotate</type>
<object-name>DomeLtSwtch</object-name>
<property>controls/lighting/dome-norm</property>
<interpolation>
<entry><ind>0</ind><dep>35</dep></entry>
<entry><ind>0.5</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-35</dep></entry>
</interpolation>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>-0.01</x-m>
<y-m>0</y-m>
<z-m>-0.2597</z-m>
</center>
</animation>

View file

@ -200,6 +200,16 @@
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/lighting/stby-compass-switch-pos">
<input>/controls/lighting/stby-compass-switch</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/lighting/dome-norm-pos">
<input>/controls/lighting/dome-norm</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/switches/annun-test-pos">
<input>/controls/switches/annun-test</input>
<c1>20</c1>