flightgear-addon-aerotow-ev.../gui/dialogs/add-thermal.xml

217 lines
5.8 KiB
XML

<?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)
#
-->
<!-- This file requires FlightGear version 2018.2 or newer -->
<PropertyList>
<name>add-thermal</name>
<resizable>false</resizable>
<layout>vbox</layout>
<default-padding>3</default-padding>
<group>
<layout>hbox</layout>
<empty>
<stretch>1</stretch>
</empty>
<text>
<label>Add Thermal</label>
</text>
<empty>
<stretch>1</stretch>
</empty>
<button>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<legend></legend>
<keynum>27</keynum>
<border>2</border>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<text>
<halign>left</halign>
<label> This option allows the thermal to be placed at the distance </label>
</text>
<text>
<halign>left</halign>
<label> designated below in front of the glider along with other parameters. </label>
</text>
<hrule/>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<halign>right</halign>
<label> Distance in front of the glider</label>
</text>
<input>
<row>0</row>
<col>1</col>
<label>m</label>
<halign>left</halign>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/distance-m</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<text>
<row>0</row>
<col>2</col>
<label>Dummy label</label>
<halign>left</halign>
<format>(%.2f nm)</format>
<live>true</live>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/distance-nm</property>
</text>
<text>
<row>1</row>
<col>0</col>
<halign>right</halign>
<label>Strength</label>
</text>
<input>
<row>1</row>
<col>1</col>
<label>ft/s</label>
<halign>left</halign>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/strength-fps</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<text>
<row>1</row>
<col>2</col>
<label>Dummy label</label>
<halign>left</halign>
<format> (%.2f m/s)</format>
<live>true</live>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/strength-mps</property>
</text>
<text>
<row>2</row>
<col>0</col>
<halign>right</halign>
<label>Diameter</label>
</text>
<input>
<row>2</row>
<col>1</col>
<label>ft</label>
<halign>left</halign>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/diameter-ft</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<text>
<row>2</row>
<col>2</col>
<label>Dummy label</label>
<halign>left</halign>
<format>(%.f m)</format>
<live>true</live>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/diameter-m</property>
</text>
<text>
<row>3</row>
<col>0</col>
<halign>right</halign>
<label>Height MSL</label>
</text>
<input>
<row>3</row>
<col>1</col>
<label>ft</label>
<halign>left</halign>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/height-msl</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<text>
<row>3</row>
<col>2</col>
<label>Dummy label</label>
<halign>left</halign>
<format>(%.f m)</format>
<live>true</live>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/add-thermal/height-msl-m</property>
</text>
</group>
<hrule/>
<group>
<empty>
<stretch>true</stretch>
</empty>
<layout>hbox</layout>
<button>
<legend>Add thermal</legend>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script><![CDATA[
aerotow.g_Aerotow.thermal.add();
]]></script>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<legend>Cancel</legend>
<equal>true</equal>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty>
<stretch>true</stretch>
</empty>
</group>
</PropertyList>