1
0
Fork 0
fgdata/gui/dialogs/hud.xml

179 lines
3 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<x>-20</x>
<y>20</y>
<name>hud</name>
<layout>vbox</layout>
<text>
<label>HUD Configuration</label>
</text>
<hrule><dummy/></hrule>
<checkbox>
2006-06-09 20:35:44 +00:00
<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>
<layout>hbox</layout>
<text>
<label>Alpha:</label>
</text>
2006-06-07 19:43:45 +00:00
<empty><stretch>true</stretch></empty>
<slider>
<property>/sim/hud/color/alpha</property>
2006-06-07 19:43:45 +00:00
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
</group>
<group>
<layout>hbox</layout>
<text>
<label>Clamp:</label>
</text>
<empty><stretch>true</stretch></empty>
<slider>
<property>/sim/hud/color/alpha-clamp</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
</group>
<hrule><whatever/></hrule>
2006-06-07 19:43:45 +00:00
<group>
<layout>hbox</layout>
<text>
<label>Brightness:</label>
</text>
<empty><stretch>true</stretch></empty>
<slider>
<property>/sim/hud/color/brightness</property>
2006-06-07 19:43:45 +00:00
<live>true</live>
<max>1.5</max>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
</group>
<group>
<layout>hbox</layout>
<text>
<label>Red:</label>
</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>
</group>
<group>
<layout>hbox</layout>
<text>
<label>Green:</label>
</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>
</group>
<group>
<layout>hbox</layout>
<text>
<label>Blue:</label>
</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>
</group>
<group>
<layout>hbox</layout>
<default-padding>10</default-padding>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<nasal>
<open>
var self = cmdarg();
if (!getprop("/sim/devel")) {
foreach(var w; [1, 3, 4, 5]) {
self.removeChild("group", w);
}
self.removeChild("hrule", 1);
}
</open>
</nasal>
</PropertyList>