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

<PropertyList>

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

	<text>
		<label>A320 Light Controller</label>
	</text>

	<hrule />

	<group>
		<layout>vbox</layout>

		<text>
			<label>Landing lights</label>
		</text>

		<group>
			<layout>hbox</layout>

			<checkbox>
				<label>Left</label>
				<property>controls/lighting/landing-lights[0]</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>

			<checkbox>
				<label>Nosegear</label>
				<property>controls/lighting/landing-lights[1]</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>

			<checkbox>
				<label>Right</label>
				<property>controls/lighting/landing-lights[2]</property>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<live>true</live>
			</checkbox>
		</group>

		<hrule/>

		<text>
			<label>Navigation/logo lights</label>
		</text>

		<group>
			<layout>hbox</layout>

			<button>
				<legend>Off</legend>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>controls/lighting/nav-lights-switch</property>
					<value>0</value>
				</binding>
			</button>
			<button>
				<legend>1</legend>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>controls/lighting/nav-lights-switch</property>
					<value>1</value>
				</binding>
			</button>
			<button>
				<legend>2</legend>
				<binding>
					<command>dialog-apply</command>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>controls/lighting/nav-lights-switch</property>
					<value>2</value>
				</binding>
			</button>
		</group>

		<checkbox>
			<label>Strobe lights</label>
			<property>controls/lighting/strobe</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>

<!--		<checkbox>
			<label>Wing lights</label>
			<property>controls/lighting/wing-lights</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>-->

		<checkbox>
			<label>Beacon</label>
			<property>controls/lighting/beacon</property>
			<binding>
				<command>dialog-apply</command>
			</binding>
			<live>true</live>
		</checkbox>

		<text>
			<label>Cockpit dome lighting</label>
		</text>

		<slider>
			<width>200</width>
			<property>controls/lighting/dome-norm</property>
			<step>0.5</step>
			<min>0</min>
			<max>1</max>
			<binding>
				<command>dialog-apply</command>
			</binding>
		</slider>

		<text>
			<label>Cabin lighting</label>
		</text>

		<slider>
			<width>200</width>
			<property>controls/lighting/interior</property>
			<step>0.05</step>
			<min>0</min>
			<max>1</max>
			<binding>
				<command>dialog-apply</command>
			</binding>
		</slider>

		<text>
			<label>Overhead panel lighting</label>
		</text>

		<slider>
			<width>200</width>
			<property>controls/lighting/overhead-panel-norm</property>
			<step>0.05</step>
			<min>0</min>
			<max>1</max>
			<binding>
				<command>dialog-apply</command>
			</binding>
		</slider>

		<text>
			<label>Pedestal/main panel lighting</label>
		</text>

		<slider>
			<width>200</width>
			<property>controls/lighting/main-panel-pedestal-norm</property>
			<step>0.05</step>
			<min>0</min>
			<max>1</max>
			<binding>
				<command>dialog-apply</command>
			</binding>
		</slider>

		<checkbox>
			<label>3D light cones</label>
			<property>controls/lighting/cones</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>