1
0
Fork 0

paul mccann:

I added some more hotspots to Davids c172p since he already had done all the animation. Also I tried making the throttle and mixture knobs into hotspots even when they are moving adding extra hotspots for them.  Also you can click on the trim wheel to trim now.

I added a directory for the labels for the white toggle switches, but there is probably better way to do the labels then I came up with.  There is a short readme file which gives the path for the new directory.
This commit is contained in:
ehofman 2003-09-22 08:26:32 +00:00
parent 98804a6793
commit 8b726485c4
7 changed files with 534 additions and 31 deletions

View file

@ -16,6 +16,60 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<instruments> <instruments>
<!-- labels -->
<instrument include="/labels/labelbcn.xml">
<name>labelbcn</name>
<x>495</x>
<y>-253</y>
<w>28</w>
<h>26</h>
</instrument>
<!-- labels -->
<instrument include="/labels/labelnav.xml">
<name>labelnav</name>
<x>458</x>
<y>-252</y>
<w>28</w>
<h>26</h>
</instrument>
<!-- labels -->
<instrument include="/labels/labelpto.xml">
<name>labelpto</name>
<x>422</x>
<y>-253</y>
<w>28</w>
<h>26</h>
</instrument>
<!-- labels -->
<instrument include="/labels/labelsto.xml">
<name>labelsto</name>
<x>525</x>
<y>-253</y>
<w>28</w>
<h>26</h>
</instrument>
<!-- labels -->
<instrument include="/labels/labeltax.xml">
<name>labeltax</name>
<x>495</x>
<y>-187</y>
<w>28</w>
<h>26</h>
</instrument>
<!-- labels -->
<instrument include="/labels/labellng.xml">
<name>labellng</name>
<x>525</x>
<y>-187</y>
<w>28</w>
<h>26</h>
</instrument>
<!-- engine gauge cluster --> <!-- engine gauge cluster -->
<instrument include="../../Instruments/clock.xml"> <instrument include="../../Instruments/clock.xml">
<name>Chronometer</name> <name>Chronometer</name>
@ -62,7 +116,7 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<!-- engine controls cluster --> <!-- engine controls cluster -->
<instrument include="../../Instruments/rpm.xml"> <instrument include="../../Instruments/rpm.xml">
<name>RPM Gauge</name> <name>RPM Gauge</name>c172p-2d-panel.xml
<x>542</x> <x>542</x>
<y>-31</y> <y>-31</y>
<w>120</w> <w>120</w>
@ -229,9 +283,9 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<x>712</x> <x>712</x>
<y>0</y> <y>0</y>
<w>1424</w> <w>1424</w>
<h>488</h> <h>1488</h>
<w-base>1424</w-base> <w-base>1424</w-base>
<h-base>488</h-base> <h-base>1488</h-base>
<layers> <layers>
<layer> <layer>
@ -286,12 +340,14 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
</layer> </layer>
</layers> </layers>
<actions> <!-- toggle switches -->
<actions>
<action> <action>
<name>toggle nav lights</name> <name>toggle nav lights</name>
<button>0</button> <button>0</button>
<x>-270</x> <x>-267</x>
<y>-250</y> <y>-246</y>
<w>20</w> <w>20</w>
<h>50</h> <h>50</h>
<binding> <binding>
@ -300,13 +356,118 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
</binding> </binding>
</action> </action>
<action>
<name>toggle beacon light </name>
<button>0</button>
<x>-233</x>
<y>-246</y>
<w>20</w>
<h>50</h>
<binding>
<command>property-toggle</command>
<property>/controls/lights/beacon</property>
</binding>
</action>
<action>
<name>toggle pitot heat</name>
<button>0</button>
<x>-307</x>
<y>-246</y>
<w>20</w>
<h>50</h>
<binding>
<command>property-toggle</command>
<property>/controls/anti-ice/pitot-heat</property>
</binding>
</action>
<action>
<name>toggle strobe light</name>
<button>0</button>
<x>-198</x>
<y>-246</y>
<w>20</w>
<h>50</h>
<binding>
<command>property-toggle</command>
<property>/controls/lights/strobes</property>
</binding>
</action>
<action>
<name>toggle taxi light</name>
<button>0</button>
<x>-230</x>
<y>-180</y>
<w>20</w>
<h>50</h>
<binding>
<command>property-toggle</command>
<property>/controls/lights/taxi</property>
</binding>
</action>
<action>
<name>toggle landing light</name>
<button>0</button>
<x>-198</x>
<y>-180</y>
<w>20</w>
<h>50</h>
<binding>
<command>property-toggle</command>
<property>/controls/lights/landing</property>
</binding>
</action>
<!-- elevator-trim -->
<action>
<name>small increase</name>
<button>0</button>
<x>-90</x>
<y>-470</y>
<w>60</w>
<h>110</h>
<binding>
<command>property-adjust</command>
<property>/controls/flight/elevator-trim</property>
<step>0.03</step>
<min>0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>small decrease</name>
<button>0</button>
<x>-90</x>
<y>-580</y>
<w>60</w>
<h>110</h>
<binding>
<command>property-adjust</command>
<property>/controls/flight/elevator-trim</property>
<step>-0.03</step>
<min>0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<!-- flap extend/retract --> <!-- flap extend/retract -->
<action> <action>
<name>Flap Retract</name> <name>Flap Retract</name>
<button>0</button> <button>0</button>
<x>240</x> <x>230</x>
<y>-245</y> <y>-245</y>
<w>20</w> <w>30</w>
<h>80</h> <h>80</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
@ -323,7 +484,7 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<button>0</button> <button>0</button>
<x>260</x> <x>260</x>
<y>-245</y> <y>-245</y>
<w>20</w> <w>30</w>
<h>80</h> <h>80</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
@ -340,10 +501,10 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<action> <action>
<desc>carb-heat</desc> <desc>carb-heat</desc>
<button>0</button> <button>0</button>
<x>-150</x> <x>-145</x>
<y>-200</y> <y>-240</y>
<w>40</w> <w>55</w>
<h>40</h> <h>95</h>
<binding> <binding>
<command>property-toggle</command> <command>property-toggle</command>
<property>/controls/anti-ice/engine/carb-heat</property> <property>/controls/anti-ice/engine/carb-heat</property>
@ -358,10 +519,10 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<action> <action>
<name>big decrease</name> <name>big decrease</name>
<button>0</button> <button>0</button>
<x>-50</x> <x>-45</x>
<y>-200</y> <y>-215</y>
<w>40</w> <w>45</w>
<h>76</h> <h>90</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/controls/engines/engine/throttle</property> <property>/controls/engines/engine/throttle</property>
@ -373,12 +534,12 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
</action> </action>
<action> <action>
<name>small increase</name> <name>big increase</name>
<button>0</button> <button>0</button>
<x>-10</x> <x>0</x>
<y>-200</y> <y>-215</y>
<w>40</w> <w>45</w>
<h>76</h> <h>90</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/controls/engines/engine/throttle</property> <property>/controls/engines/engine/throttle</property>
@ -389,15 +550,62 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
</binding> </binding>
</action> </action>
<action>
<name>big decrease</name>
<button>0</button>
<x>-30</x>
<y>-315</y>
<w>45</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine/throttle</property>
<step>-0.07</step>
<min>0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>big increase</name>
<button>0</button>
<x>15</x>
<y>-315</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine/throttle</property>
<step>0.07</step>
<min>0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<!-- mixture control --> <!-- mixture control -->
<action> <action>
<name>small decrease</name> <name>small decrease</name>
<button>0</button> <button>0</button>
<x>80</x> <x>80</x>
<y>-200</y> <y>-215</y>
<w>40</w> <w>45</w>
<h>76</h> <h>90</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/controls/engines/engine/mixture</property> <property>/controls/engines/engine/mixture</property>
@ -411,10 +619,10 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
<action> <action>
<name>small increase</name> <name>small increase</name>
<button>0</button> <button>0</button>
<x>120</x> <x>125</x>
<y>-200</y> <y>-215</y>
<w>40</w> <w>45</w>
<h>76</h> <h>90</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/controls/engines/engine/mixture</property> <property>/controls/engines/engine/mixture</property>
@ -425,10 +633,46 @@ Legacy 2D instruments and actions for the 3D C172P cockpit.
</binding> </binding>
</action> </action>
</actions>
<action>
<name>small decrease</name>
<button>0</button>
<x>110</x>
<y>-315</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine/mixture</property>
<step>-0.03</step>
<min>0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>c172p-2d-panel.xml
</action>
<action>
<name>small increase</name>
<button>0</button>
<x>160</x>
<y>-315</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property>/controls/engines/engine/mixture</property>
<step>0.03</step>
<min>0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
</actions>
</instrument> </instrument>
</instruments>
</instruments>
</PropertyList> </PropertyList>

