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

<!--
#########################################
# Copyright (c) it0uchpods Design Group #
#########################################
-->

<!-- A3XX Aircraft Config Dialog -->


<PropertyList>

	<name>aircraft-config-fail</name>
	<layout>vbox</layout>

    <group>
        <layout>hbox</layout>
        <text>
            <halign>left</halign>
            <label>System Failures</label>
        </text>
        <button>
            <halign>right</halign>
            <pref-width>20</pref-width>
            <pref-height>20</pref-height>
            <legend>X</legend>
            <key>Esc</key>
            <binding>
                <command>dialog-close</command>
            </binding>
        </button>
    </group>
	
    <hrule/>
	
	<text>
		<halign>left</halign>
		<label>Failed when Checked</label>
	</text>
	
	<group>
		<layout>hbox</layout>
	
		<group>
			<layout>vbox</layout>
			
			<group>
				<layout>hbox</layout>

				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
				<text>
					<label>FCTL SYS Fail</label>
				</text>
				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
			</group>
			
			<checkbox>
				<label>ELAC1</label>
				<halign>left</halign>
				<property>/systems/failures/elac1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>ELAC2</label>
				<halign>left</halign>
				<property>/systems/failures/elac2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>SEC1</label>
				<halign>left</halign>
				<property>/systems/failures/sec1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>SEC2</label>
				<halign>left</halign>
				<property>/systems/failures/sec2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>SEC3</label>
				<halign>left</halign>
				<property>/systems/failures/sec3</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>FAC2</label>
				<halign>left</halign>
				<property>/systems/failures/fac2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>FAC1</label>
				<halign>left</halign>
				<property>/systems/failures/fac1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<group>
				<layout>hbox</layout>

				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
				<text>
					<label>PNEU SYS Fail</label>
				</text>
				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
			</group>
			
			<checkbox>
				<label>Bleed APU</label>
				<halign>left</halign>
				<property>/systems/failures/bleed-apu</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Bleed EXT</label>
				<halign>left</halign>
				<property>/systems/failures/bleed-ext</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Bleed ENG 1</label>
				<halign>left</halign>
				<property>/systems/failures/bleed-eng1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Bleed ENG 2</label>
				<halign>left</halign>
				<property>/systems/failures/bleed-eng2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Pack 1</label>
				<halign>left</halign>
				<property>/systems/failures/pack1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Pack 2</label>
				<halign>left</halign>
				<property>/systems/failures/pack2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
		</group>
			
		<vrule/>
			
		<group>
			<layout>vbox</layout>
			
			<group>
				<layout>hbox</layout>

				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
				<text>
					<label>HYD SYS Fail</label>
				</text>
				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
			</group>
			
			<checkbox>
				<label>Blue HYD Leak</label>
				<halign>left</halign>
				<property>/systems/failures/hyd-blue</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Blue ELEC Pump</label>
				<halign>left</halign>
				<property>/systems/failures/pump-blue</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Green HYD Leak</label>
				<halign>left</halign>
				<property>/systems/failures/hyd-green</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Green ENG 1 Pump</label>
				<halign>left</halign>
				<property>/systems/failures/pump-green</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Yellow HYD Leak</label>
				<halign>left</halign>
				<property>/systems/failures/hyd-yellow</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Yellow ENG 2 Pump</label>
				<halign>left</halign>
				<property>/systems/failures/pump-yellow-eng</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Yellow ELEC Pump</label>
				<halign>left</halign>
				<property>/systems/failures/pump-yellow-elec</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<group>
				<layout>hbox</layout>

				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
				<text>
					<label>ELEC SYS Fail</label>
				</text>
				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
			</group>
			
			<checkbox>
				<label>AC ESS Bus</label>
				<halign>left</halign>
				<property>/systems/failures/elec-ac-ess</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>APU GEN</label>
				<halign>left</halign>
				<property>/systems/failures/elec-genapu</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>BATTERY 1</label>
				<halign>left</halign>
				<property>/systems/failures/elec-batt1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>BATTERY 2</label>
				<halign>left</halign>
				<property>/systems/failures/elec-batt2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>ENG 1 GEN</label>
				<halign>left</halign>
				<property>/systems/failures/elec-gen1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>ENG 2 GEN</label>
				<halign>left</halign>
				<property>/systems/failures/elec-gen2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Galley Bus</label>
				<halign>left</halign>
				<property>/systems/failures/elec-galley</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
				
		</group>
		
		<vrule/>
			
		<group>
			<layout>vbox</layout>
			
			<group>
				<layout>hbox</layout>

				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
				<text>
					<label>FUEL SYS Fail</label>
				</text>
				<hrule>
					<stretch type="bool">true</stretch>
				</hrule>
			</group>
			
			<checkbox>
				<label>Tank L Pump 1</label>
				<halign>left</halign>
				<property>/systems/failures/tank2pump1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Tank L Pump 2</label>
				<halign>left</halign>
				<property>/systems/failures/tank2pump2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Tank C Pump 1</label>
				<halign>left</halign>
				<property>/systems/failures/tank3pump1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Tank C Pump 2</label>
				<halign>left</halign>
				<property>/systems/failures/tank3pump2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Tank R Pump 1</label>
				<halign>left</halign>
				<property>/systems/failures/tank4pump1</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
			
			<checkbox>
				<label>Tank R Pump 2</label>
				<halign>left</halign>
				<property>/systems/failures/tank4pump2</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
		
			<hrule/>
			
			<button>
				<legend>Reset All</legend>
				<halign>center</halign>
				<padding>5</padding>
				<pref-width>120</pref-width>
				<binding>
					<command>nasal</command>
					<script>
					acconfig.failReset();
					</script>
				</binding>
			</button>
				
		</group>

	</group>
	
</PropertyList>