flightgear-addon-aerotow-ev.../addon-menubar-items.xml

129 lines
4.5 KiB
XML
Raw Normal View History

2022-08-13 23:19:24 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
#
# Aerotow Everywhere - Add-on for FlightGear
#
# Written and developer by Roman Ludwicki (PlayeRom, SP-ROM)
#
# Copyright (C) 2022 Roman Ludwicki
#
# Aerotow Everywhere is an Open Source project and it is licensed
# under the GNU Public License v3 (GPLv3)
#
-->
<!--
2018-12 WARNING:
PUI menu items must have a globally unique label to make bindings work
correctly. Bindings of all items with the same label will be triggered
if any of them is selected from the menu.
-->
<PropertyList>
<meta>
<file-type type="string">FlightGear add-on menu bar items</file-type>
<format-version type="int">1</format-version>
</meta>
<menubar-items>
<menu>
<label>Aerotow Everywhere</label>
<enabled type="bool">true</enabled>
<item>
<label>Aerotow Route</label>
<binding>
<command>dialog-show</command>
<dialog-name>route-aerotow</dialog-name>
</binding>
</item>
2022-08-13 23:19:24 +08:00
<item>
<label>Call for Piper J3 Cub aircraft</label>
<binding>
<command>property-assign</command>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
<value type="string">Cub</value>
</binding>
</item>
<item>
<label>Call for Robin DR400 aircraft</label>
<binding>
<command>property-assign</command>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
<value type="string">DR400</value>
</binding>
</item>
<item>
<label>Call for Cessna 182 aircraft</label>
<binding>
<command>property-assign</command>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
<value type="string">c182</value>
</binding>
</item>
<item>
<label>Disable tow aircraft</label>
<binding>
<command>property-assign</command>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
<value type="bool">false</value>
</binding>
2022-08-13 23:19:24 +08:00
<binding>
<command>nasal</command>
<script><![CDATA[
# Run stopAerotow() with a delay to ensure that the engine sound turns off
var timer = maketimer(1, func () {
aerotow.stopAerotow();
});
timer.singleShot = 1;
timer.start();
]]></script>
2022-08-13 23:19:24 +08:00
</binding>
</item>
<item>
<label>---------------------</label>
<enabled>false</enabled>
</item>
<item>
<label>Add thermal</label>
<binding>
<command>dialog-show</command>
<dialog-name>add-thermal</dialog-name>
</binding>
</item>
<item>
<label>---------------------</label>
2022-08-13 23:19:24 +08:00
<enabled>false</enabled>
</item>
<item>
<label>Help</label>
<binding>
<command>dialog-show</command>
<dialog-name>help-aerotow</dialog-name>
</binding>
</item>
<item>
<label>About</label>
<binding>
<command>dialog-show</command>
<dialog-name>about-aerotow</dialog-name>
</binding>
</item>
<!--
FOR DEVELOPMENT ONLY!
trigger reload of addon-main.nas
1) This item should be REMOVED for release versions.
2) Ensure the label is unique
3) replace addon ID to match your addon
-->
<!-- <item>
<label>Reload Add-on</label>
<binding>
<command>addon-reload</command>
<id>org.flightgear.addons.Aerotow</id>
</binding>
</item> -->
</menu>
</menubar-items>
</PropertyList>