This repository has been archived on 2021-09-26. You can view files and clone it, but cannot push or open issues or pull requests.
IDG-A32X/Models/Instruments/mCDU/tp-arr/stars.xml

405 lines
10 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<path>stars.ac</path>
<!-- mCDU Display Brightness -->
<animation>
<type>material</type>
<object-name>departure</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
<factor-prop>/instrumentation/mcdu/brt</factor-prop>
</emission>
</animation>
<animation>
<type>material</type>
<object-name>text-yellow</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>0</blue>
<factor-prop>/instrumentation/mcdu/brt</factor-prop>
</emission>
<diffuse>
<red>1</red>
<green>1</green>
<blue>0</blue>
</diffuse>
</animation>
<animation>
<type>material</type>
<object-name>text-green</object-name>
<emission>
<red>0</red>
<green>0.4823</green>
<blue>0.5372</blue>
<factor-prop>/instrumentation/mcdu/brt</factor-prop>
</emission>
<diffuse>
<red>0</red>
<green>0.4823</green>
<blue>0.5372</blue>
</diffuse>
</animation>
<animation>
<type>material</type>
<object-name>text-cyan</object-name>
<emission>
<red>0</red>
<green>1</green>
<blue>1</blue>
<factor-prop>/instrumentation/mcdu/brt</factor-prop>
</emission>
<diffuse>
<red>0</red>
<green>1</green>
<blue>1</blue>
</diffuse>
</animation>
<!-- Button Pick Animations -->
<animation>
<type>pick</type>
<object-name>l2</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
var first = getprop("/flight-management/procedures/star/first");
mcdu.star.select_star(first);
</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>l3</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
var first = getprop("/flight-management/procedures/star/first");
mcdu.star.select_star(first + 1);
</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>l4</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
var first = getprop("/flight-management/procedures/star/first");
mcdu.star.select_star(first + 2);
</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>l5</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
var first = getprop("/flight-management/procedures/star/first");
mcdu.star.select_star(first + 3);
</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>l6</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
mcdu.star.select_arpt(getprop("/instrumentation/mcdu/f-pln/disp/destination"));
</script>
</binding>
</action>
</animation>
<!-- Arrows -->
<animation>
<type>pick</type>
<object-name>u_arrow</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
var first = getprop("/flight-management/procedures/star/first");
var invert = getprop('aircraft-config/saved/mcdu/invert-arrow-keys') or 0;
if(!invert){
if (first != 0)
setprop("/flight-management/procedures/star/first", first - 4);
} else {
var max = getprop("/flight-management/procedures/star/stars");
if (max > first + 4)
setprop("/flight-management/procedures/star/first", first + 4);
}
mcdu.star.update_stars();
</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>d_arrow</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
var first = getprop("/flight-management/procedures/star/first");
var invert = getprop('aircraft-config/saved/mcdu/invert-arrow-keys') or 0;
if(!invert){
var max = getprop("/flight-management/procedures/star/stars");
if (max > first + 4)
setprop("/flight-management/procedures/star/first", first + 4);
} else {
if (first != 0)
setprop("/flight-management/procedures/star/first", first - 4);
}
mcdu.star.update_stars();
</script>
</binding>
</action>
</animation>
<!-- OSGText for non-empty fields -->
<!-- Left stare -->
<text>
<name>text-green</name>
<offsets>
<x-m>-0.08</x-m>
<y-m>0.0140</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>/instrumentation/mcdu/f-pln/disp/destination</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.004</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<text>
<name>text-yellow</name>
<offsets>
<x-m>-0.0702</x-m>
<y-m>-0.0438</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>flight-management/procedures/star/selected-rwy</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.003</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<text>
<name>text-yellow</name>
<offsets>
<x-m>-0.0702</x-m>
<y-m>-0.0030</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>flight-management/procedures/star/selected-star</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.003</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Runways -->
<text>
<name>text-cyan</name>
<offsets>
<x-m>-0.0608</x-m>
<y-m>-0.0391</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>flight-management/procedures/star/star-disp/line/id</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.003</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<text>
<name>text-cyan</name>
<offsets>
<x-m>-0.0523</x-m>
<y-m>-0.0391</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>flight-management/procedures/star/star-disp/line[1]/id</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.003</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<text>
<name>text-cyan</name>
<offsets>
<x-m>-0.0429</x-m>
<y-m>-0.0391</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>flight-management/procedures/star/star-disp/line[2]/id</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.003</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<text>
<name>text-cyan</name>
<offsets>
<x-m>-0.0344</x-m>
<y-m>-0.0391</y-m>
<z-m>-0.0006</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>flight-management/procedures/star/star-disp/line[3]/id</property>
<truncate type="bool">false</truncate>
<font type="string">courier-bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.003</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
</PropertyList>