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

<objects>

	<script directory="gui/common/"/>
	<script file="gui/autociv_readme/autociv_readme.js"/>

	<!-- Cancel handler for escape key -->
	<object name="cancelHandler" hotkey="cancel">
		<action on="Press"> Engine.GetGUIObjectByName("cancelHandler").onPress() </action>
	</object>

	<!-- Add a translucent black background that closes on click -->
	<object type="button"
		sprite="color: 0 0 0 0">
		<action on="MouseLeftPress"> Engine.GetGUIObjectByName("buttonClose").onPress() </action>
	</object>

	<object type="image"
		style="ModernDialog"
		size="50%-400 0%+50 50%+400 100%-50">
		<!-- Main title -->
		<object type="text"
			name="title"
			style="ModernLabelText"
			size="50%-128 -18 50%+128 14" />
		<!-- Main text -->
		<object type="text"
			name="text"
			style="ModernText"
			sprite="color:0 0 0 30"
			buffer_zone="20"
			size="0%+20 0%+20 100%-20 100%-20-50"
			scrollbar="true"
			scrollbar_style="ModernScrollBar"
			font="sans-16" />
		<object size="0%+20 100%-15-17-25 100%-15 100%-25">
			<!-- Webpage button -->
			<object name="buttonWebpage"
				type="button"
				style="ModernButtonRed"
				size="50%-130-20 0% 50%-20 100%" />
			<!-- Close button -->
			<object name="buttonClose"
				type="button"
				style="ModernButtonRed"
				size="50%+20 0% 50%+130+20 100%">
				<action on="Press"> Engine.GetGUIObjectByName("buttonClose").onPress() </action>
			</object>
		</object>
	</object>
</objects>
