1
0
Fork 0

Merge commit 'bcaebff'

This commit is contained in:
Ryan Miller 2010-12-27 17:54:21 -08:00
commit f3dc094a25
31 changed files with 1174 additions and 813 deletions

View file

@ -1,27 +0,0 @@
N 0 -118.0372167 34.08178333 0.0 J E-01-19 "rwy 01"
N 1 -118.0321833 34.09066667 0.0 J E-01-19 "rwy 19"
N 2 -118.0369167 34.08166667 0.0 H E ""
N 3 -118.03185 34.0906 0.0 H E ""
N 4 -118.03515 34.0848 0.0 T E ""
N 5 -118.0349667 34.08511667 0.0 T E ""
N 6 -118.0348333 34.08466667 0.0 T E ""
G 7 -118.0347333 34.08483333 0.0 GS 10 ""
N 8 -118.03465 34.08498333 0.0 T E ""
N 9 -118.0346 34.08456667 0.0 T E ""
G 10 -118.0345167 34.08473333 0.0 GS 10 ""
N 11 -118.0344167 34.0849 0.0 T E ""
A 0 1 R N ""
A 0 2 T N ""
A 1 3 T N ""
A 2 4 T N ""
A 4 5 T N ""
A 3 5 T N ""
A 4 6 T N ""
A 6 9 T Y ""
A 5 8 T Y ""
A 8 11 T Y ""
A 6 7 T Y ""
A 7 8 T Y ""
A 9 10 T Y ""
A 10 11 T Y ""
[End]

View file

@ -1,4 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<PropertyList> <PropertyList>
<path>SCR-522C.ac</path> <path>SCR-522C.ac</path>

View file

@ -8,17 +8,30 @@
<!-- AI Carrier options --> <!-- AI Carrier options -->
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<halign>left</halign> <label>AI Carrier Controls</label>
<label>AI Carrier</label>
<color>
<red>0.9</red>
<green>0.9</green>
<blue>0.9</blue>
<alpha>1</alpha>
</color>
</text> </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/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<empty> <empty>
@ -170,6 +183,8 @@
</empty> </empty>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>6</default-padding> <default-padding>6</default-padding>

View file

@ -1,124 +0,0 @@
<?xml version="1.0"?>
<!-- General ATC/AI options -->
<PropertyList>
<name>ai</name>
<modal>false</modal>
<layout>vbox</layout>
<button>
<legend>-</legend>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<halign>right</halign>
<border>2</border>
<binding>
<command>dialog-close</command>
</binding>
</button>
<text>
<!-- <label>ATC/AI Options</label> -->
<label>AI Options</label>
</text>
<hrule/>
<group>
<layout>hbox</layout>
<empty>
<pref-width>10</pref-width>
</empty>
<group>
<layout>vbox</layout>
<!-- <checkbox>
<halign>left</halign>
<label>Enable ATC</label>
<property>/sim/atc/enabled</property>
</checkbox> -->
<checkbox>
<halign>left</halign>
<label>Enable AI traffic</label>
<property>/sim/ai-traffic/enabled</property>
</checkbox>
<group>
<layout>hbox</layout>
<text>
<halign>left</halign>
<label>AI traffic density:</label>
</text>
<combo>
<halign>left</halign>
<property>/sim/ai-traffic/level</property>
<value>1</value>
<value>2</value>
<value>3</value>
</combo>
</group>
</group>
<empty>
<stretch>true</stretch>
</empty>
</group>
<group>
<layout>hbox</layout>
<default-padding>6</default-padding>
<empty>
<stretch>true</stretch>
</empty>
<button>
<legend>OK</legend>
<default>true</default>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<legend>Apply</legend>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
</button>
<button>
<legend>Reset</legend>
<equal>true</equal>
<binding>
<command>dialog-update</command>
</binding>
</button>
<button>
<legend>Cancel</legend>
<equal>true</equal>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty>
<stretch>true</stretch>
</empty>
</group>
</PropertyList>

View file

@ -5,10 +5,28 @@
<layout>vbox</layout> <layout>vbox</layout>
<resizable>true</resizable> <resizable>true</resizable>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Select an Airport</label> <label>Select an Airport</label>
</text> </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/> <hrule/>
<nasal> <nasal>
@ -97,6 +115,8 @@
</button> </button>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>10</default-padding> <default-padding>10</default-padding>

View file

@ -536,4 +536,15 @@
</checkbox> </checkbox>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList> </PropertyList>

View file

@ -19,7 +19,6 @@
<pref-width>16</pref-width> <pref-width>16</pref-width>
<pref-height>16</pref-height> <pref-height>16</pref-height>
<legend></legend> <legend></legend>
<default>1</default>
<keynum>27</keynum> <keynum>27</keynum>
<border>2</border> <border>2</border>
<binding> <binding>
@ -227,4 +226,15 @@
</slider> </slider>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList> </PropertyList>

View file

