1
0
Fork 0
fgdata/Aircraft/Instruments/brakes.xml
curt f7c276944e Attempt #1 to sort out confusion between left / right / parking brake
controls in the cockpit vs. which wheels they apply to.  FlightGear now
sets /controls/gear/brake-left, /controls/gear/brake-right, and
/controls/gear/brake-parking.  It should be up to the FDM to sort out
which wheels under which circumstances are affected by these controls
and ultimately what happens to the physical motion of the aircraft.
2004-01-12 17:49:33 +00:00

80 lines
1.6 KiB
XML

<?xml version="1.0"?>
<!--
A simple indicator lamp. Used here as a brake light.
John Check <j4strngs@usa.net>
-->
<PropertyList>
<name>Brake</name>
<w-base>64</w-base>
<h-base>26</h-base>
<layers>
<!-- The "bulb" -->
<layer>
<name>Brake light</name>
<type>switch</type>
<layer>
<condition>
<property>/controls/gear/brake-parking</property> <!-- parking brake -->
</condition>
<name>on</name>
<texture>
<path>Aircraft/Instruments/Textures/warning-lamps.rgb</path>
<x1>0.25</x1>
<y1>0.0</y1>
<x2>0.5</x2>
<y2>0.095</y2>
</texture>
<w>64</w>
<h>26</h>
</layer>
<layer>
<name>off</name>
<texture>
<path>Aircraft/Instruments/Textures/warning-lamps.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>0.25</x2>
<y2>0.095</y2>
</texture>
<w>64</w>
<h>26</h>
</layer>
</layer>
<!-- translucent lens -->
<layer>
<name>lens</name>
<texture>
<path>Aircraft/Instruments/Textures/warning-lamps.rgb</path>
<x1>0.495</x1>
<y1>0.0875</y1>
<x2>0.75</x2>
<y2>0.1975</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-2</offset>
</transformation>
</transformations>
<w>64</w>
<h>26</h>
</layer>
</layers>
<actions>
<action>
<desc>brake</desc>
<button>0</button>
<x>-32</x>
<y>-13</y>
<w>64</w>
<h>26</h>
<binding>
<command>property-toggle</command>
<property>/controls/gear/brake-parking</property>
</binding>
</action>
</actions>
</PropertyList>