Default view First Officer option 2
This commit is contained in:
parent
462758e08b
commit
5c7ebe94c8
2 changed files with 25 additions and 1 deletions
|
@ -3903,6 +3903,30 @@
|
|||
<property>/sim/view/config/back-direction-deg</property>
|
||||
</binding>
|
||||
</mod-shift>
|
||||
</key>
|
||||
<key n="22">
|
||||
<name>Ctrl-V</name>
|
||||
<desc>Select default view (pilot or copilot)</desc>
|
||||
<binding>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/options/system/fo-view</property>
|
||||
<value type="double">1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<command>nasal</command>
|
||||
<script>view.setViewByIndex(100);</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/options/system/fo-view</property>
|
||||
<value type="double">0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<command>nasal</command>
|
||||
<script>view.setViewByIndex(0);</script>
|
||||
</binding>
|
||||
</key>
|
||||
</keyboard>
|
||||
</input>
|
||||
|
|
|
@ -197,7 +197,7 @@ setlistener("/sim/signals/fdm-initialized", func {
|
|||
}
|
||||
|
||||
if (getprop("/options/system/fo-view") == 1) {
|
||||
setprop("/sim/current-view/view-number", 8);
|
||||
view.setViewByIndex(100);
|
||||
}
|
||||
|
||||
spinning.stop();
|
||||
|
|
Loading…
Reference in a new issue