@ -5,7 +5,6 @@
<modal>false</modal> <modal>false</modal>
<layout>vbox</layout> <layout>vbox</layout>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<empty><stretch>1</stretch></empty> <empty><stretch>1</stretch></empty>
@ -20,14 +19,12 @@
<pref-width>16</pref-width> <pref-width>16</pref-width>
<pref-height>16</pref-height> <pref-height>16</pref-height>
<legend></legend> <legend></legend>
<default>1</default>
<keynum>27</keynum> <keynum>27</keynum>
<border>2</border> <border>2</border>
<binding> <binding>
<command>dialog-close</command> <command>dialog-close</command>
</binding> </binding>
</button> </button>
</group> </group>
<hrule/> <hrule/>
@ -82,4 +79,15 @@
</checkbox> </checkbox>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList> </PropertyList>

View file

@ -7,18 +7,30 @@
<layout>vbox</layout> <layout>vbox</layout>
<!-- AI Wingman options --> <!-- AI Wingman options -->
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<halign>left</halign> <label>AI Wingman Controls</label>
<label>Wingman Controls</label>
<color>
<red>0.5</red>
<green>0.5</green>
<blue>0.5</blue>
<alpha>1</alpha>
</color>
</text> </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/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<empty> <empty>
@ -195,9 +207,7 @@
</group> </group>
<empty> <hrule/>
<stretch>true</stretch>
</empty>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>

View file

@ -24,9 +24,27 @@
</nasal> </nasal>
<name>gps</name> <name>gps</name>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>GPS</label> <label>GPS</label>
</text> </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/> <hrule/>
<!-- show current state --> <!-- show current state -->
<group> <group>

View file

@ -1,8 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<PropertyList> <PropertyList>
<x>-20</x>
<y>20</y>
<name>hud</name> <name>hud</name>
<layout>vbox</layout> <layout>vbox</layout>
<padding>20</padding> <padding>20</padding>
@ -21,7 +19,6 @@
<pref-width>16</pref-width> <pref-width>16</pref-width>
<pref-height>16</pref-height> <pref-height>16</pref-height>
<legend></legend> <legend></legend>
<default>1</default>
<keynum>27</keynum> <keynum>27</keynum>
<border>2</border> <border>2</border>
<binding> <binding>
@ -174,6 +171,17 @@
</slider> </slider>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<nasal> <nasal>
<open> <open>
gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets")); gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));

View file

@ -5,10 +5,29 @@
<name>instrument-failures</name> <name>instrument-failures</name>
<modal>false</modal> <modal>false</modal>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Instrument Failures</label> <label>Instrument Failures</label>
</text> </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/> <hrule/>
<group> <group>
@ -19,6 +38,8 @@
</text> </text>
</group> </group>
<hrule/>
<group> <group>
<layout>table</layout> <layout>table</layout>
<halign>center</halign> <halign>center</halign>
@ -320,6 +341,8 @@
</input> </input>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<button> <button>

View file

@ -3,27 +3,51 @@
<PropertyList> <PropertyList>
<name>instruments</name> <name>instruments</name>
<width>400</width>
<height>150</height>
<modal>false</modal> <modal>false</modal>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<x>0</x>
<y>120</y>
<label>Instrument Settings</label> <label>Instrument Settings</label>
</text> </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/>
<group> <group>
<x>0</x> <layout>table</layout>
<y>90</y> <default-padding>5</default-padding>
<text> <text>
<row>0</row>
<col>0</col>
<halign>right</halign>
<label>ALT setting:</label> <label>ALT setting:</label>
</text> </text>
<group>
<row>0</row>
<col>1</col>
<layout>hbox</layout>
<default-padding>0</default-padding>
<button> <button>
<x>115</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -39,8 +63,6 @@
</button> </button>
<button> <button>
<x>150</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -54,22 +76,34 @@
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
</group>
<input> <input>
<x>190</x> <row>0</row>
<y>0</y> <col>3</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>inHg</label>
<property>/instrumentation/altimeter/setting-inhg</property> <property>/instrumentation/altimeter/setting-inhg</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
</binding> </binding>
</input> </input>
<text>
<row>0</row>
<col>4</col>
<padding>0</padding>
<halign>left</halign>
<label>inHg</label>
</text>
<group>
<layout>hbox</layout>
<row>0</row>
<col>5</col>
<default-padding>0</default-padding>
<button> <button>
<x>315</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -85,8 +119,8 @@
</button> </button>
<button> <button>
<x>350</x> <row>0</row>
<y>2</y> <col>6</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -100,20 +134,22 @@
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
</group> </group>
<group>
<x>0</x>
<y>60</y>
<text> <text>
<row>1</row>
<col>0</col>
<halign>right</halign>
<label>HI offset:</label> <label>HI offset:</label>
</text> </text>
<group>
<layout>hbox</layout>
<default-padding>0</default-padding>
<row>1</row>
<col>1</col>
<button> <button>
<x>115</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -129,8 +165,6 @@
</button> </button>
<button> <button>
<x>150</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -144,22 +178,34 @@
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
</group>
<input> <input>
<x>190</x> <row>1</row>
<y>0</y> <col>3</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>deg</label>
<property>/instrumentation/heading-indicator/offset-deg</property> <property>/instrumentation/heading-indicator/offset-deg</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
</binding> </binding>
</input> </input>
<text>
<row>1</row>
<col>4</col>
<padding>0</padding>
<halign>left</halign>
<label>deg</label>
</text>
<group>
<layout>hbox</layout>
<default-padding>0</default-padding>
<row>1</row>
<col>5</col>
<button> <button>
<x>315</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -175,8 +221,6 @@
</button> </button>
<button> <button>
<x>350</x>
<y>2</y>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -190,14 +234,13 @@
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
</group>
</group> </group>
<group> <hrule/>
<button> <button>
<x>150</x>
<y>10</y>
<legend>Close</legend> <legend>Close</legend>
<default>true</default> <default>true</default>
<key>Esc</key> <key>Esc</key>
@ -206,6 +249,4 @@
</binding> </binding>
</button> </button>
</group>
</PropertyList> </PropertyList>

