You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flightgear-addon-aerotow-ev.../addon-menubar-items.xml

142 lines
5.1 KiB

2 years ago
<?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>
<item>
<label>Towrope Configuration</label>
<binding>
<command>dialog-show</command>
<dialog-name>towrope-config</dialog-name>
</binding>
</item>
2 years ago
<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>Call for Douglas C-47 aircraft</label>
<binding>
<command>property-assign</command>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
<value type="string">C47</value>
</binding>
2 years ago
</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>
2 years ago
<binding>
<command>nasal</command>
<script><![CDATA[
# Run stopAerotow() with a delay to ensure that the engine sound turns off
aerotow.Timer.new().singleShot(1, aerotow.g_Aerotow, func () {
aerotow.g_Aerotow.stopAerotow();
});
]]></script>
2 years ago
</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>
2 years ago
<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>