1
0
Fork 0

Default view First Officer option 2

This commit is contained in:
Lukas Gafner 2020-05-07 22:07:35 +02:00
parent 462758e08b
commit 5c7ebe94c8
2 changed files with 25 additions and 1 deletions

View file

@ -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>

View file

@ -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();