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

<objects>

	<script file="gui/common/functions_global_object.js" />
	<script file="gui/common/functions_utility_loadsave.js" />
	<script file="gui/savedgames/load.js" />

	<!-- Add a translucent black background to fade out the menu page -->
	<object type="image" z="0" sprite="BackgroundTranslucent"/>

	<object type="image" style="ModernDialog" size="50%-300 50%-200 50%+300 50%+200">

		<object type="text" style="TitleText" size="50%-128 -18 50%+128 14">
			<translatableAttribute id="caption">Load Game</translatableAttribute>
		</object>

		<object name="gameSelection"
			style="ModernList"
			type="list"
			size="24 24 100%-24 100%-100">
		</object>

		<object type="button" size="0%+25 100%-60 33%+10 100%-32" style="StoneButton" hotkey="cancel">
			<translatableAttribute id="caption">Cancel</translatableAttribute>
			<action on="Press">Engine.PopGuiPage();</action>
		</object>

		<object name="deleteGameButton" type="button" size="33%+20 100%-60 66%-15 100%-32" style="StoneButton" hotkey="session.savedgames.delete">
			<translatableAttribute id="caption">Delete</translatableAttribute>
			<action on="Press">
				if (!this.enabled)
					return;
				if (Engine.HotkeyIsPressed("session.savedgames.noConfirmation"))
					deleteGameWithoutConfirmation();
				else
					deleteGame();
			</action>
		</object>

		<object name="loadGameButton" type="button" style="StoneButton" size="66%-5 100%-60 100%-25 100%-32">
			<translatableAttribute id="caption">Load</translatableAttribute>
			<action on="Press">loadGame();</action>
		</object>

	</object>

	</objects>
