r44-menu.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <PropertyList>
  3. <default>
  4. <menu n="10">
  5. <label>Robinson R66 Turbine</label>
  6. <enabled type="bool">true</enabled>
  7. <item>
  8. <label>Autostart</label>
  9. <binding>
  10. <command>property-toggle</command>
  11. <property>sim/model/start-idling</property>
  12. </binding>
  13. </item>
  14. <item>
  15. <label>Equipment</label>
  16. <binding>
  17. <command>nasal</command>
  18. <script>r44.equipment_dialog.toggle()</script>
  19. </binding>
  20. </item>
  21. <item>
  22. <label>Select Livery</label>
  23. <binding>
  24. <command>nasal</command>
  25. <script>aircraft.livery.dialog.toggle()</script>
  26. </binding>
  27. </item>
  28. <item>
  29. <label>Blades visible</label>
  30. <binding>
  31. <command>nasal</command>
  32. <script>
  33. var p = "rotors/main/bladesvisible";
  34. setprop(p, var i = !getprop(p));
  35. gui.popupTip("Blades visible " ~ (i ? "On" : "Off"));
  36. </script>
  37. </binding>
  38. </item>
  39. <item>
  40. <label>Pilot/copilot visible</label>
  41. <binding>
  42. <command>nasal</command>
  43. <script>
  44. var p = "/sim/model/r44/pilot-visible";
  45. setprop(p, var i = !getprop(p));
  46. var a = "/sim/model/r44/copilot-visible";
  47. setprop(a, var i = !getprop(a));
  48. gui.popupTip("pilots visible " ~ (i ? "On" : "Off"));
  49. </script>
  50. </binding>
  51. </item>
  52. <item>
  53. <label>Immatriculation</label>
  54. <binding>
  55. <command>nasal</command>
  56. <script>r44.immat_dialog.toggle()</script>
  57. </binding>
  58. </item>
  59. <item>
  60. <label>Select MP-copilot</label>
  61. <binding>
  62. <command>nasal</command>
  63. <script>
  64. dual_control_tools.copilot_dialog.show(aircraft_dual_control.copilot_type);
  65. </script>
  66. </binding>
  67. </item>
  68. <item>
  69. <label>Pushback</label>
  70. <name>pushback</name>
  71. <binding>
  72. <command>nasal</command>
  73. <script>var push_dlg = gui.Dialog.new("sim/gui/dialogs/pushback/dialog", "Aircraft/R44/Models/HelicopterPushback/dialog/helicopter_pushback.xml"); push_dlg.open();</script>
  74. </binding>
  75. </item>
  76. </menu>
  77. </default>
  78. </PropertyList>