Added flag "allow-toggle-cockpit" so that 3d/2d toggle is not attempted for
aircraft that do not have 3d cockpit configured. Toggling is done with the "c" key. Note also that for now, since the 3d models don't have a "small" panel defined, the "s" key is disabled if "allow-toggle-cockpit" is true.
This commit is contained in:
parent
db78ac8380
commit
693b963bfb
3 changed files with 39 additions and 5 deletions
|
@ -15,6 +15,7 @@ October 23 2001 John Check, fgpanels@rockfish.net
|
|||
<sim>
|
||||
|
||||
<virtual-cockpit archive="y">true</virtual-cockpit>
|
||||
<allow-toggle-cockpit archive="y">true</allow-toggle-cockpit>
|
||||
|
||||
<flight-model archive="y">jsb</flight-model>
|
||||
<aero archive="y">c172</aero>
|
||||
|
@ -88,3 +89,4 @@ October 23 2001 John Check, fgpanels@rockfish.net
|
|||
|
||||
</PropertyList>
|
||||
|
||||
|
||||
|
|
|
@ -15,6 +15,8 @@ March 2002 Jim Wilson, jimw@kelcomaine.com
|
|||
<sim>
|
||||
|
||||
<virtual-cockpit archive="y">true</virtual-cockpit>
|
||||
<allow-toggle-cockpit archive="y">true</allow-toggle-cockpit>
|
||||
|
||||
<flight-model archive="y">jsb</flight-model>
|
||||
<aero archive="y">c310u3a</aero>
|
||||
|
||||
|
@ -116,3 +118,4 @@ March 2002 Jim Wilson, jimw@kelcomaine.com
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
39
keyboard.xml
39
keyboard.xml
|
@ -635,29 +635,47 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
<name>c</name>
|
||||
<desc>Toggle 3D/2D cockpit</desc>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</condition>
|
||||
<command>property-swap</command>
|
||||
<property>/sim/panel[0]/path</property>
|
||||
<property>/sim/panel[1]/path</property>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</condition>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/current-view/heading-offset-deg</property>
|
||||
<value type="double">0</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</condition>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/current-view/pitch-offset-deg</property>
|
||||
<value type="double">0</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</condition>
|
||||
<desc>Load panel.</desc>
|
||||
<command>panel-load</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</condition>
|
||||
<command>property-toggle</command>
|
||||
<property>/sim/view/internal</property>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</condition>
|
||||
<command>property-toggle</command>
|
||||
<property>/sim/virtual-cockpit</property>
|
||||
</binding>
|
||||
|
@ -699,13 +717,23 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
<name>s</name>
|
||||
<desc>Swap panels.</desc>
|
||||
<binding>
|
||||
<command>property-swap</command>
|
||||
<property>/sim/panel/path</property>
|
||||
<property>/sim/panel_2/path</property>
|
||||
<condition>
|
||||
<not>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</not>
|
||||
</condition>
|
||||
<command>property-swap</command>
|
||||
<property>/sim/panel/path</property>
|
||||
<property>/sim/panel_2/path</property>
|
||||
</binding>
|
||||
<binding>
|
||||
<desc>Load panel.</desc>
|
||||
<command>panel-load</command>
|
||||
<condition>
|
||||
<not>
|
||||
<property>/sim/allow-toggle-cockpit</property>
|
||||
</not>
|
||||
</condition>
|
||||
<desc>Load panel.</desc>
|
||||
<command>panel-load</command>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
|
@ -1150,3 +1178,4 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue