348 lines
9.4 KiB
XML
348 lines
9.4 KiB
XML
|
<PropertyList>
|
||
|
|
||
|
<path>sec-f-pln.ac</path>
|
||
|
|
||
|
<!-- Materials -->
|
||
|
|
||
|
<animation>
|
||
|
<type>material</type>
|
||
|
<object-name>white</object-name>
|
||
|
<object-name>show-pln</object-name>
|
||
|
<emission>
|
||
|
<red>1</red>
|
||
|
<green>1</green>
|
||
|
<blue>1</blue>
|
||
|
<factor-prop>/instrumentation/mcdu/brt</factor-prop>
|
||
|
</emission>
|
||
|
<diffuse>
|
||
|
<red>1</red>
|
||
|
<green>1</green>
|
||
|
<blue>1</blue>
|
||
|
</diffuse>
|
||
|
</animation>
|
||
|
|
||
|
<animation>
|
||
|
<type>material</type>
|
||
|
<object-name>cyan</object-name>
|
||
|
<object-name>del-sec</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>activate-sec</object-name>
|
||
|
<emission>
|
||
|
<red>0.9254</red>
|
||
|
<green>0.4980</green>
|
||
|
<blue>0.35</blue>
|
||
|
<factor-prop>/instrumentation/mcdu/brt</factor-prop>
|
||
|
</emission>
|
||
|
<diffuse>
|
||
|
<red>0.9254</red>
|
||
|
<green>0.4980</green>
|
||
|
<blue>0.35</blue>
|
||
|
</diffuse>
|
||
|
</animation>
|
||
|
|
||
|
<!-- Select -->
|
||
|
|
||
|
<animation>
|
||
|
<type>select</type>
|
||
|
<object-name>activate-sec</object-name>
|
||
|
<object-name>del-sec</object-name>
|
||
|
<object-name>show-pln</object-name>
|
||
|
<condition>
|
||
|
<property>instrumentation/mcdu/sec-f-pln/created</property>
|
||
|
</condition>
|
||
|
</animation>
|
||
|
|
||
|
<!-- Actions -->
|
||
|
|
||
|
<animation>
|
||
|
<type>pick</type>
|
||
|
<object-name>l1</object-name>
|
||
|
<action>
|
||
|
<button>0</button>
|
||
|
<repeatable type="bool">false</repeatable>
|
||
|
<binding>
|
||
|
<command>nasal</command>
|
||
|
<script>
|
||
|
var rm = fmgc.RouteManager;
|
||
|
var fp = rm.createSecondaryFlightPlan();
|
||
|
var crz_fl = getprop("/flight-management/crz_fl") or 0;
|
||
|
if(crz_fl)
|
||
|
setprop("/flight-management/secondary-rte/crz_fl", crz_fl);
|
||
|
var temp = getprop("/flight-management/temp") or 0;
|
||
|
if(temp)
|
||
|
setprop("/flight-management/secondary-rte/temp", temp);
|
||
|
var altn = rm.getAlternateRoute();
|
||
|
if(altn != nil)
|
||
|
rm.alternates['secondary'] = altn.clone();
|
||
|
rm.trigger('edited');
|
||
|
setprop('instrumentation/mcdu/sec-f-pln/created', 1);
|
||
|
</script>
|
||
|
</binding>
|
||
|
</action>
|
||
|
</animation>
|
||
|
|
||
|
<animation>
|
||
|
<type>pick</type>
|
||
|
<object-name>l2</object-name>
|
||
|
<action>
|
||
|
<button>0</button>
|
||
|
<repeatable type="bool">false</repeatable>
|
||
|
<binding>
|
||
|
<command>nasal</command>
|
||
|
<script>
|
||
|
var rm = fmgc.RouteManager;
|
||
|
if(rm.getFlightPlan('secondary') != nil){
|
||
|
setprop('instrumentation/mcdu/sec-f-pln/disp', 1);
|
||
|
setprop('instrumentation/mcdu/f-pln/disp/current-flightplan', 'secondary');
|
||
|
setprop('/instrumentation/mcdu/f-pln/disp/first', 0);
|
||
|
mcdu.f_pln.update_disp();
|
||
|
setprop('/instrumentation/mcdu/page', 'f-pln');
|
||
|
}
|
||
|
</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 rm = fmgc.RouteManager;
|
||
|
setprop('instrumentation/mcdu/sec-f-pln/disp', 0);
|
||
|
rm.deleteFlightPlan('secondary');
|
||
|
setprop("/flight-management/secondary-rte/crz_fl", '');
|
||
|
setprop("/flight-management/secondary-rte/temp", '');
|
||
|
setprop('instrumentation/mcdu/sec-f-pln/created', 0);
|
||
|
</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 rm = fmgc.RouteManager;
|
||
|
var f_pln_disp = "/instrumentation/mcdu/f-pln/disp/";
|
||
|
if(rm.getFlightPlan('secondary') != nil){
|
||
|
var rm = fmgc.RouteManager;
|
||
|
mcdu.f_pln.tmpy_fplan = nil;
|
||
|
mcdu.lat_rev.tmpy_fplan = nil;
|
||
|
setprop(f_pln_disp~ 'current-flightplan', '');
|
||
|
rm.deleteFlightPlan('temporary');
|
||
|
setprop('/instrumentation/mcdu/f-pln/dir-to-mode', 0);
|
||
|
setprop('/flight-management/dir-to',0);
|
||
|
setprop('instrumentation/mcdu/sec-f-pln/disp', 0);
|
||
|
setprop('instrumentation/mcdu/sec-f-pln/created', 0);
|
||
|
var crz_fl = getprop("/flight-management/secondary-rte/crz_fl") or 0;
|
||
|
if(crz_fl){
|
||
|
setprop("/flight-management/crz_fl", crz_fl);
|
||
|
var fl_lvl = int(crz_fl) * 100;
|
||
|
setprop("autopilot/route-manager/cruise/altitude-ft", fl_lvl);
|
||
|
}
|
||
|
var temp = getprop("/flight-management/secondary-rte/temp") or 0;
|
||
|
if(temp)
|
||
|
setprop("/flight-management/temp", temp);
|
||
|
rm.copyFlightPlanToActive('secondary', 1);
|
||
|
var altn = rm.getAlternateRoute('secondary');
|
||
|
if(altn != nil){
|
||
|
rm.alternates['current'] = altn;
|
||
|
rm.deleteAlternateDestination('secondary');
|
||
|
}
|
||
|
mcdu.f_pln.update_flightplan_waypoints();
|
||
|
if(getprop("/flight-management/control/lat-ctrl") == 'fmgc'){
|
||
|
setprop("/flight-management/control/lat-ctrl", 'man-set');
|
||
|
setprop("/flight-management/control/lat-ctrl", 'fmgc');
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</binding>
|
||
|
</action>
|
||
|
</animation>
|
||
|
|
||
|
<animation>
|
||
|
<type>pick</type>
|
||
|
<object-name>r1</object-name>
|
||
|
<action>
|
||
|
<button>0</button>
|
||
|
<repeatable type="bool">false</repeatable>
|
||
|
<binding>
|
||
|
<command>nasal</command>
|
||
|
<script>
|
||
|
setprop('/instrumentation/mcdu/page', 'init-sec');
|
||
|
</script>
|
||
|
</binding>
|
||
|
</action>
|
||
|
</animation>
|
||
|
|
||
|
<!-- Texts -->
|
||
|
|
||
|
<text>
|
||
|
<name>white</name>
|
||
|
<offsets>
|
||
|
<x-m>-0.0784</x-m>
|
||
|
<y-m>0</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">literal</type>
|
||
|
<text>SEC INDEX</text>
|
||
|
<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>cyan</name>
|
||
|
<offsets>
|
||
|
<x-m>-0.0702</x-m>
|
||
|
<y-m>-0.0436</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">literal</type>
|
||
|
<text>< COPY ACTIVE</text>
|
||
|
<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>cyan</name>
|
||
|
<offsets>
|
||
|
<x-m>-0.0702</x-m>
|
||
|
<y-m>0.0397</y-m>
|
||
|
<z-m>-0.0006</z-m>
|
||
|
<heading-deg>90</heading-deg>
|
||
|
</offsets>
|
||
|
<alignment>right-center</alignment>
|
||
|
<axis-alignment>xy-plane</axis-alignment>
|
||
|
<type type="string">literal</type>
|
||
|
<text>INIT ></text>
|
||
|
<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>show-pln</name>
|
||
|
<offsets>
|
||
|
<x-m>-0.0608</x-m>
|
||
|
<y-m>-0.0436</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">literal</type>
|
||
|
<text>< SEC F-PLN</text>
|
||
|
<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>del-sec</name>
|
||
|
<offsets>
|
||
|
<x-m>-0.0520</x-m>
|
||
|
<y-m>-0.0436</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">literal</type>
|
||
|
<text>< DELETE SEC</text>
|
||
|
<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>activate-sec</name>
|
||
|
<offsets>
|
||
|
<x-m>-0.0434</x-m>
|
||
|
<y-m>-0.0436</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">literal</type>
|
||
|
<text>* ACTIVATE SEC</text>
|
||
|
<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>
|