1
0
Fork 0
fgdata/gui/dialogs/hud.xml
Stuart Buchanan 3d7d00ead9 Minor changes various dialogs to make generally consistent:
- Title bar with cancel button in top left hand side.
- horizontal line dividing main dialog from bottom buttons
- Minor layout and Nasal fixes.
2010-12-27 20:19:31 +00:00

190 lines
3.3 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>hud</name>
<layout>vbox</layout>
<padding>20</padding>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text>
<label>HUD Configuration</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/>
<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>
<layout>hbox</layout>
<text>
<label>Alpha:</label>
</text>
<empty><stretch>true</stretch></empty>
<slider>
<property>/sim/hud/color/alpha</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
</group>
<group>
<name>devel-stuff</name>
<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><name>devel-stuff</name></hrule>
<group>
<layout>hbox</layout>
<text>
<label>Brightness:</label>
</text>
<empty><stretch>true</stretch></empty>
<slider>
<property>/sim/hud/color/brightness</property>
<live>true</live>
<max>1.5</max>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
</group>
<group>
<name>devel-stuff</name>
<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>
<name>devel-stuff</name>
<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>
<name>devel-stuff</name>
<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>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<nasal>
<open>
gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
</open>
</nasal>
</PropertyList>