2005-11-09 10:42:34 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>hud</name>
|
|
|
|
<layout>vbox</layout>
|
2010-12-15 12:43:09 +00:00
|
|
|
<padding>20</padding>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2010-12-15 12:43:09 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
2005-11-09 10:42:34 +00:00
|
|
|
|
2010-12-15 12:43:09 +00:00
|
|
|
<text>
|
|
|
|
<label>HUD Configuration</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2010-12-15 12:43:09 +00:00
|
|
|
<empty><stretch>1</stretch></empty>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2010-12-15 12:43:09 +00:00
|
|
|
<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>
|
2005-11-09 10:42:34 +00:00
|
|
|
|
2007-03-26 15:25:27 +00:00
|
|
|
<hrule/>
|
2005-11-09 10:42:34 +00:00
|
|
|
|
2015-03-14 23:03:31 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
|
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
<checkbox>
|
|
|
|
<label>Enable 3D</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/hud/enable3d[1]</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<label>Transparent</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/hud/color/transparent</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<label>Antialiased</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/hud/color/antialiased</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
</group>
|
|
|
|
</group>
|
2005-11-09 10:42:34 +00:00
|
|
|
|
2012-01-06 00:03:11 +00:00
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Lat/Lon Format</label>
|
|
|
|
<halign>center</halign>
|
|
|
|
</text>
|
|
|
|
|
2015-03-14 23:03:31 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
|
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-0</property>
|
|
|
|
<value>0</value>
|
|
|
|
<live>true</live>
|
2015-07-14 21:25:30 +00:00
|
|
|
<label>DDD format (37.618890N 122.375000W)</label>
|
2015-03-14 23:03:31 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(0);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-1</property>
|
|
|
|
<value>1</value>
|
2015-07-14 21:25:30 +00:00
|
|
|
<label>DMM format (37*37.133'N 122*22.500'W)</label>
|
2015-03-14 23:03:31 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(1);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-2</property>
|
|
|
|
<value>2</value>
|
|
|
|
<live>true</live>
|
2015-07-14 21:25:30 +00:00
|
|
|
<label>DMS format (37*37'08.0"N 122*22'30.0"W)</label>
|
2015-03-14 23:03:31 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(2);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
2015-07-14 21:25:30 +00:00
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-3</property>
|
|
|
|
<value>3</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Signed DDD format (37.618890 -122.375000)</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(3);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-4</property>
|
|
|
|
<value>4</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Signed DMM format (37*37.133' -122*22.500')</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(4);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-5</property>
|
|
|
|
<value>5</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Signed DMS format (37*37'08.0" -122*22'30.0")</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(5);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-6</property>
|
|
|
|
<value>6</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Zero padded DDD (51.477500N 000.461389W)</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(6);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-7</property>
|
|
|
|
<value>7</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Zero padded DMM (51*28.650'N 000*27.683'W)</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(7);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-8</property>
|
|
|
|
<value>8</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Zero padded DMS (51*28'39.0"N 000*27'41.0"W)</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(8);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/gui/dialogs/hud/lon-lat-format-9</property>
|
|
|
|
<value>9</value>
|
|
|
|
<live>true</live>
|
|
|
|
<label>Trinity House Navigation (51* 28'.650N 000* 27'.683W)</label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(9);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
2015-03-14 23:03:31 +00:00
|
|
|
</group>
|
2012-01-06 00:03:11 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
2005-11-09 10:42:34 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
2005-11-09 10:42:34 +00:00
|
|
|
<text>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> Alpha:</label>
|
2005-11-09 10:42:34 +00:00
|
|
|
</text>
|
2006-06-07 19:43:45 +00:00
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
2005-11-09 10:42:34 +00:00
|
|
|
<slider>
|
2006-06-08 17:16:00 +00:00
|
|
|
<property>/sim/hud/color/alpha</property>
|
2006-06-07 19:43:45 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2006-06-07 19:43:45 +00:00
|
|
|
</group>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
<group>
|
2008-08-03 13:43:30 +00:00
|
|
|
<name>devel-stuff</name>
|
2006-06-08 17:16:00 +00:00
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> Clamp:</label>
|
2006-06-08 17:16:00 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<slider>
|
|
|
|
<property>/sim/hud/color/alpha-clamp</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
</group>
|
|
|
|
|
2008-08-03 13:43:30 +00:00
|
|
|
<hrule><name>devel-stuff</name></hrule>
|
2006-06-08 17:16:00 +00:00
|
|
|
|
2006-06-07 19:43:45 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> Brightness:</label>
|
2006-06-07 19:43:45 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<slider>
|
2006-06-08 17:16:00 +00:00
|
|
|
<property>/sim/hud/color/brightness</property>
|
2006-06-07 19:43:45 +00:00
|
|
|
<live>true</live>
|
|
|
|
<max>1.5</max>
|
2005-11-09 10:42:34 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2005-11-09 10:42:34 +00:00
|
|
|
</group>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
<group>
|
2008-08-03 13:43:30 +00:00
|
|
|
<name>devel-stuff</name>
|
2006-06-08 17:16:00 +00:00
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> Red:</label>
|
2006-06-08 17:16:00 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<slider>
|
|
|
|
<property>/sim/hud/color/red</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.5</blue>
|
|
|
|
</color>
|
|
|
|
</slider>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
2008-08-03 13:43:30 +00:00
|
|
|
<name>devel-stuff</name>
|
2006-06-08 17:16:00 +00:00
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> Green:</label>
|
2006-06-08 17:16:00 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<slider>
|
|
|
|
<property>/sim/hud/color/green</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<color>
|
|
|
|
<red>0.5</red>
|
|
|
|
<green>1.0</green>
|
|
|
|
<blue>0.5</blue>
|
|
|
|
</color>
|
|
|
|
</slider>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
2008-08-03 13:43:30 +00:00
|
|
|
<name>devel-stuff</name>
|
2006-06-08 17:16:00 +00:00
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> Blue:</label>
|
2006-06-08 17:16:00 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<slider>
|
|
|
|
<property>/sim/hud/color/blue</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<color>
|
|
|
|
<red>0.5</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>1.0</blue>
|
|
|
|
</color>
|
|
|
|
</slider>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
</group>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Close</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<key>Esc</key>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2006-06-08 17:16:00 +00:00
|
|
|
<nasal>
|
2012-01-06 00:03:11 +00:00
|
|
|
<open><![CDATA[
|
2008-08-03 15:37:43 +00:00
|
|
|
gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
|
2015-03-14 23:03:31 +00:00
|
|
|
var radios = cmdarg().getChildren("group")[2].getChildren("group")[1].getChildren("radio");
|
2012-01-06 00:03:11 +00:00
|
|
|
var set_radio = func(n) {
|
|
|
|
for (var i = 0; i < size(radios); i +=1) {
|
|
|
|
var prop = radios[i].getChild("property").getValue();
|
|
|
|
setprop(prop, (n == radios[i].getChild("value").getValue()));
|
|
|
|
}
|
|
|
|
|
|
|
|
setprop("/sim/lon-lat-format", n);
|
|
|
|
}
|
|
|
|
|
|
|
|
set_radio(getprop("/sim/lon-lat-format"));
|
|
|
|
]]>
|
2006-06-08 17:16:00 +00:00
|
|
|
</open>
|
|
|
|
</nasal>
|
2005-11-09 10:42:34 +00:00
|
|
|
</PropertyList>
|