replace hard-coded HUD config dialog with NewGUI dialog
This commit is contained in:
parent
759ff1b715
commit
eeff07c0e7
3 changed files with 53 additions and 1 deletions
49
gui/dialogs/hud.xml
Normal file
49
gui/dialogs/hud.xml
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
<x>-50</x>
|
||||
<y>50</y>
|
||||
<name>hud</name>
|
||||
<layout>vbox</layout>
|
||||
|
||||
<text>
|
||||
<label>HUD Configuration</label>
|
||||
</text>
|
||||
|
||||
<hrule><dummy/></hrule>
|
||||
|
||||
<checkbox>
|
||||
<label>Antialias</label>
|
||||
<property>/sim/hud/antialiased</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<label>Alpha:</label>
|
||||
</text>
|
||||
<slider>
|
||||
<property>/sim/hud/alpha</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</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>
|
||||
</PropertyList>
|
|
@ -120,7 +120,8 @@
|
|||
<item>
|
||||
<label>Adjust HUD Transparency</label>
|
||||
<binding>
|
||||
<command>old-hud-alpha-dialog</command>
|
||||
<command>dialog-show</command>
|
||||
<dialog-name>hud</dialog-name>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
|
|
@ -85,6 +85,8 @@ Started September 2000 by David Megginson, david@megginson.com
|
|||
<hud>
|
||||
<path>Huds/Default/default.xml</path>
|
||||
<visibility type="bool">false</visibility>
|
||||
<antialiased type="bool">false</antialiased>
|
||||
<alpha type="float">0.67</alpha>
|
||||
<draw-fps>false</draw-fps>
|
||||
</hud>
|
||||
<systems>
|
||||
|
|
Loading…
Add table
Reference in a new issue