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>
|
|
|
|
<label>Decimal degrees</label>
|
|
|
|
<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>
|
|
|
|
<label>Degrees, minutes</label>
|
|
|
|
<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>
|
|
|
|
<label>Degrees, minutes, seconds </label>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>set_radio(2);</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
</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>
|