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

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

<!-- A3XX Aircraft Config Dialog -->


<PropertyList>

	<name>aircraft-config-update</name>
	<layout>vbox</layout>
	<color>
		<red>0.5</red>
		<green>0</green>
		<blue>0</blue>
		<alpha>1</alpha>
	</color>

	<group>
		<layout>hbox</layout>
		<text>
			<halign>left</halign>
			<label>Out of Date!</label>
		</text>
	</group>
	
	<hrule/>
	
	<group>
		<layout>vbox</layout>
		
		<text>
			<halign>center</halign>
			<label>Attention: Your IDG-A32X is out of date! This means you are missing out on bugfixes, and new features!</label>
		</text>
		<text>
			<halign>center</halign>
			<label>You can continue for now, but it is highly recommended to download the latest version by the button below.</label>
		</text>
		<text>
			<halign>center</halign>
			<label>You will need to restart FlightGear, and install the latest .zip file.</label>
		</text>
		<text>
			<halign>center</halign>
			<label>GIT users: Please press Remind Me Later, and run a "git pull" command. (or pull using GIT GUI)</label>
		</text>
	</group>
	
	<hrule/>

	<group>
		<layout>hbox</layout>
		
		<button>
			<color>
				<red>0</red>
				<green>0.5</green>
				<blue>0</blue>
				<alpha>1</alpha>
			</color>
			<halign>center</halign>
			<legend>Download Update</legend>
			<pref-width>220</pref-width>
			<binding>
				<command>open-browser</command>
				<path>https://www.github.com/it0uchpods/IDG-A32X/archive/master.zip</path>
			</binding>
			<binding>
				<command>exit</command>
			</binding>
			<binding>
				<command>dialog-close</command>
			</binding>
		</button>
		<button>
			<color>
				<red>0.7</red>
				<green>0</green>
				<blue>0</blue>
				<alpha>1</alpha>
			</color>
			<halign>center</halign>
			<legend>Remind Me Later</legend>
			<pref-width>220</pref-width>
			<binding>
				<command>nasal</command>
				<script>
				if (getprop("/systems/acconfig/mismatch-code") == "0x000") {
					acconfig.welcome_dlg.open();
				} else {
					acconfig.error_mismatch.open();
				}
				</script>
			</binding>
			<binding>
				<command>dialog-close</command>
			</binding>
		</button>
	</group>
	
</PropertyList>