1
0
Fork 0
fgdata/Aircraft/Instruments-3d/radar2/hud.xml

59 lines
1.3 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<!-- Additional Radar features in the HUD -->
<PropertyList>
<path>hud.ac</path>
<animation>
<type>select</type>
<object-name>hud</object-name>
<condition>
<equals>
<property>sim/current-view/name</property>
<value>Cockpit View</value>
</equals>
<property>sim/hud/visibility[1]</property>
</condition>
</animation>
<!-- Diamond -->
<animation>
<type>select</type>
<object-name>lock-1</object-name>
<condition>
<property>instrumentation/radar2/hud/target-display</property>
<not><property>instrumentation/radar/radar-standby</property></not>
<property>instrumentation/radar2/hud/target-clamped-blinker/state</property>
</condition>
</animation>
<animation>
<type>rotate</type>
<object-name>lock-1</object-name>
<property>instrumentation/radar2/hud/target-total-angle</property>
<axis><x>-1</x></axis>
</animation>
<animation>
<type>translate</type>
<object-name>lock-1</object-name>
<property>instrumentation/radar2/hud/target-total-deviation</property>
<factor>1</factor>
<axis>
<z>1</z>
</axis>
</animation>
<animation><!-- post-rotate in inverse direction to keep the diamond vertical -->
<type>rotate</type>
<object-name>lock-1</object-name>
<property>instrumentation/radar2/hud/target-total-angle</property>
<axis><x>1</x></axis>
</animation>
</PropertyList>