Generalize pilot model support
Adds standard view option to enable pilot models. Set /sim/rendering/pilot-model/available=true in aircraft using pilot models. /sim/rendering/pilot-model/enabled is used by users to enable/disable the pilot models from the View Options dialog. Note that pilot models are only visible for non-internal views.
This commit is contained in:
parent
71b66dce64
commit
0ce0e436ec
7 changed files with 113 additions and 30 deletions
|
@ -63,6 +63,18 @@
|
||||||
</legs>
|
</legs>
|
||||||
</params>
|
</params>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<property>/sim/current-view/internal</property>
|
||||||
|
</not>
|
||||||
|
<property>/sim/rendering/pilot-model/enabled</property>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>range</type>
|
<type>range</type>
|
||||||
<min-m>1</min-m>
|
<min-m>1</min-m>
|
||||||
|
|
|
@ -56,6 +56,18 @@
|
||||||
</legs>
|
</legs>
|
||||||
</params>
|
</params>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<property>/sim/current-view/internal</property>
|
||||||
|
</not>
|
||||||
|
<property>/sim/rendering/pilot-model/enabled</property>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>range</type>
|
<type>range</type>
|
||||||
<min-m>1</min-m>
|
<min-m>1</min-m>
|
||||||
|
|
|
@ -63,6 +63,18 @@
|
||||||
</legs>
|
</legs>
|
||||||
</params>
|
</params>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<property>/sim/current-view/internal</property>
|
||||||
|
</not>
|
||||||
|
<property>/sim/rendering/pilot-model/enabled</property>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>range</type>
|
<type>range</type>
|
||||||
<min-m>1</min-m>
|
<min-m>1</min-m>
|
||||||
|
|
|
@ -63,6 +63,18 @@
|
||||||
</legs>
|
</legs>
|
||||||
</params>
|
</params>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<property>/sim/current-view/internal</property>
|
||||||
|
</not>
|
||||||
|
<property>/sim/rendering/pilot-model/enabled</property>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>range</type>
|
<type>range</type>
|
||||||
<min-m>1</min-m>
|
<min-m>1</min-m>
|
||||||
|
|
|
@ -63,6 +63,18 @@
|
||||||
</legs>
|
</legs>
|
||||||
</params>
|
</params>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<property>/sim/current-view/internal</property>
|
||||||
|
</not>
|
||||||
|
<property>/sim/rendering/pilot-model/enabled</property>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>range</type>
|
<type>range</type>
|
||||||
<min-m>1</min-m>
|
<min-m>1</min-m>
|
||||||
|
|
|
@ -419,6 +419,13 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
<compress-solid type="bool" userarchive="y">true</compress-solid>
|
<compress-solid type="bool" userarchive="y">true</compress-solid>
|
||||||
<compress type="bool" userarchive="y">true</compress>
|
<compress type="bool" userarchive="y">true</compress>
|
||||||
</texture-cache>
|
</texture-cache>
|
||||||
|
|
||||||
|
<pilot-model>
|
||||||
|
<!-- Controls for the availability (set by aircraft) and visibility
|
||||||
|
(set by the user) of pilot model(s) in the aircraft.-->
|
||||||
|
<available type="bool" userarchive="n">false</available>
|
||||||
|
<enabled type="bool" userarchive="y">true</enabled>
|
||||||
|
</pilot-model>
|
||||||
</rendering>
|
</rendering>
|
||||||
<model-hz type="int">120</model-hz>
|
<model-hz type="int">120</model-hz>
|
||||||
<sound>
|
<sound>
|
||||||
|
|
|
@ -267,6 +267,22 @@
|
||||||
</binding>
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
|
||||||
|
<checkbox>
|
||||||
|
<halign>left</halign>
|
||||||
|
<label>Show Pilot Model</label>
|
||||||
|
<property>/sim/rendering/pilot-model/enabled</property>
|
||||||
|
<visible>
|
||||||
|
<equals>
|
||||||
|
<property>/sim/rendering/pilot-model/available</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
</visible>
|
||||||
|
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
</binding>
|
||||||
|
</checkbox>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
Loading…
Reference in a new issue