<?xml version="1.0"?>

<!--
Cessna 150L actions for 3D panel.

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>3D Action Placeholder</name>
<w-base>512</w-base>
<h-base>256</h-base>
<layers>
	<!-- layer>
		<name>background</name>
		<texture>
			<path>Aircraft/c150/Panels/Textures/c150-panel-bg-placement.rgb</path>
			<x1>0.02</x1>
			<y1>0.2</y1>
			<x2>0.74</x2>
			<y2>0.48</y2>
		</texture>
	</layer -->
</layers>
<!-- toggle switches -->
<actions>
	<action>
		<name>Master Alt</name>
		<button>0</button>
		<x>-200</x>
		<y>-60</y>
		<w>10</w>
		<h>70</h>
		<binding>
			<command>property-toggle</command>
			<property>/controls/engines/engine[0]/master-alt</property>
		</binding>
	</action>
	<action>
		<name>Master Bat</name>
		<button>0</button>
		<x>-190</x>
		<y>-60</y>
		<w>10</w>
		<h>70</h>
		<binding>
			<command>property-toggle</command>
			<property>/controls/engines/engine[0]/master-bat</property>
		</binding>
	</action>
	<action>
		<name>Magnetos -</name>
		<button>0</button>
		<x>-200</x>
		<y>10</y>
		<w>20</w>
		<h>80</h>
		<binding>
			<command>property-adjust</command>
			<property>/controls/engines/engine[0]/magnetos</property>
			<step>-1</step>
			<min>0</min>
			<max>3</max>
			<wrap>0</wrap>
		</binding>
	</action>
	<action>
		<name>Magnetos +</name>
		<button>0</button>
		<x>-180</x>
		<y>10</y>
		<w>20</w>
		<h>80</h>
		<binding>
			<command>property-adjust</command>
			<property>/controls/engines/engine[0]/magnetos</property>
			<step>1</step>
			<min>0</min>
			<max>3</max>
			<wrap>0</wrap>
		</binding>
	</action>
	<action>
		<condition>
			<equals>
				<property>/controls/engines/engine[0]/magnetos</property>
				<value>3</value>
			</equals>
		</condition>
		<name>Engine Start</name>
		<button>0</button>
		<x>-180</x>
		<y>10</y>
		<w>20</w>
		<h>80</h>
		<repeatable type="bool">false</repeatable>
		<binding>
			<command>property-assign</command>
			<property>/controls/engines/engine[0]/starter</property>
			<value type="bool">true</value>
			<repeatable type="bool">false</repeatable>
		</binding>
		<mod-up>
			<binding>
				<command>property-assign</command>
				<property>/controls/engines/engine[0]/starter</property>
				<value type="bool">false</value>
			</binding>
		</mod-up>
	</action>
	<action>
		<name>toggle nav lights</name>
		<button>0</button>
		<x>-10</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/lighting/landing-lights</property>
		</binding>
	</action>
	<action>
		<name>toggle beacon light</name>
		<button>0</button>
		<x>-25</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/lighting/taxi-light</property>
		</binding>
	</action>
	<action>
		<name>toggle pitot heat</name>
		<button>0</button>
		<x>-40</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/lighting/beacon</property>
		</binding>
	</action>
	<action>
		<name>toggle strobe light</name>
		<button>0</button>
		<x>-55</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/lighting/strobe</property>
		</binding>
	</action>
	<action>
		<name>toggle taxi light</name>
		<button>0</button>
		<x>-70</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/lighting/nav-lights</property>
		</binding>
	</action>
	<action>
		<name>toggle landing light</name>
		<button>0</button>
		<x>-85</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/anti-ice/pitot-heat</property>
		</binding>
	</action>
	<action>
		<name>toggle dome light</name>
		<button>0</button>
		<x>-100</x>
		<y>40</y>
		<w>15</w>
		<h>50</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/lighting/dome-lights</property>
		</binding>
	</action>
	<!-- elevator-trim -->
	<action>
		<name>small increase</name>
		<button>0</button>
		<x>25</x>
		<y>-150</y>
		<w>40</w>
		<h>150</h>
		<binding>
			<command>property-adjust</command>
			<property>controls/flight/elevator-trim</property>
			<step>0.03</step>
			<min>-1.0</min>
			<max>1.0</max>
			<wrap>false</wrap>
		</binding>
	</action>
	<action>
		<name>small decrease</name>
		<button>0</button>
		<x>25</x>
		<y>-300</y>
		<w>40</w>
		<h>150</h>
		<binding>
			<command>property-adjust</command>
			<property>controls/flight/elevator-trim</property>
			<step>-0.03</step>
			<min>-1.0</min>
			<max>1.0</max>
			<wrap>false</wrap>
		</binding>
	</action>
	<!-- flap extend/retract -->
	<action>
		<name>Flap Retract</name>
		<button>0</button>
		<x>170</x>
		<y>40</y>
		<w>40</w>
		<h>60</h>
		<binding>
			<command>property-adjust</command>
			<property>controls/flight/flaps</property>
			<step>-0.34</step>
			<min>0</min>
			<max>1.0</max>
			<wrap>false</wrap>
		</binding>
	</action>
	<action>
		<name>Flap Extend</name>
		<button>0</button>
		<x>170</x>
		<y>-20</y>
		<w>40</w>
		<h>60</h>
		<binding>
			<command>property-adjust</command>
			<property>controls/flight/flaps</property>
			<step>0.34</step>
			<min>0</min>
			<max>1.0</max>
			<wrap>false</wrap>
		</binding>
	</action>
	<!-- carb heat control -->
	<action>
		<desc>carb-heat</desc>
		<button>0</button>
		<x>25</x>
		<y>0</y>
		<w>30</w>
		<h>80</h>
		<binding>
			<command>property-toggle</command>
			<property>controls/anti-ice/engine/carb-heat</property>
		</binding>
	</action>
	<!-- throttle control -->
	<action>
		<name>big decrease</name>
		<button>0</button>
		<x>60</x>
		<y>-15</y>
		<w>25</w>
		<h>80</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>85</x>
		<y>-15</y>
		<w>25</w>
		<h>80</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 -->
	<action>
		<name>small decrease</name>
		<button>0</button>
		<x>110</x>
		<y>3</y>
		<w>25</w>
		<h>80</h>
		<binding>
			<command>property-adjust</command>
			<property>controls/engines/engine/mixture-lever</property>
			<step>-0.03</step>
			<min>0</min>
			<max>1.0</max>
			<wrap>false</wrap>
		</binding>
	</action>
	<action>
		<name>small increase</name>
		<button>0</button>
		<x>135</x>
		<y>3</y>
		<w>25</w>
		<h>80</h>
		<binding>
			<command>property-adjust</command>
			<property>controls/engines/engine/mixture-lever</property>
			<step>0.03</step>
			<min>0</min>
			<max>1.0</max>
			<wrap>false</wrap>
		</binding>
	</action>
	<action>
		<name>parking brake</name>
		<button>0</button>
		<x>-250</x>
		<y>25</y>
		<w>30</w>
		<h>60</h>
		<binding>
			<command>property-toggle</command>
			<property>/controls/gear/brake-parking</property>
		</binding>
	</action>
	<action>
		<name>Primer</name>
		<button>0</button>
		<x>-250</x>
		<y>-50</y>
		<w>30</w>
		<h>60</h>
		<binding>
			<command>nasal</command>
			<script>c150.pumpPrimer();</script>
		</binding>
	</action>
</actions>
</PropertyList>
