1
0
Fork 0
fgdata/Aircraft/c172p/Models/Interior/Panel/Instruments/digital-clock/digital-clock.xml
2021-09-14 19:34:27 +01:00

187 lines
5.2 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<path>digital-clock.ac</path>
<effect>
<inherits-from>../../../../Effects/interior/lm-digitalclock</inherits-from>
<object-name>Case</object-name>
<object-name>DigitalClock</object-name>
<object-name>KnobLeft</object-name>
<object-name>KnobCenter</object-name>
<object-name>KnobRight</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/interior-glass-reflection-panel-front</inherits-from>
<object-name>glass_panel</object-name>
</effect>
<animation>
<type>material</type>
<object-name>DigitalClock</object-name>
<object-name>HR.001</object-name>
<object-name>HR.002</object-name>
<object-name>MN.001</object-name>
<object-name>MN.002</object-name>
<object-name>Case</object-name>
<condition>
<or>
<not>
<property>/sim/rendering/shaders/skydome</property>
</not>
<equals>
<property>/sim/rendering/shaders/model</property>
<value>0</value>
</equals>
</or>
</condition>
<emission>
<red-prop>/sim/model/material/instruments/default-red-combined-factor</red-prop>
<green-prop>/sim/model/material/instruments/default-green-combined-factor</green-prop>
<blue-prop>/sim/model/material/instruments/default-blue-combined-factor</blue-prop>
</emission>
</animation>
<animation>
<type>select</type>
<object-name>M877.timerind</object-name>
<condition>
<equals>
<property>instrumentation/clock/lc2/mode-string</property>
<value>ET</value>
</equals>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>M877.colon</object-name>
<condition>
<property>instrumentation/clock/lc2/power</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>HR.001</object-name>
<condition>
<property>instrumentation/clock/lc2/digit[3]</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>HR.002</object-name>
<condition>
<property>instrumentation/clock/lc2/digit[2]</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>MN.001</object-name>
<condition>
<property>instrumentation/clock/lc2/digit[1]</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>MN.002</object-name>
<condition>
<property>instrumentation/clock/lc2/digit[0]</property>
</condition>
</animation>
<animation>
<type>textranslate</type>
<object-name>HR.001</object-name>
<property>instrumentation/clock/lc2/indicated-hour</property>
<factor>0.01</factor>
<step>10</step>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>HR.002</object-name>
<property>instrumentation/clock/lc2/indicated-hour</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>MN.001</object-name>
<property>instrumentation/clock/lc2/indicated-min</property>
<factor>0.01</factor>
<step>10</step>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>MN.002</object-name>
<property>instrumentation/clock/lc2/indicated-min</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>KnobLeft</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>clock.astrotech.left_knob();</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>KnobCenter</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>clock.astrotech.select_mode();</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>KnobRight</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>clock.astrotech.right_knob();</script>
</binding>
</action>
</animation>
</PropertyList>