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

119 lines
2.7 KiB
XML
Raw Normal View History

2009-10-15 03:25:05 +00:00
<?xml version="1.0"?>
<PropertyList>
<name>display</name>
<modal>false</modal>
<layout>vbox</layout>
<text>
<label>Display Options</label>
</text>
<hrule/>
<group>
<layout>vbox</layout>
<halign>center</halign>
<checkbox>
<halign>left</halign>
<label>Show frame rate</label>
<property>/sim/rendering/fps-display</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Show chat messages</label>
<property>/sim/multiplay/chat-display</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
2009-10-15 05:24:45 +00:00
<label>Enable view popups</label>
2009-10-15 03:25:05 +00:00
<property>/sim/view-name-popup</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Toggle 2D Panel</label>
<binding>
<command>property-toggle</command>
<property>/sim/panel/visibility</property>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Allow 3d cockpit toggle</label>
<property>/sim/allow-toggle-cockpit</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<button>
<halign>center</halign>
<legend>Cycle HUD</legend>
<binding>
<command>nasal</command>
<script>aircraft.HUD.cycle_color()</script>
</binding>
</button>
<button>
<halign>center</halign>
<legend>Configure views</legend>
<binding>
<command>dialog-show</command>
<dialog-name>view</dialog-name>
</binding>
</button>
2009-10-15 05:19:04 +00:00
<button>
<halign>center</halign>
<legend>Save current FOV</legend>
<binding>
<command>nasal</command>
<script>
var nm=getprop("/sim/current-view/view-number");
var vw = getprop("/sim/current-view/field-of-view");
setprop("/sim/current-view/config/default-field-of-view-deg",vw);
setprop("/sim/view["~nm~"]/config/default-field-of-view-deg",vw);
</script>
</binding>
</button>
2009-10-15 03:25:05 +00:00
</group>
<hrule/>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>