menu.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PropertyList>
  3. <default>
  4. <menu n="10">
  5. <label>Gnat</label>
  6. <enabled type="bool">true</enabled>
  7. <item>
  8. <name>Fuel-and-payload</name>
  9. <binding>
  10. <command>nasal</command>
  11. <script>gui.showWeightDialog()</script>
  12. </binding>
  13. </item>
  14. <item>
  15. <label>Select Livery</label>
  16. <binding>
  17. <command>nasal</command>
  18. <script>aircraft.livery.dialog.toggle()</script>
  19. </binding>
  20. </item>
  21. <item>
  22. <label>Toggle Canopy</label>
  23. <binding>
  24. <command>nasal</command>
  25. <script>doors.doorsystem.crewexport();</script>
  26. </binding>
  27. </item>
  28. <item>
  29. <label>Taxi</label>
  30. <binding>
  31. <command>nasal</command>
  32. <script>
  33. setprop("/controls/engines/engine[0]/throttle", 0.1);
  34. setprop("/autopilot/locks/speed", "");
  35. setprop("/controls/gear/brake-parking", 0.0);
  36. setprop("/afcs/flight-mode", "Taxi");
  37. </script>
  38. </binding>
  39. </item>
  40. <item>
  41. <label>Take off</label>
  42. <binding>
  43. <command>nasal</command>
  44. <script>
  45. setprop("/autopilot/settings/target-speed-kt", 200);
  46. setprop("/autopilot/locks/speed", "speed-with-throttle");
  47. setprop("/autopilot/locks/altitude", "");
  48. setprop("/autopilot/locks/heading", "");
  49. setprop("/controls/flight/flaps", 0.33);
  50. setprop("/controls/gear/brake-parking", 0);
  51. setprop("/afcs/flight-mode", "Take off");
  52. if(getprop("instrumentation/doors/crew/position-norm") == 1) {
  53. interpolate("instrumentation/doors/crew/position-norm", 0, 5);
  54. }
  55. </script>
  56. </binding>
  57. </item>
  58. <item>
  59. <label>Landing</label>
  60. <binding>
  61. <command>nasal</command>
  62. <script>
  63. if(getprop("/position/altitude-agl-ft") > 10){
  64. setprop("/controls/flight/flaps", 0.60);
  65. setprop("/autopilot/settings/target-speed-kt", 150);
  66. setprop("/autopilot/locks/speed", "speed-with-throttle");
  67. setprop("/autopilot/locks/altitude", "");
  68. setprop("/autopilot/settings/heading-bug-deg", getprop("/orientation/heading-magnetic-deg"));
  69. setprop("/autopilot/settings/true-heading-deg", getprop("/orientation/heading-deg"));
  70. setprop("/autopilot/locks/heading", "");
  71. setprop("/controls/gear/gear-down", 1);
  72. setprop("/sim/current-view/field-of-view", 90.0); # Zoom in (108 deg is default)
  73. setprop("/controls/gear/brake-parking", 1);
  74. setprop("/afcs/flight-mode", "Landing");
  75. }
  76. else{
  77. setprop("/controls/engines/engine[0]/throttle", 0.05);
  78. setprop("/autopilot/locks/speed", "");
  79. setprop("/afcs/flight-mode", "Taxi");
  80. }
  81. </script>
  82. </binding>
  83. </item>
  84. <item>
  85. <label>Park up</label>
  86. <binding>
  87. <command>nasal</command>
  88. <script>
  89. setprop("/controls/engines/engine[0]/throttle", 0.0);
  90. setprop("/autopilot/locks/speed", "");
  91. setprop("/controls/gear/brake-parking", 1.0);
  92. if(getprop("instrumentation/doors/crew/position-norm") == 0) {
  93. interpolate("instrumentation/doors/crew/position-norm", 1, 5);
  94. }
  95. setprop("/afcs/flight-mode", "--none--");
  96. </script>
  97. </binding>
  98. </item>
  99. </menu>
  100. </default>
  101. </PropertyList>