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

<!--
==========================================
- POST-GAME SUMMARY SCREEN -
==========================================
-->

<objects>
	<script file="gui/common/functions_civinfo.js"/>
	<script file="gui/summary/summary.js"/>
	<object type="image" sprite="bkFillBlack">

		<object type="image"
			style="wheatWindow"
			size="25 35 100%-25 100%-25"
		>
			<object type="button" style="wheatWindowTitleBar">
				Summary
			</object>
			
			<object type="image" sprite="bgInfoHeading" size="0 10 100% 40">				
				<object 
					name="summaryText"
					type="text"
					size="50 0 100%-50 30"
					font="serif-bold-18"
					textcolor="255 255 255"
					text_align="center"
				/>
			
				<object 
					name="timeElapsed"
					type="text"
					size="100%-200 0 100%-10 30"
					font="serif-16"
					textcolor="255 255 255"
					text_align="center"
				/>
 			</object>
			
			
			<object name="unitsBuildingsPanelButton" type="button" sprite="bgInfoBox" text_align="center" size="10 75 160 101">
				<action on="Press">selectPanel(0);</action>
				Units/buildings
			</object>
			<object name="conquestPanelButton" type="button" sprite="bgInfoHeading" text_align="center" size="160 75 310 101">
				<action on="Press">selectPanel(1);</action>
				Conquest
			</object>
			<object name="resourcesPanelButton" type="button" sprite="bgInfoHeading" text_align="center" size="310 75 460 101">
				<action on="Press">selectPanel(2);</action>
				Resources
			</object>
			<object name="unitsBuildingsPanel" type="image" sprite="bgInfoBox" size="10 100 100%-10 100%-50">
				
				<object size="0 0 100% 100%-50">
					<object name="playerName0Heading" type="text" text_align="left" font="serif-bold-14"	>
						Player name
					</object>
					<object name="unitsTrainedHeading" type="text" text_align="center" font="serif-bold-14" >
						Units&#10;trained
					</object>
					<object name="unitsLostHeading" type="text" text_align="center" font="serif-bold-14" >
						Units&#10;lost
					</object>
					<object name="enemyUnitsKilledHeading" type="text" text_align="center" font="serif-bold-14" >
						Enemy units&#10;killed
					</object>
					<object name="buildingsConstructedHeading" type="text" text_align="center" font="serif-bold-14" >
						Buildings&#10;constructed
					</object>
					<object name="buildingsLostHeading" type="text" text_align="center" font="serif-bold-14" >
						Buildings&#10;lost
					</object>
					<object name="enemyBuildingsDestroyedHeading" type="text" text_align="center" font="serif-bold-14" >
						Enemy&#10;buildings&#10;destroyed
					</object>
					
				</object>	
				
				<object size="0 65 100% 100%-50">
					<repeat count="8">
						<object type="image" name="playerBox0[n]" size="10 0 10 30" hidden="true">
							<object name="playerColourBox0[n]"     		type="image" size="10 4 30 24" />
							<object name="playerName0[n]"          		type="text"  text_align="left"  size="40 2 208 100%" />
							<object name="civIcon0[n]" 					type="image" size="208 0 240 32"/>
							<object name="unitsTrained[n]"         		type="text"  text_align="center" />
							<object name="unitsLost[n]"            		type="text"  text_align="center" />
							<object name="enemyUnitsKilled[n]"     		type="text"  text_align="center" />
							<object name="buildingsConstructed[n]" 		type="text"  text_align="center" />
							<object name="buildingsLost[n]"        		type="text"  text_align="center" />
							<object name="enemyBuildingsDestroyed[n]"   type="text"  text_align="center" />
						</object>
					</repeat>
				</object>
			
			</object>
			<object name="conquestPanel" type="image" sprite="bgInfoBox" size="10 100 100%-10 100%-50" hidden="true">
				
				<object size="0 0 100% 100%-50">
					<object name="playerName1Heading" type="text" text_align="left" font="serif-bold-14"	>
						Player name
					</object>
					<object name="civCentresBuiltHeading" type="text" text_align="center" font="serif-bold-14" >
						Civ centres&#10;built
					</object>
					<object name="enemyCivCentresDestroyedHeading" type="text" text_align="center" font="serif-bold-14" >
						Enemy&#10;civ centres&#10;destroyed
					</object>
					<object name="mapExplorationHeading" type="text" text_align="center" font="serif-bold-14" >
						Map&#10;exploration
					</object>
				</object>	
				
				<object size="0 65 100% 100%-50">
					<repeat count="8">
						<object type="image" name="playerBox1[n]" size="10 0 10 30" hidden="true">
							<object name="playerColourBox1[n]"     		type="image" size="10 4 30 24" />
							<object name="playerName1[n]"          		type="text"  text_align="left"  size="40 2 208 100%" />
							<object name="civIcon1[n]" 					type="image" size="208 0 240 32"/>
							<object name="civCentresBuilt[n]"      		type="text"  text_align="center" />
							<object name="enemyCivCentresDestroyed[n]" 	type="text"  text_align="center" />
							<object name="mapExploration[n]" 			type="text"  text_align="center" />
						</object>
					</repeat>
				</object>
			
			</object>
			<object name="resourcesPanel" type="image" sprite="bgInfoBox" size="10 100 100%-10 100%-50" hidden="true">
			
				<object size="0 0 100% 100%-50">
					<object name="playerName2Heading" type="text" text_align="left" font="serif-bold-14" >
						Player name
					</object>
					<object name="foodGatheredHeading" type="text" text_align="center" font="serif-bold-14" >
						Food&#10;gathered
					</object>
					<object name="vegetarianRatioHeading" type="text" text_align="center" font="serif-bold-14" >
						Vegetarian&#10;ratio
					</object>
					<object name="woodGatheredHeading" type="text" text_align="center" font="serif-bold-14" >
						Wood&#10;gathered
					</object>
					<object name="metalGatheredHeading" type="text" text_align="center" font="serif-bold-14" >
						Metal&#10;gathered
					</object>
					<object name="stoneGatheredHeading" type="text" text_align="center" font="serif-bold-14" >
						Stone&#10;gathered
					</object>
					<object name="treasuresCollectedHeading" type="text" text_align="center" font="serif-bold-14" >
						Treasures&#10;collected
					</object>
				</object>	
				
				<object size="0 65 100% 100%-50">
					<repeat count="8">
						<object type="image" name="playerBox2[n]" size="10 0 10 30" hidden="true">
							<object name="playerColourBox2[n]" 		type="image" size="10 4 30 24" />
							<object name="playerName2[n]"      		type="text"  text_align="left"  size="40 2 208 100%" />
							<object name="civIcon2[n]" 		   		type="image" size="208 0 240 32"/>
							<object name="foodGathered[n]"     		type="text"  text_align="center" />
							<object name="vegetarianRatio[n]"  		type="text"  text_align="center" />
							<object name="woodGathered[n]"     		type="text"  text_align="center" />
							<object name="metalGathered[n]"    		type="text"  text_align="center" />
							<object name="stoneGathered[n]"    		type="text"  text_align="center" />
							<object name="treasuresCollected[n]"    type="text"  text_align="center" />
						</object>
					</repeat>
				</object>
			
			</object>
			
			<object type="button" style="wheatButton" size="100%-150 100%-40 100% 100%">
				Main menu
				<action on="Press"><![CDATA[
					Engine.SwitchGuiPage("page_pregame.xml");
				]]></action>
			</object>

		</object>
	</object>
</objects>
