1
0
Fork 0

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:
jimw 2002-04-21 15:06:22 +00:00
parent db78ac8380
commit 693b963bfb
3 changed files with 39 additions and 5 deletions

View file

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

View file

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

View file

@ -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,13 +717,23 @@ 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>
<command>property-swap</command> <condition>
<property>/sim/panel/path</property> <not>
<property>/sim/panel_2/path</property> <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>
<binding> <binding>
<desc>Load panel.</desc> <condition>
<command>panel-load</command> <not>
<property>/sim/allow-toggle-cockpit</property>
</not>
</condition>
<desc>Load panel.</desc>
<command>panel-load</command>
</binding> </binding>
</key> </key>
@ -1150,3 +1178,4 @@ calculated by adding 256 to the GLUT key value in glut.h.