View file

@ -10,6 +10,8 @@
<modal>false</modal> <modal>false</modal>
<text> <text>
<x>10</x> <x>10</x>
<y>570</y> <y>570</y>

View file

@ -36,10 +36,28 @@
<close># just kept for educational purposes :-)</close> <close># just kept for educational purposes :-)</close>
</nasal> </nasal>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Location (in air)</label> <label>Position Aircraft In Air</label>
</text> </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/> <hrule/>
<text> <text>
@ -48,7 +66,7 @@
<group> <group>
<layout>table</layout> <layout>table</layout>
<halign>left</halign> <halign>center</halign>
<radio> <radio>
<row>0</row><col>0</col> <row>0</row><col>0</col>
<live>true</live> <live>true</live>
@ -63,6 +81,7 @@
</radio> </radio>
<text> <text>
<row>0</row><col>1</col> <row>0</row><col>1</col>
<halign>right</halign>
<label>Airport:</label> <label>Airport:</label>
</text> </text>
<input> <input>
@ -71,6 +90,7 @@
</input> </input>
<text> <text>
<row>0</row><col>3</col> <row>0</row><col>3</col>
<halign>right</halign>
<label>Runway:</label> <label>Runway:</label>
</text> </text>
<input> <input>
@ -92,6 +112,7 @@
</radio> </radio>
<text> <text>
<row>1</row><col>1</col> <row>1</row><col>1</col>
<halign>right</halign>
<label>Longitude:</label> <label>Longitude:</label>
</text> </text>
<input> <input>
@ -100,6 +121,7 @@
</input> </input>
<text> <text>
<row>1</row><col>3</col> <row>1</row><col>3</col>
<halign>right</halign>
<label>Latitude:</label> <label>Latitude:</label>
</text> </text>
<input> <input>
@ -178,6 +200,8 @@
</input> </input>
</group> </group>
<hrule/>
<text> <text>
<label>Relative Position</label> <label>Relative Position</label>
</text> </text>
@ -246,6 +270,8 @@
</input> </input>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>10</default-padding> <default-padding>10</default-padding>

View file

@ -3,18 +3,42 @@
<name>location-of-tower</name> <name>location-of-tower</name>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Select tower for the Tower View</label> <label>Tower Position</label>
</text> </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/> <hrule/>
<text>
<label>Select position of tower for the Tower Views</label>
</text>
<group> <group>
<layout>table</layout> <layout>table</layout>
<text> <text>
<row>0</row><col>0</col> <row>0</row><col>0</col>
<label>Airport ID</label> <halign>right</halign>
<label>Airport ID:</label>
</text> </text>
<input> <input>
<name>airport-id</name> <name>airport-id</name>
@ -114,10 +138,10 @@
<row>3</row><col>3</col> <row>3</row><col>3</col>
<stretch>true</stretch> <stretch>true</stretch>
</empty> </empty>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>10</default-padding> <default-padding>10</default-padding>

View file

@ -4,10 +4,28 @@
<name>location-on-ground</name> <name>location-on-ground</name>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Set New Location</label> <label>Position Aircraft On Ground</label>
</text> </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/> <hrule/>
<nasal> <nasal>
@ -44,6 +62,7 @@
} }
var runways = dlg.getNode("available-runways", 1); var runways = dlg.getNode("available-runways", 1);
var updateRunways = func { var updateRunways = func {
var icao = dlg.getNode("airport").getValue(); var icao = dlg.getNode("airport").getValue();
runways.removeChildren("value"); runways.removeChildren("value");
@ -56,6 +75,7 @@
i += 1; i += 1;
} }
} }
gui.dialog_update("location-on-ground"); gui.dialog_update("location-on-ground");
} }
</open> </open>
@ -140,6 +160,8 @@
</input> </input>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>10</default-padding> <default-padding>10</default-padding>

View file

@ -4,6 +4,30 @@
<name>pilot_offset</name> <name>pilot_offset</name>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text>
<label>Adjust View Position</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/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
@ -71,11 +95,13 @@
</group> </group>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<empty><stretch>true</stretch></empty> <empty><stretch>true</stretch></empty>
<button> <button>
<legend>OK</legend> <legend>Close</legend>
<equal>true</equal> <equal>true</equal>
<default>true</default> <default>true</default>
<key>Esc</key> <key>Esc</key>

View file

@ -3,46 +3,74 @@
<PropertyList> <PropertyList>
<name>radios</name> <name>radios</name>
<width>600</width> <width>550</width>
<height>370</height>
<modal>false</modal> <modal>false</modal>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<x>10</x>
<y>300</y>
<label>Radio Frequencies</label> <label>Radio Frequencies</label>
</text> </text>
<!-- headers --> <empty><stretch>1</stretch></empty>
<group>
<x>0</x> <button>
<y>280</y> <pref-width>16</pref-width>
<text> <pref-height>16</pref-height>
<x>75</x> <legend></legend>
<label>Selected</label> <keynum>27</keynum>
</text> <border>2</border>
<text> <binding>
<x>300</x> <command>dialog-close</command>
<label>Standby</label> </binding>
</text> </button>
<text>
<x>450</x>
<label>Radial</label>
</text>
</group> </group>
<hrule/>
<group> <group>
<x>0</x> <layout>table</layout>
<y>240</y>
<!-- headers -->
<text>
<row>0</row>
<col>1</col>
<label>Selected</label>
</text>
<text> <text>
<row>0</row>
<col>4</col>
<label>Standby</label>
</text>
<text>
<row>0</row>
<col>6</col>
<label>Radial</label>
</text>
<!-- Dummy label to stretch table, as layout manager doesn't handle labels well -->
<text>
<row>0</row>
<col>7</col>
<label></label>
</text>
<text>
<row>1</row>
<col>0</col>
<halign>right</halign>
<label>COM1</label> <label>COM1</label>
</text> </text>
<input> <input>
<name>com1-selected</name> <name>com1-selected</name>
<x>75</x> <row>1</row>
<y>0</y> <col>1</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
@ -50,8 +78,8 @@
</input> </input>
<button> <button>
<x>220</x> <row>1</row>
<y>2</y> <col>3</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -81,28 +109,25 @@
<input> <input>
<name>com1-standby</name> <name>com1-standby</name>
<x>300</x> <row>1</row>
<y>0</y> <col>4</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
<property>/instrumentation/comm[0]/frequencies/standby-mhz</property> <property>/instrumentation/comm[0]/frequencies/standby-mhz</property>
</input> </input>
</group>
<group>
<x>0</x>
<y>210</y>
<text> <text>
<row>2</row>
<col>0</col>
<halign>right</halign>
<label>COM2</label> <label>COM2</label>
</text> </text>
<input> <input>
<name>com2-selected</name> <name>com2-selected</name>
<x>75</x> <row>2</row>
<y>0</y> <col>1</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
@ -110,8 +135,8 @@
</input> </input>
<button> <button>
<x>220</x> <row>2</row>
<y>2</y> <col>3</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -141,28 +166,25 @@
<input> <input>
<name>com2-standby</name> <name>com2-standby</name>
<x>300</x> <row>2</row>
<y>0</y> <col>4</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
<property>/instrumentation/comm[1]/frequencies/standby-mhz</property> <property>/instrumentation/comm[1]/frequencies/standby-mhz</property>
</input> </input>
</group>
<group>
<x>0</x>
<y>180</y>
<text> <text>
<row>3</row>
<col>0</col>
<halign>right</halign>
<label>NAV1</label> <label>NAV1</label>
</text> </text>
<input> <input>
<name>nav1-selected</name> <name>nav1-selected</name>
<x>75</x> <row>3</row>
<y>0</y> <col>1</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
@ -170,8 +192,8 @@
</input> </input>
<button> <button>
<x>220</x> <row>3</row>
<y>2</y> <col>3</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -201,8 +223,8 @@
<input> <input>
<name>nav1-standby</name> <name>nav1-standby</name>
<x>300</x> <row>3</row>
<y>0</y> <col>4</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
@ -211,28 +233,25 @@
<input> <input>
<name>nav1-radial</name> <name>nav1-radial</name>
<x>450</x> <row>3</row>
<y>0</y> <col>6</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>deg</label> <label>deg</label>
<property>/instrumentation/nav[0]/radials/selected-deg</property> <property>/instrumentation/nav[0]/radials/selected-deg</property>
</input> </input>
</group>
<group>
<x>0</x>
<y>150</y>
<text> <text>
<row>4</row>
<col>0</col>
<halign>right</halign>
<label>NAV2</label> <label>NAV2</label>
</text> </text>
<input> <input>
<name>nav2-selected</name> <name>nav2-selected</name>
<x>75</x> <row>4</row>
<y>0</y> <col>1</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
@ -240,8 +259,8 @@
</input> </input>
<button> <button>
<x>220</x> <row>4</row>
<y>2</y> <col>3</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -271,8 +290,8 @@
<input> <input>
<name>nav2-standby</name> <name>nav2-standby</name>
<x>300</x> <row>4</row>
<y>0</y> <col>4</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
@ -281,28 +300,25 @@
<input> <input>
<name>nav2-radial</name> <name>nav2-radial</name>
<x>450</x> <row>4</row>
<y>0</y> <col>6</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>deg</label> <label>deg</label>
<property>/instrumentation/nav[1]/radials/selected-deg</property> <property>/instrumentation/nav[1]/radials/selected-deg</property>
</input> </input>
</group>
<group>
<x>0</x>
<y>120</y>
<text> <text>
<row>5</row>
<col>0</col>
<halign>right</halign>
<label>ADF</label> <label>ADF</label>
</text> </text>
<input> <input>
<name>adf-selected</name> <name>adf-selected</name>
<x>75</x> <row>5</row>
<y>0</y> <col>1</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>kHz</label> <label>kHz</label>
@ -310,8 +326,8 @@
</input> </input>
<button> <button>
<x>220</x> <row>5</row>
<y>2</y> <col>3</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
@ -341,8 +357,8 @@
<input> <input>
<name>adf-standby</name> <name>adf-standby</name>
<x>300</x> <row>5</row>
<y>0</y> <col>4</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>kHz</label> <label>kHz</label>
@ -350,50 +366,48 @@
</input> </input>
<input> <input>
<name>nav2-radial</name> <name>adf-radial</name>
<x>450</x> <row>5</row>
<y>0</y> <col>6</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>deg</label> <label>deg</label>
<property>/instrumentation/adf/rotation-deg</property> <property>/instrumentation/adf/rotation-deg</property>
</input> </input>
</group>
<group>
<x>0</x>
<y>90</y>
<text> <text>
<row>6</row>
<col>0</col>
<halign>right</halign>
<label>DME</label> <label>DME</label>
</text> </text>
<input> <input>
<name>dme-selected</name> <name>dme-selected</name>
<x>75</x> <row>6</row>
<y>0</y> <col>1</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<label>MHz</label> <label>MHz</label>
<property>/instrumentation/dme/frequencies/selected-mhz</property> <property>/instrumentation/dme/frequencies/selected-mhz</property>
</input> </input>
</group> </group>
<hrule/>
<group> <group>
<x>0</x>
<y>60</y> <layout>hbox</layout>
<text> <text>
<label>TACAN</label> <label>TACAN</label>
</text> </text>
<combo> <combo>
<x>75</x> <pref-width>45</pref-width>
<y>0</y> <pref-height>25</pref-height>
<width>45</width>
<height>25</height>
<property>/instrumentation/tacan/frequencies/selected-channel[1]</property> <property>/instrumentation/tacan/frequencies/selected-channel[1]</property>
<value>0</value> <value>0</value>
<value>1</value> <value>1</value>
@ -408,10 +422,8 @@
</combo> </combo>
<!----> <!---->
<combo> <combo>
<x>120</x> <pref-width>45</pref-width>
<y>0</y> <pref-height>25</pref-height>
<width>45</width>
<height>25</height>
<property>/instrumentation/tacan/frequencies/selected-channel[2]</property> <property>/instrumentation/tacan/frequencies/selected-channel[2]</property>
<value>0</value> <value>0</value>
<value>1</value> <value>1</value>
@ -426,10 +438,8 @@
</combo> </combo>
<combo> <combo>
<x>165</x> <pref-width>45</pref-width>
<y>0</y> <pref-height>25</pref-height>
<width>45</width>
<height>25</height>
<property>/instrumentation/tacan/frequencies/selected-channel[3]</property> <property>/instrumentation/tacan/frequencies/selected-channel[3]</property>
<value>0</value> <value>0</value>
<value>1</value> <value>1</value>
@ -444,24 +454,37 @@
</combo> </combo>
<combo> <combo>
<x>210</x> <pref-width>45</pref-width>
<y>0</y> <pref-height>25</pref-height>
<width>47</width>
<height>25</height>
<property>/instrumentation/tacan/frequencies/selected-channel[4]</property> <property>/instrumentation/tacan/frequencies/selected-channel[4]</property>
<value>X</value> <value>X</value>
<value>Y</value> <value>Y</value>
</combo> </combo>
<empty>
<stretch>true</stretch>
</empty>
<!-- Disabled for v2.2.0, as ATC Frequency Search broken
<button>
<legend>ATC Services in range</legend>
<binding>
<command>ATC-freq-search</command>
</binding>
</button>
-->
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout>
<default-padding>6</default-padding>
<empty>
<stretch>true</stretch>
</empty>
<button> <button>
<x>105</x>
<y>10</y>
<legend>OK</legend> <legend>OK</legend>
<default>true</default> <default>true</default>
<equal>true</equal> <equal>true</equal>
@ -474,8 +497,6 @@
</button> </button>
<button> <button>
<x>205</x>
<y>10</y>
<legend>Apply</legend> <legend>Apply</legend>
<equal>true</equal> <equal>true</equal>
<binding> <binding>
@ -484,8 +505,6 @@
</button> </button>
<button> <button>
<x>305</x>
<y>10</y>
<legend>Reset</legend> <legend>Reset</legend>
<equal>true</equal> <equal>true</equal>
<binding> <binding>
@ -494,8 +513,6 @@
</button> </button>
<button> <button>
<x>405</x>
<y>10</y>
<legend>Cancel</legend> <legend>Cancel</legend>
<equal>true</equal> <equal>true</equal>
<key>Esc</key> <key>Esc</key>
@ -504,16 +521,10 @@
</binding> </binding>
</button> </button>
</group> <empty>
<group> <stretch>true</stretch>
<x>400</x> </empty>
<y>60</y>
<button>
<legend>ATC Services in range</legend>
<binding>
<command>ATC-freq-search</command>
</binding>
</button>
</group> </group>
</PropertyList> </PropertyList>