View file

@ -0,0 +1,48 @@
<?xml version="1.0"?>
<!--
label-bcn
Started summer 2000 by David Megginson, david@megginson.com.
This is an instrument configuration file for the open-source flight
simulator FlightGear (www.flightgear.org). The file is an XML-encoded
FlightGear property list defining the instrument's layers and actions.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>labelbcn</name>
<w-base>14</w-base>
<h-base>12</h-base>
<layers>
<layer>
<name>face</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.47</x1>
<y1>0.39</y1>
<x2>0.65</x2>
<y2>0.52</y2>
</texture>
</layer>
</layers>
</PropertyList>

View file

@ -0,0 +1,42 @@
<!--
label-lng
Started summer 2000 by David Megginson, david@megginson.com.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>labellng</name>
<w-base>14</w-base>
<h-base>12</h-base>
<layers>
<layer>
<name>face</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.65</x1>
<y1>0.49</y1>
<x2>0.82</x2>
<y2>0.62</y2>
</texture>
</layer>
</layers>
</PropertyList>

View file

@ -0,0 +1,43 @@
<!--
label-nav
Started summer 2000 by David Megginson, david@megginson.com.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>labelnav</name>
<w-base>14</w-base>
<h-base>12</h-base>
<layers>
<layer>
<name>face</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.47</x1>
<y1>0.50</y1>
<x2>0.65</x2>
<y2>0.63</y2>
</texture>
</layer>
</layers>
</PropertyList>

View file

@ -0,0 +1,42 @@
<!--
label-pto
Started summer 2000 by David Megginson, david@megginson.com.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>labelbcn</name>
<w-base>14</w-base>
<h-base>12</h-base>
<layers>
<layer>
<name>face</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.47</x1>
<y1>0.29</y1>
<x2>0.65</x2>
<y2>0.42</y2>
</texture>
</layer>
</layers>
</PropertyList>

View file

@ -0,0 +1,42 @@
<!--
label-sto
Started summer 2000 by David Megginson, david@megginson.com.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>labelbcn</name>
<w-base>14</w-base>
<h-base>12</h-base>
<layers>
<layer>
<name>face</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.65</x1>
<y1>0.39</y1>
<x2>0.82</x2>
<y2>0.52</y2>
</texture>
</layer>
</layers>
</PropertyList>

View file

@ -0,0 +1,42 @@
<!--
label-tax
Started summer 2000 by David Megginson, david@megginson.com.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>labelbcn</name>
<w-base>14</w-base>
<h-base>12</h-base>
<layers>
<layer>
<name>face</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.65</x1>
<y1>0.29</y1>
<x2>0.82</x2>
<y2>0.42</y2>
</texture>
</layer>
</layers>
</PropertyList>