<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

	<name>failures-dlg</name>
	<layout>vbox</layout>

	<group>
		<layout>hbox</layout>

		<empty>
			<stretch>1</stretch>
		</empty>

		<text>
			<label>Failures</label>
		</text>

		<empty>
			<stretch>1</stretch>
		</empty>

		<button>
			<pref-width>16</pref-width>
			<pref-height>16</pref-height>
			<legend></legend>
			<keynum>27</keynum>
			<border>2</border>
			<binding>
				<command>dialog-close</command>
			</binding>
		</button>
	</group>

	<hrule/>

	<text>
		<label>Engine fire</label>
	</text>

	<group>
		<layout>hbox</layout>

		<checkbox>
			<label>Engine 1</label>
			<property>engines/engine[0]/on-fire</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>

		<checkbox>
			<label>Engine 2</label>
			<property>engines/engine[1]/on-fire</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>
	</group>

	<hrule />

	<text>
		<label>Systems</label>
	</text>

	<text>
		<halign>left</halign>
		<label>Uncheck a system to fail it.</label>
	</text>

	<group>
		<halign>left</halign>
		<layout>vbox</layout>

		<checkbox>
			<halign>left</halign>
			<label>Autopilot</label>
			<property>autopilot/serviceable</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>

		<checkbox>
			<halign>left</halign>
			<label>Yaw damper</label>
			<property>autopilot/yaw-damper-serviceable</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>

		<checkbox>
			<halign>left</halign>
			<label>Blue hydraulics system</label>
			<property>systems/hydraulics/blue/serviceable</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>

		<checkbox>
			<halign>left</halign>
			<label>Green hydraulics system</label>
			<property>systems/hydraulics/green/serviceable</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>
	</group>

	<hrule/>

	<group>
		<layout>vbox</layout>

		<button>
			<legend>Close</legend>
			<default>true</default>
			<key>Esc</key>
			<padding>10</padding>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<binding>
				<command>dialog-close</command>
			</binding>
		</button>
	</group>

</PropertyList>
