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>
|
<sim>
|
||||||
|
|
||||||
<virtual-cockpit archive="y">true</virtual-cockpit>
|
<virtual-cockpit archive="y">true</virtual-cockpit>
|
||||||
|
<allow-toggle-cockpit archive="y">true</allow-toggle-cockpit>
|
||||||
|
|
||||||
<flight-model archive="y">jsb</flight-model>
|
<flight-model archive="y">jsb</flight-model>
|
||||||
<aero archive="y">c172</aero>
|
<aero archive="y">c172</aero>
|
||||||
|
@ -88,3 +89,4 @@ October 23 2001 John Check, fgpanels@rockfish.net
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@ March 2002 Jim Wilson, jimw@kelcomaine.com
|
||||||
<sim>
|
<sim>
|
||||||
|
|
||||||
<virtual-cockpit archive="y">true</virtual-cockpit>
|
<virtual-cockpit archive="y">true</virtual-cockpit>
|
||||||
|
<allow-toggle-cockpit archive="y">true</allow-toggle-cockpit>
|
||||||
|
|
||||||
<flight-model archive="y">jsb</flight-model>
|
<flight-model archive="y">jsb</flight-model>
|
||||||
<aero archive="y">c310u3a</aero>
|
<aero archive="y">c310u3a</aero>
|
||||||
|
|
||||||
|
@ -116,3 +118,4 @@ March 2002 Jim Wilson, jimw@kelcomaine.com
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
29
keyboard.xml
29
keyboard.xml
|
@ -635,29 +635,47 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
||||||
<name>c</name>
|
<name>c</name>
|
||||||
<desc>Toggle 3D/2D cockpit</desc>
|
<desc>Toggle 3D/2D cockpit</desc>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</condition>
|
||||||
<command>property-swap</command>
|
<command>property-swap</command>
|
||||||
<property>/sim/panel[0]/path</property>
|
<property>/sim/panel[0]/path</property>
|
||||||
<property>/sim/panel[1]/path</property>
|
<property>/sim/panel[1]/path</property>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</condition>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>/sim/current-view/heading-offset-deg</property>
|
<property>/sim/current-view/heading-offset-deg</property>
|
||||||
<value type="double">0</value>
|
<value type="double">0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</condition>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>/sim/current-view/pitch-offset-deg</property>
|
<property>/sim/current-view/pitch-offset-deg</property>
|
||||||
<value type="double">0</value>
|
<value type="double">0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</condition>
|
||||||
<desc>Load panel.</desc>
|
<desc>Load panel.</desc>
|
||||||
<command>panel-load</command>
|
<command>panel-load</command>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</condition>
|
||||||
<command>property-toggle</command>
|
<command>property-toggle</command>
|
||||||
<property>/sim/view/internal</property>
|
<property>/sim/view/internal</property>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</condition>
|
||||||
<command>property-toggle</command>
|
<command>property-toggle</command>
|
||||||
<property>/sim/virtual-cockpit</property>
|
<property>/sim/virtual-cockpit</property>
|
||||||
</binding>
|
</binding>
|
||||||
|
@ -699,11 +717,21 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
||||||
<name>s</name>
|
<name>s</name>
|
||||||
<desc>Swap panels.</desc>
|
<desc>Swap panels.</desc>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<not>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
<command>property-swap</command>
|
<command>property-swap</command>
|
||||||
<property>/sim/panel/path</property>
|
<property>/sim/panel/path</property>
|
||||||
<property>/sim/panel_2/path</property>
|
<property>/sim/panel_2/path</property>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
|
<condition>
|
||||||
|
<not>
|
||||||
|
<property>/sim/allow-toggle-cockpit</property>
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
<desc>Load panel.</desc>
|
<desc>Load panel.</desc>
|
||||||
<command>panel-load</command>
|
<command>panel-load</command>
|
||||||
</binding>
|
</binding>
|
||||||
|
@ -1150,3 +1178,4 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue