1
0
Fork 0
fgdata/gui/dialogs/input-config.xml

142 lines
3.3 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<name>input-config</name>
2013-12-30 21:57:53 +00:00
<nasal>
<open>
var syncRadioState = func()
{
var cycle = getprop("/sim/mouse/right-button-mode-cycle-enabled");
setprop("/sim/gui/dialogs/input-config/right-mouse-look", !cycle);
setprop("/sim/gui/dialogs/input-config/right-mouse-cycle", cycle);
}
2013-12-30 21:57:53 +00:00
var rightMouseMode = func(newMode)
{
var doCycle = (newMode == "cycle");
setprop("/sim/mouse/right-button-mode-cycle-enabled", doCycle);
syncRadioState();
}
2013-12-30 21:57:53 +00:00
syncRadioState();
</open>
</nasal>
2013-12-30 21:57:53 +00:00
<modal>false</modal>
2013-12-30 21:57:53 +00:00
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text>
<label>Input Options</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/>
2013-12-30 21:57:53 +00:00
<group>
<halign>center</halign>
<valign>top</valign>
<layout>table</layout>
2013-12-30 21:57:53 +00:00
<group>
<pref-width>600</pref-width>
<row>0</row>
<col>0</col>
<colspan>2</colspan>
2013-12-30 21:57:53 +00:00
<layout>vbox</layout>
2013-12-30 21:57:53 +00:00
<text>
<halign>left</halign>
<label>Pressing TAB cycles the mouse between different behaviours - normal, flight-controls and look.</label>
</text>
<text>
<halign>left</halign>
<label>The right-mouse button can be used in two different ways:</label>
</text>
</group>
2013-12-30 21:57:53 +00:00
<text>
<label>Press and hold right mouse to look around</label>
<halign>right</halign>
<row>1</row>
<col>0</col>
</text>
<radio>
<row>1</row>
<col>1</col>
<property>/sim/gui/dialogs/input-config/right-mouse-look</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>rightMouseMode("look")</script>
</binding>
</radio>
2013-12-30 21:57:53 +00:00
<text>
2013-12-30 21:57:53 +00:00
<label>Click right mouse to cycle mouse behaviour</label>
<halign>right</halign>
<row>2</row>
<col>0</col>
</text>
<radio>
<row>2</row>
<col>1</col>
<property>/sim/gui/dialogs/input-config/right-mouse-cycle</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>rightMouseMode("cycle")</script>
</binding>
</radio>
2013-12-30 21:57:53 +00:00
<checkbox>
<row>3</row>
<col>0</col>
<colspan>2</colspan>
<halign>left</halign>
<label>Disable flight-controls via mouse</label>
<property>/sim/mouse/skip-flight-controls-mode</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
2013-12-30 21:57:53 +00:00
</group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList>