<Windows>

	<!-- Window templates -->
	<WindowTemplateDefinition Name="Default">
		<Size X="544" Y="384" /> <!-- X = 640 - 2 * 48, Y = 480 - 2 * 48 -->
		<LineSpace Value="3" />
		<Alignment Value="Vertical" />
	</WindowTemplateDefinition>
	
	<WindowTemplateDefinition Name="Component">
		<Size X="176" Y="384" />
		<LineSpace Value="3" />
		<Alignment Value="Vertical" />
	</WindowTemplateDefinition>
	
	<WindowTemplateDefinition Name="SubWindow">
		<Position X="190" Y="20" />
		<Size X="356" Y="364" />	
		<LineSpace Value="3" />
		<Alignment Value="Vertical" />
	</WindowTemplateDefinition>
	
	<WindowTemplateDefinition Name="FFDesign">
		<Size X="544" Y="384" />
		<LineSpace Value="3" />
		<Alignment Value="Vertical" />
	</WindowTemplateDefinition>

	<WindowTemplateDefinition Name="Dialog">
		<Position X="100" Y="120" />	
		<Size X="300" Y="150" />
		<LineSpace Value="3" />
		<Alignment Value="Vertical" />
	</WindowTemplateDefinition>

	<!-- Link menus -->

		<Window Name="MissionsMenu">
			<WindowTemplate Name="SubWindow" />
			<GuiElement Name="BorderSmall">
				<GuiElement Name="CurrentMissionName" />
			</GuiElement>
			<GuiElement Name="GraphicCurrentMission" />
			<GuiElement Name="BorderLarge">
				<GuiElement Name="MissionObjective1" />
				<GuiElement Name="MissionObjective2" />
				<GuiElement Name="MissionObjective3" />
				<GuiElement Name="MissionObjective4" />	
				<GuiElement Name="MissionReward" />
			</GuiElement>
			<GuiElement Name="MissionList" />
		</Window>

		<!-- Ingame -->
		<Window Name="PauseMenu">
			<WindowTemplate Name="FFDesign" />
			<GuiElement Name="Header" />	
			<GuiElement Name="Continue_CloseWindow"/>	
			<GuiElement Name="OptionsMenu"/>
			<GuiElement Name="RestartMission"/>
			<GuiElement Name="AbortMission"/>
			<GuiElement Name="CheckPoint"/>
		</Window>
		
		<Window Name="CheckPoint">
			<WindowTemplate Name="FFDesign" />	
			<GuiElement Name="Header" />	
			<GuiElement Name="CheckPointLoad"/>
			<GuiElement Name="CheckPointSave"/>
		</Window>
		
		<Window Name="MissionFailedMenu">
			<WindowTemplate Name="FFDesign" />				
			<GuiElement Name="Header" />		
			<GuiElement Name="Resurrect" />		
			<GuiElement Name="RestartMission" />
			<GuiElement Name="CheckPointLoad" />
			<GuiElement Name="AbortMission" />
			<DontPopOnBack/>
		</Window>
		
		<Window Name="MissionCompleted">
			<WindowTemplate Name="FFDesign" />				
			<GuiElement Name="Header" />
			<GuiElement Name="CurrentCash1" />
			<GuiElement Name="MissionReward" />
			<GuiElement Name="Continue" />
		</Window>
	
		<!-- Frontend -->
		<Window Name="MainMenu">
			<Background Name="BackgroundDefault" />
			<GuiElement Name="Header" />
			<GuiElement Name="MissionSetupMenu" />
			<GuiElement Name="OptionsMenu" />
			<GuiElement Name="LoadSaveMenu" />
			<GuiElement Name="CreditsMenu" />
			<GuiElement Name="DebugMenu" />		
			<GuiElement Name="Legend" />
			<DontPopOnBack/>
		</Window>
		
		<Window Name="LoadSaveMenu">
			<Background Name="BackgroundDefault" />
			<GuiElement Name="Header" />
			<GuiElement Name="LoadProfile" />
			<GuiElement Name="SaveProfile" />	
			<Platform PC="True">
				<GuiElement Name="Back" />
			</Platform>
			<GuiElement Name="Legend" />
		</Window>

		<Window Name="MissionSetupMenu" Type="Component">
			<WindowTemplate Name="Component" />
			<Background Name="BackgroundDefault" />
			<Header>
				<GuiElement Name="Header" />
				<GuiElement Name="CurrentCash1" />
			</Header>
			<Browser>
				<Offset X="0" Y="20" />
				<GuiElement Name="MissionsMenu"/>
				<GuiElement Name="CrewMenu" />
				<GuiElement Name="EquipmentMenu" />
				<GuiElement Name="StartMenu" />
				<Platform PC="True">
					<GuiElement Name="Back_PC" />
				</Platform>
				<GuiElement Name="Legend" />	
			</Browser>
		</Window>
		
		<Window Name="EquipmentMenu" Type="OneControllerWindow">
			<WindowTemplate Name="SubWindow" />	
			<GuiElement Name="TwoHandedWeaponMenu" />	
			<GuiElement Name="OneHandedWeaponMenu" />			
			<GuiElement Name="GrenadeMenu" />
			<GuiElement Name="SpecialEquipmentMenu" />			
		</Window>
		
		<Window Name="DetailedEquipmentMenu" Type="OneControllerWindow">
			<WindowTemplate Name="SubWindow" />	
			<GuiElement Name="BorderSmall">
				<GuiElement Name="CurrentEquipmentName1" />
			</GuiElement>
			<GuiElement Name="GraphicCurrentEquipment" />	
			<GuiElement Name="BorderLarge">
				<GuiElement Name="CurrentEquipmentInfo1" />
				<GuiElement Name="CurrentEquipmentInfo2" />
				<GuiElement Name="CurrentEquipmentInfo3" />
				<GuiElement Name="CurrentEquipmentInfo4" />
			</GuiElement>				
			<GuiElement Name="CustomiseMenu" />	
			<GuiElement Name="ReplaceEquipmentMenu" />
			<Platform PC="True">
				<GuiElement Name="Back_2" />
			</Platform>
		</Window>
		
		<Window Name="ReplaceEquipmentMenu" Type="OneControllerWindow">
			<WindowTemplate Name="SubWindow" />	
			<GuiElement Name="BorderSmall">
				<GuiElement Name="CurrentEquipmentName1" />
			</GuiElement>
			<GuiElement Name="GraphicCurrentEquipment" />	
			<GuiElement Name="BorderLarge">
				<GuiElement Name="CurrentEquipmentInfo1" />
				<GuiElement Name="CurrentEquipmentInfo2" />
				<GuiElement Name="CurrentEquipmentInfo3" />
				<GuiElement Name="CurrentEquipmentInfo4" />
				<GuiElement Name="CurrentEquipmentPrice1" />
			</GuiElement>				
			<GuiElement Name="EquipmentList" />	
			<Platform PC="True">
				<GuiElement Name="Back_2" />
			</Platform>
		</Window>

		<Window Name="CustomiseMenu" Type="OneControllerWindow">
			<WindowTemplate Name="SubWindow" />		
			<GuiElement Name="BorderSmall">
				<GuiElement Name="CurrentEquipmentName1" />
			</GuiElement>
			<GuiElement Name="GraphicCurrentEquipment" />	
			<GuiElement Name="Back_2" />
		</Window>
		
		<Window Name="CrewMenu">
			<WindowTemplate Name="SubWindow" />
			<GuiElement Name="CurrentCrewMember1" />
			<GuiElement Name="CurrentCrewMember2" />
			<GuiElement Name="CurrentCrewMember3" />
			<GuiElement Name="CurrentCrewMember4" />
		</Window>

		<Window Name="DetailedMercMenu">
			<WindowTemplate Name="SubWindow" />	
			<GuiElement Name="GraphicCurrentMerc" />
			<GuiElement Name="BorderLarge">
				<GuiElement Name="CurrentMercDescription" />
			</GuiElement>				
			<GuiElement Name="ReplaceMercMenu" />
			<Platform PC="True">
				<GuiElement Name="Back_2" />
			</Platform>
		</Window>

		<Window Name="ReplaceMercMenu">
			<WindowTemplate Name="SubWindow" />	
			<GuiElement Name="GraphicCurrentMerc" />	
			<GuiElement Name="BorderLarge">
				<GuiElement Name="CurrentMercDescription" />
			</GuiElement>				
			<GuiElement Name="MercsList" />
			<Platform PC="True">
				<GuiElement Name="Back_2" />
			</Platform>
		</Window>
		
		<Window Name="HireMercMenu">
			<WindowTemplate Name="SubWindow" />	
			<GuiElement Name="GraphicCurrentMerc" />	
			<GuiElement Name="BorderLarge">
				<GuiElement Name="CurrentMercDescription" />
				<GuiElement Name="CurrentMercPrice" />
			</GuiElement>				
			<GuiElement Name="Hire_OpenMercHireDialog" />
			<Platform PC="True">
				<GuiElement Name="Back_2" />
			</Platform>
		</Window>

		<Window Name="StartMenu">
			<WindowTemplate Name="SubWindow" />
			<GuiElement Name="BorderSmall">
				<GuiElement Name="CurrentMissionName" />
			</GuiElement>
			<GuiElement Name="GraphicCurrentMission" />
			<GuiElement Name="BorderLarge">
				<GuiElement Name="MissionObjective1" />
				<GuiElement Name="MissionObjective2" />
				<GuiElement Name="MissionObjective3" />
				<GuiElement Name="MissionObjective4" />	
				<GuiElement Name="MissionReward" />
			</GuiElement>
			<GuiElement Name="Easy" />
			<GuiElement Name="Medium" />	
			<GuiElement Name="Hard" />
		</Window>
		
		<Window Name="PlayerControlsMenu">
			<WindowTemplate Name="SubWindow" />
			<GuiElement Name="ControlsMenu_P1"/>
			<GuiElement Name="ControlsMenu_P2">
		</Window>
		
		<Window Name="PlayerEquipMenu">
			<WindowTemplate Name="SubWindow" />
			<GuiElement Name="EquipmentMenu_P1"/>
			<GuiElement Name="EquipmentMenu_P2">
		</Window>

		<!-- General -->
		<Window Name="OptionsMenu" Type="Component">
			<WindowTemplate Name="Component" />
			<Background Name="BackgroundDefault" />
			<Header>
				<GuiElement Name="Header" />
			</Header>
			<Browser>
				<Offset X="0" Y="20" />
				<GuiElement Name="SoundMenu" />
				<GuiElement Name="PlayerControlsMenu" />
				<GuiElement Name="CoopMenu" />
				<GuiElement Name="CheckPointMenu" />
				<Platform PC="True">
					<GuiElement Name="Back" />
				</Platform>
				<GuiElement Name="Legend" />	
			</Browser>
		</Window>
		
		<!-- Credits -->
		<Window Name="CreditsMenu">
			<WindowTemplate Name="FFDesign" />
			<Background Name="BackgroundDefault" />		
			<GuiElement Name="Header" />	
			<GuiElement Name="Back" />
		</Window>

	<!-- Options Menus -->
	<Window Name="ControlsMenu" Type="OneControllerWindow">
		<WindowTemplate Name="SubWindow" />
		<GuiElement Name="InvertVertical" />
		<GuiElement Name="InvertHorizontal" />
		<GuiElement Name="ControlMode" />	
	</Window>
	
	<Window Name="CoopMenu">
		<WindowTemplate Name="SubWindow" />
		<GuiElement Name="EnableCoop" />
	</Window>
	
	<Window Name="CheckPointMenu">
		<WindowTemplate Name="SubWindow" />
		<GuiElement Name="AutoRestoreCheckPoint" />
	</Window>
	
	<Window Name="SoundMenu">
		<WindowTemplate Name="SubWindow" />
		<GuiElement Name="SfxVolume" />		
		<GuiElement Name="MusicVolume" />
		<GuiElement Name="SpeechVolume" />
	</Window>
		
	<!-- Misc Menus -->
	
	<Window Name="LevelMenu">
		<WindowTemplate Name="FFDesign" />
		<GuiElement Name="Header" />		
		<GuiElement Name="Back" />
	</Window>
	
	<Window Name="DebugMenu">
		<WindowTemplate Name="FFDesign" />				
		<GuiElement Name="Header" />
		<GuiElement Name="DebugOptions"/>
		<GuiElement Name="Back" />
	</Window>
	
	<Window Name="BuyWeaponConfirmation" Type="Dialog">
		<WindowTemplate Name="Dialog" />
		<DialogBorder>
			<GuiElement Name="DialogBorder" />
		</DialogBorder>
		<GuiElement Name="BuyItem" />
		<GuiElement Name="CurrentEquipmentName2" />	
		<GuiElement Name="CurrentEquipmentPrice2" />
		<GuiElement Name="CurrentCash2" />
		<Options>
			<GuiElement Name="BuyWeapon" />
			<GuiElement Name="No" />			
		</Options>
	</Window>
	
	<Window Name="NotEnoughMoneyForWeapon" Type="Dialog">
		<WindowTemplate Name="Dialog" />
		<DialogBorder>
			<GuiElement Name="DialogBorder" />
		</DialogBorder>
		<GuiElement Name="NotEnoughMoneyWeapon" />
		<GuiElement Name="CurrentEquipmentName2" />	
		<GuiElement Name="CurrentEquipmentPrice2" />
		<GuiElement Name="CurrentCash2" />
		<Options>
			<GuiElement Name="Back" />
		</Options>
	</Window>
	
	<Window Name="HireMercConfirmation" Type="Dialog">
		<WindowTemplate Name="Dialog" />
		<DialogBorder>
			<GuiElement Name="DialogBorder" />
		</DialogBorder>
		<GuiElement Name="HireMerc" />
		<GuiElement Name="CurrentMercNameDialog" />
		<GuiElement Name="CurrentMercPriceDialog" />
		<GuiElement Name="CurrentCash2" />
		<Options>
			<GuiElement Name="Hire" />
			<GuiElement Name="Back" />
		</Options>
	</Window>

	<Window Name="NotEnoughMoneyForMerc" Type="Dialog">
		<WindowTemplate Name="Dialog" />
		<DialogBorder>
			<GuiElement Name="DialogBorder" />
		</DialogBorder>
		<GuiElement Name="NotEnoughMoneyMerc" />
		<GuiElement Name="CurrentMercNameDialog" />
		<GuiElement Name="CurrentMercPriceDialog" />
		<GuiElement Name="CurrentCash2" />
		<Options>
			<GuiElement Name="Back" />
		</Options>
	</Window>
	
</Windows>