Add descriptive text
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
This commit is contained in:
parent
82f2de2fbc
commit
e28d4c22cb
1 changed files with 152 additions and 91 deletions
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
<nasal>
|
<nasal>
|
||||||
<open><![CDATA[
|
<open>
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
setprop("sim/gui/dialogs/metar/description[1]","Simple and fast weather engine that interprets METAR data directly or a set of manually defined parameters. Recommended for use with Multiplayer.");
|
||||||
|
setprop("sim/gui/dialogs/metar/description[2]"," Scripted weather engine that gives more detailed and realistic results based on METAR data and a set of predefiend parameters. Use this for Atmospheric Light Scattering.");
|
||||||
|
|
||||||
var normalize_string = func(src) {
|
var normalize_string = func(src) {
|
||||||
if( src == nil ) src = "";
|
if( src == nil ) src = "";
|
||||||
var dst = "";
|
var dst = "";
|
||||||
|
@ -275,11 +280,14 @@
|
||||||
|
|
||||||
var controller = GlobalWeatherDialogController.new( cmdarg() );
|
var controller = GlobalWeatherDialogController.new( cmdarg() );
|
||||||
controller.open();
|
controller.open();
|
||||||
]]></open>
|
]]>
|
||||||
|
</open>
|
||||||
|
|
||||||
<close><![CDATA[
|
<close>
|
||||||
|
<![CDATA[
|
||||||
controller.close();
|
controller.close();
|
||||||
]]></close>
|
]]>
|
||||||
|
</close>
|
||||||
</nasal>
|
</nasal>
|
||||||
|
|
||||||
<!-- Control the weather -->
|
<!-- Control the weather -->
|
||||||
|
@ -322,15 +330,18 @@
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<layout>vbox</layout>
|
<layout>vbox</layout>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<label>Weather Modeling</label>
|
<label>Select weather engine</label>
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<layout>hbox</layout>
|
<layout>hbox</layout>
|
||||||
<empty><stretch>true</stretch></empty>
|
<halign>left</halign>
|
||||||
|
<empty>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
</empty>
|
||||||
<group>
|
<group>
|
||||||
<layout>table</layout>
|
<layout>table</layout>
|
||||||
<radio>
|
<radio>
|
||||||
|
@ -340,129 +351,174 @@
|
||||||
<name>simple-weather</name>
|
<name>simple-weather</name>
|
||||||
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
||||||
<live>true</live>
|
<live>true</live>
|
||||||
<label>Interpret METAR directly</label>
|
<label>Basic Weather (default)</label>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>
|
||||||
controller.refresh();
|
controller.refresh();
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
||||||
</radio>
|
</radio>
|
||||||
|
<checkbox>
|
||||||
|
<row>0</row>
|
||||||
|
<col>2</col>
|
||||||
|
<name>manual-weather-config</name>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||||
|
<label>Manually Configure Weather</label>
|
||||||
|
<live>true</live>
|
||||||
|
<enable>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
||||||
|
</enable>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
<object-name>manual-weather-config</object-name>
|
||||||
|
</binding>
|
||||||
|
</checkbox>
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
|
|
||||||
|
<textbox>
|
||||||
|
<name>basic description</name>
|
||||||
|
<halign>fill</halign>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
<pref-width>250</pref-width>
|
||||||
|
<pref-height>55</pref-height>
|
||||||
|
<slider>0</slider>
|
||||||
|
<editable>false</editable>
|
||||||
|
<wrap>true</wrap>
|
||||||
|
<live>true</live>
|
||||||
|
<property>sim/gui/dialogs/metar/description[1]</property>
|
||||||
|
</textbox>
|
||||||
|
|
||||||
|
<group>
|
||||||
|
<layout>hbox</layout>
|
||||||
|
<halign>left</halign>
|
||||||
|
<empty>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
</empty>
|
||||||
|
<group>
|
||||||
|
<layout>table</layout>
|
||||||
<radio>
|
<radio>
|
||||||
<row>1</row>
|
<row>0</row>
|
||||||
<col>0</col>
|
<col>0</col>
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<name>simple-weather</name>
|
<name>simple-weather</name>
|
||||||
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
||||||
<live>true</live>
|
<live>true</live>
|
||||||
<label>Model overall weather conditions based on METAR</label>
|
<label>Detailed Weather</label>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>
|
||||||
controller.refresh();
|
controller.refresh();
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
||||||
</radio>
|
</radio>
|
||||||
<button>
|
|
||||||
<row>1</row>
|
|
||||||
<col>2</col>
|
|
||||||
<halign>fill</halign>
|
|
||||||
<stretch>true</stretch>
|
|
||||||
<legend>Advanced Settings...</legend>
|
|
||||||
<enable>
|
|
||||||
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
|
||||||
<value>1</value>
|
|
||||||
</enable>
|
|
||||||
<binding>
|
|
||||||
<command>dialog-show</command>
|
|
||||||
<dialog-name>local-weather</dialog-name>
|
|
||||||
</binding>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<radio>
|
|
||||||
<row>2</row>
|
|
||||||
<col>0</col>
|
|
||||||
<halign>left</halign>
|
|
||||||
<name>simple-weather</name>
|
|
||||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
|
||||||
<live>true</live>
|
|
||||||
<label>Configure weather manually</label>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
|
||||||
<value>0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>sim/gui/dialogs/metar/mode/global-weather</property>
|
|
||||||
<value>0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
|
||||||
<value>1</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>nasal</command>
|
|
||||||
<script>
|
|
||||||
controller.refresh();
|
|
||||||
</script>
|
|
||||||
</binding>
|
|
||||||
</radio>
|
|
||||||
|
|
||||||
<button>
|
|
||||||
<row>2</row>
|
|
||||||
<col>2</col>
|
|
||||||
<halign>fill</halign>
|
|
||||||
<stretch>true</stretch>
|
|
||||||
<legend>Weather Configuration...</legend>
|
|
||||||
<enable>
|
|
||||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
|
||||||
</enable>
|
|
||||||
<binding>
|
|
||||||
<command>dialog-show</command>
|
|
||||||
<dialog-name>weather-configuration</dialog-name>
|
|
||||||
</binding>
|
|
||||||
</button>
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
<empty><stretch>true</stretch></empty>
|
|
||||||
|
<textbox>
|
||||||
|
<name>advance-description</name>
|
||||||
|
<halign>fill</halign>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
<pref-width>250</pref-width>
|
||||||
|
<pref-height>55</pref-height>
|
||||||
|
<slider>0</slider>
|
||||||
|
<editable>false</editable>
|
||||||
|
<wrap>true</wrap>
|
||||||
|
<live>true</live>
|
||||||
|
<property>sim/gui/dialogs/metar/description[2]</property>
|
||||||
|
</textbox>
|
||||||
|
|
||||||
|
<group>
|
||||||
|
<layout>table</layout>
|
||||||
|
<button>
|
||||||
|
<row>0</row>
|
||||||
|
<col>0</col>
|
||||||
|
<colspan>3</colspan>
|
||||||
|
<pref-width>200</pref-width>
|
||||||
|
<pref-height>40</pref-height>
|
||||||
|
<halign>center</halign>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
<legend>Manual Weather Configuration...</legend>
|
||||||
|
<visible>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||||
|
</visible>
|
||||||
|
<enable>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||||
|
</enable>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-show</command>
|
||||||
|
<dialog-name>weather-configuration</dialog-name>
|
||||||
|
</binding>
|
||||||
|
<!--<binding>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||||
|
<value>1</value>
|
||||||
|
</binding>-->
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button>
|
||||||
|
<row>0</row>
|
||||||
|
<col>0</col>
|
||||||
|
<colspan>3</colspan>
|
||||||
|
<pref-width>200</pref-width>
|
||||||
|
<pref-height>40</pref-height>
|
||||||
|
<halign>center</halign>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
<legend>Advanced Settings...</legend>
|
||||||
|
<visible>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
||||||
|
</visible>
|
||||||
|
<enable>
|
||||||
|
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
||||||
|
<value>1</value>
|
||||||
|
</enable>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-show</command>
|
||||||
|
<dialog-name>local-weather</dialog-name>
|
||||||
|
</binding>
|
||||||
|
</button>
|
||||||
|
</group>
|
||||||
|
|
||||||
|
<empty>
|
||||||
|
<stretch>true</stretch>
|
||||||
|
</empty>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<hrule/>
|
|
||||||
|
|
||||||
|
<hrule/>
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<layout>vbox</layout>
|
<layout>vbox</layout>
|
||||||
|
@ -499,7 +555,7 @@
|
||||||
</combo>
|
</combo>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<layout>hbox</layout>
|
<layout>hbox</layout>
|
||||||
<text>
|
<text>
|
||||||
|
@ -515,7 +571,9 @@
|
||||||
<property>/environment/metar/valid</property>
|
<property>/environment/metar/valid</property>
|
||||||
<label/>
|
<label/>
|
||||||
<live>true</live>
|
<live>true</live>
|
||||||
<enable><false/></enable>
|
<enable>
|
||||||
|
<false/>
|
||||||
|
</enable>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
|
@ -571,10 +629,13 @@
|
||||||
<editable>false</editable>
|
<editable>false</editable>
|
||||||
<wrap>true</wrap>
|
<wrap>true</wrap>
|
||||||
<live>true</live>
|
<live>true</live>
|
||||||
<property>sim/gui/dialogs/metar/description</property>
|
<property>sim/gui/dialogs/metar/description[0]</property>
|
||||||
</textbox>
|
</textbox>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<hrule/>
|
<hrule/>
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
|
@ -599,7 +660,7 @@
|
||||||
<command>dialog-close</command>
|
<command>dialog-close</command>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
<legend>Apply</legend>
|
<legend>Apply</legend>
|
||||||
<binding>
|
<binding>
|
||||||
|
|
Loading…
Reference in a new issue