1
0
Fork 0

Option to disable mouse-mode feedback.

Drive off the 'show view names' checkbox in the view dialog for now, this might
evolve into a generic 'on-screen hints' control to avoid an explosion of
GUI checkboxes.

Also add a GUI checkbox (oh the irony...) to disable mouse flight-controls, to
keep AndersG and Emilian happy.
This commit is contained in:
James Turner 2013-03-12 21:45:06 +00:00
parent 0980f6302a
commit 5c4142ed6d
2 changed files with 20 additions and 0 deletions

View file

@ -536,6 +536,10 @@ var cycleMouseMode = func(node)
if (mode == 3) mode = 0; if (mode == 3) mode = 0;
modeNode.setIntValue(mode); modeNode.setIntValue(mode);
# this is really a 'show on-screen hints' control
if (getprop('/sim/view-name-popup') == 0)
return;
if (mode == 1) { if (mode == 1) {
setprop("/sim/messages/copilot", "Mouse is controlling flight controls. Press TAB to change."); setprop("/sim/messages/copilot", "Mouse is controlling flight controls. Press TAB to change.");
} elsif (mode == 2) { } elsif (mode == 2) {

View file

@ -133,6 +133,22 @@
</binding> </binding>
</checkbox> </checkbox>
<text>
<row>5</row>
<col>0</col>
<label>Disable mouse flight-controls mode</label>
<padding>10</padding>
</text>
<checkbox>
<row>5</row>
<col>1</col>
<property>/sim/mouse/skip-flight-controls-mode</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group> </group>
<nasal> <nasal>