View file

@ -9,7 +9,7 @@
<nasal> <nasal>
<open> <open>
<![CDATA[ <![CDATA[
var groups = cmdarg().getChildren("group")[0].getChildren("group"); var groups = cmdarg().getChildren("group")[1].getChildren("group");
var mtbfNodes = groups[0].getChildren("radio"); var mtbfNodes = groups[0].getChildren("radio");
var mcbfNodes = groups[1].getChildren("radio"); var mcbfNodes = groups[1].getChildren("radio");
@ -40,13 +40,32 @@
</open> </open>
</nasal> </nasal>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Random Failures</label> <label>Random Failures</label>
</text> </text>
<hrule></hrule> <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> <text>
<halign>left</halign>
<label>Configure MTBF/MCBF for all systems and instruments.</label> <label>Configure MTBF/MCBF for all systems and instruments.</label>
</text> </text>
@ -332,7 +351,7 @@
</button> </button>
<button> <button>
<legend>Close</legend> <legend>Cancel</legend>
<equal>true</equal> <equal>true</equal>
<key>Esc</key> <key>Esc</key>
<binding> <binding>

View file

@ -20,7 +20,6 @@
<pref-width>16</pref-width> <pref-width>16</pref-width>
<pref-height>16</pref-height> <pref-height>16</pref-height>
<legend></legend> <legend></legend>
<default>1</default>
<keynum>27</keynum> <keynum>27</keynum>
<border>2</border> <border>2</border>
<binding> <binding>
@ -40,14 +39,35 @@
<text> <text>
<halign>left</halign> <halign>left</halign>
<label>"Material shaders" must be enabled for certain options</label> <label>"Material shaders" must be enabled for most options.</label>
</text>
<text>
<halign>left</halign>
<label>Snow is dependant on crop, landmass and urban shaders.</label>
</text> </text>
<group> <group>
<layout>vbox</layout> <layout>hbox</layout>
<stretch>1</stretch> <text>
<label>General</label>
<halign>left</halign>
</text>
<hrule>
<stretch>true</stretch>
</hrule>
</group> </group>
<checkbox>
<halign>left</halign>
<label>Wireframe</label>
<name>wireframe</name>
<property>/sim/rendering/wireframe</property>
<binding>
<command>dialog-apply</command>
<object-name>wireframe</object-name>
</binding>
</checkbox>
<!-- <!--
<group> <group>
@ -122,18 +142,22 @@
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Particles (smoke, dust, spray)</label> <label>Particles (smoke, dust, spray)</label>
<name>particles</name>
<property>/sim/rendering/particles</property> <property>/sim/rendering/particles</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>particles</object-name>
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Precipitation</label> <label>Precipitation</label>
<name>precipitation</name>
<property>/sim/rendering/precipitation-gui-enable</property> <property>/sim/rendering/precipitation-gui-enable</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>precipitation</object-name>
</binding> </binding>
</checkbox> </checkbox>
@ -162,12 +186,14 @@
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Random vegetation</label> <label>Random vegetation</label>
<name>random-vegetation</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/random-vegetation</property> <property>/sim/rendering/random-vegetation</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>random-vegetation</object-name>
</binding> </binding>
</checkbox> </checkbox>
@ -198,12 +224,14 @@
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>3D clouds</label> <label>3D clouds</label>
<name>3d-clouds</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/clouds3d-enable</property> <property>/sim/rendering/clouds3d-enable</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>3d-clouds</object-name>
</binding> </binding>
</checkbox> </checkbox>
@ -239,23 +267,34 @@
<text> <text>
<label>Cloud visibility range</label> <label>Cloud visibility range</label>
<enable> <enable>
<and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<property>/sim/rendering/clouds3d-enable</property>
</and>
</enable> </enable>
</text> </text>
<slider> <slider>
<name>cloud-vis-range</name>
<enable> <enable>
<and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<property>/sim/rendering/clouds3d-enable</property>
</and>
</enable> </enable>
<min>100.0</min> <min>100.0</min>
<max>20000.0</max> <max>20000.0</max>
<property>/sim/rendering/clouds3d-vis-range</property> <property>/sim/rendering/clouds3d-vis-range</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>cloud-vis-range</object-name>
</binding> </binding>
</slider> </slider>
<text> <text>
<enable> <enable>
<and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<property>/sim/rendering/clouds3d-enable</property>
</and>
</enable> </enable>
<label>12345678</label> <label>12345678</label>
<format>%.fm</format> <format>%.fm</format>
@ -290,9 +329,11 @@
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Material shaders</label> <label>Material shaders</label>
<name>material-shaders</name>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>material-shaders</object-name>
</binding> </binding>
</checkbox> </checkbox>
@ -303,72 +344,84 @@
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Crop texture</label> <label>Crop texture</label>
<name>crop-texture</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/crop-shader</property> <property>/sim/rendering/crop-shader</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>crop-texture</object-name>
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Landmass effects</label> <label>Landmass effects</label>
<name>landmass-effects</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/landmass-shader</property> <property>/sim/rendering/landmass-shader</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>landmass-effects</object-name>
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Water reflection</label> <label>Water reflection</label>
<name>water-reflection</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/water-shader</property> <property>/sim/rendering/water-shader</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>water-reflection</object-name>
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Urban effects</label> <label>Urban effects</label>
<name>urban-effects</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/urban-shader</property> <property>/sim/rendering/urban-shader</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>urban-effects</object-name>
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Transition effects</label> <label>Transition effects</label>
<name>transition-effects</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/transition-shader</property> <property>/sim/rendering/transition-shader</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>transition-effects</object-name>
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Persistent contrails</label> <label>Persistent contrails</label>
<name>persistent-contrails</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
<property>/sim/rendering/contrail-shader</property> <property>/sim/rendering/contrail-shader</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>persistent-contrails</object-name>
</binding> </binding>
</checkbox> </checkbox>
</group> </group>
@ -377,15 +430,29 @@
<layout>hbox</layout> <layout>hbox</layout>
<halign>right</halign> <halign>right</halign>
<text> <text>
<label>Snow Level</label> <label>Snow line</label>
<enable> <enable>
<and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<or>
<property>/sim/rendering/crop-shader</property>
<property>/sim/rendering/landmass-shader</property>
<property>/sim/rendering/urban-shader</property>
</or>
</and>
</enable> </enable>
</text> </text>
<slider> <slider>
<name>snow-level</name> <name>snow-level</name>
<enable> <enable>
<and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<or>
<property>/sim/rendering/crop-shader</property>
<property>/sim/rendering/landmass-shader</property>
<property>/sim/rendering/urban-shader</property>
</or>
</and>
</enable> </enable>
<min>0.0</min> <min>0.0</min>
<max>5000.0</max> <max>5000.0</max>
@ -397,7 +464,14 @@
</slider> </slider>
<text> <text>
<enable> <enable>
<and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<or>
<property>/sim/rendering/crop-shader</property>
<property>/sim/rendering/landmass-shader</property>
<property>/sim/rendering/urban-shader</property>
</or>
</and>
</enable> </enable>
<label>12345678</label> <label>12345678</label>
<format>%.fm</format> <format>%.fm</format>
@ -416,6 +490,7 @@
</enable> </enable>
</text> </text>
<slider> <slider>
<name>quality-level</name>
<enable> <enable>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
</enable> </enable>
@ -425,6 +500,7 @@
<property>/sim/rendering/quality-level</property> <property>/sim/rendering/quality-level</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>quality-level</object-name>
</binding> </binding>
</slider> </slider>
<text> <text>
@ -441,6 +517,17 @@
</group> </group>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<nasal> <nasal>
<open> <open>
gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets")); gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));

View file

@ -4,15 +4,34 @@
<modal>false</modal> <modal>false</modal>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Instant Replay</label> <label>Instant Replay</label>
</text> </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/> <hrule/>
<nasal> <nasal>
<open> <open>
# Populate the view combo box with a list of the available views # Populate the view combo box with a list of the available views
var combo = cmdarg().getNode("group").getNode("combo"); var combo = cmdarg().getChildren("group")[1].getNode("combo");
combo.removeChildren("value"); combo.removeChildren("value");
var current_view = getprop("/sim/current-view/view-number"); var current_view = getprop("/sim/current-view/view-number");

View file

@ -30,7 +30,7 @@
<empty><stretch>true</stretch></empty> <empty><stretch>true</stretch></empty>
<text> <text>
<label>Choose active scenario(s) for the next program start</label> <label>AI Scenario Select</label>
</text> </text>
<empty><stretch>true</stretch></empty> <empty><stretch>true</stretch></empty>
@ -49,6 +49,13 @@
<hrule/> <hrule/>
<text>
<label>Choose active scenario(s) for the next program start</label>
</text>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
@ -64,6 +71,7 @@
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>

View file

@ -8,10 +8,28 @@
<width>400</width> <width>400</width>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Sound Configuration</label> <label>Sound Configuration</label>
</text> </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/> <hrule/>
<group> <group>

20
gui/dialogs/static-lod.xml Executable file → Normal file
View file

@ -4,10 +4,28 @@
<name>static-lod</name> <name>static-lod</name>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>Static Scenery Level Of Detail</label> <label>Static Scenery Level Of Detail</label>
</text> </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/> <hrule/>
<group> <group>
@ -57,6 +75,8 @@
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>10</default-padding> <default-padding>10</default-padding>

View file

@ -105,4 +105,16 @@
</text> </text>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList> </PropertyList>

View file

@ -10,7 +10,7 @@
<open> <open>
# Code to populate the engine entries. # Code to populate the engine entries.
var groups = cmdarg().getChildren("group"); var groups = cmdarg().getChildren("group");
var group = groups[3].getChildren("group")[2]; var group = groups[1].getChildren("group")[2];
var engines = props.globals.getNode("/engines"); var engines = props.globals.getNode("/engines");
var row = 4; var row = 4;
var engine = 0; var engine = 0;
@ -30,7 +30,8 @@
i += 1; i += 1;
foreach (var e; engines.getChildren("engine")) { foreach (var e; engines.getChildren("engine")) {
if ((e.getChild("starter") != nil) or (e.getChild("running") != nil)) { if (((e.getChild("starter") != nil) and (e.getChild("starter") != "")) or
((e.getChild("running") != nil) and (e.getChild("running") != "")) ) {
row = row + 1; row = row + 1;
# Set up the label # Set up the label
@ -71,23 +72,34 @@
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text> <text>
<label>System Failures</label> <label>System Failures</label>
</text> </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> </group>
<group>
<layout>hbox</layout>
<hrule/> <hrule/>
</group>
<group>
<layout>hbox</layout>
<halign>left</halign>
<text> <text>
<halign>left</halign>
<label>Uncheck a system to fail it, or set the Mean Time/Cycles Between Failures.</label> <label>Uncheck a system to fail it, or set the Mean Time/Cycles Between Failures.</label>
</text> </text>
</group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
@ -364,6 +376,8 @@
</group> </group>
</group> </group>
<hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>

View file

@ -20,7 +20,6 @@
<pref-width>16</pref-width> <pref-width>16</pref-width>
<pref-height>16</pref-height> <pref-height>16</pref-height>
<legend></legend> <legend></legend>
<default>1</default>
<keynum>27</keynum> <keynum>27</keynum>
<border>2</border> <border>2</border>
<binding> <binding>
@ -158,14 +157,6 @@
</button> </button>
</group> </group>
<empty>
<pref-height>6</pref-height>
</empty>
<hrule/>
<empty>
<pref-height>6</pref-height>
</empty>
<empty> <empty>
<stretch>true</stretch> <stretch>true</stretch>
</empty> </empty>
@ -261,4 +252,15 @@
</group> </group>
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList> </PropertyList>

View file

@ -5,15 +5,37 @@
<modal>false</modal> <modal>false</modal>
<layout>vbox</layout> <layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text>
<label>View Options</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> <text>
<label>Choose Active Views</label> <label>Choose Active Views</label>
</text> </text>
<hrule/>
<nasal> <nasal>
<open> <open>
var group = cmdarg().getNode("group"); var group = cmdarg().getChildren("group")[1];
var ac = getprop("/sim/aircraft"); var ac = getprop("/sim/aircraft");
group.removeChildren("checkbox"); group.removeChildren("checkbox");
group.removeChildren("hrule"); group.removeChildren("hrule");
@ -64,6 +86,8 @@
</checkbox-template> </checkbox-template>
</group> </group>
<hrule/>
<button> <button>
<legend>Close</legend> <legend>Close</legend>
<default>true</default> <default>true</default>

View file

@ -37,6 +37,7 @@
</binding> </binding>
</button> </button>
</group> </group>
<hrule/> <hrule/>
<group> <group>
@ -1551,6 +1552,17 @@
</group> </group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<nasal> <nasal>
<open><![CDATA[ <open><![CDATA[
var normalize_string = func(src) { var normalize_string = func(src) {

View file

@ -458,13 +458,6 @@
<menu> <menu>
<label>AI</label> <label>AI</label>
<item>
<label>Traffic Options</label>
<binding>
<command>dialog-show</command>
<dialog-name>ai</dialog-name>
</binding>
</item>
<!-- Not working at present <!-- Not working at present
<item> <item>
<label>ATC Services in range</label> <label>ATC Services in range</label>
@ -727,6 +720,14 @@
</binding> </binding>
</item> </item>
<item>
<label>Common Aircraft Keys</label>
<binding>
<command>nasal</command>
<script>gui.showHelpDialog("/sim/help/common")</script>
</binding>
</item>
<item> <item>
<label>------------------</label> <label>------------------</label>
</item> </item>