<?xml version="1.0" encoding="utf-8"?>
<!-- Unit details for Single Unit -->
<object size="50%-112 0 50%+112 100%" name="detailsAreaSingle">
	
	<!-- Stats Bars -->
	<object size= "2 0 100%-2 98" type="image" tooltip_style="sessionToolTip">
	
	<object size="0 8 100% 60" type="image" sprite="edgedPanelShader">
		<!-- Health bar -->
		<object size="88 0 100% 24" name="healthSection">
		<object size="0 0 100% 16" name="healthLabel" type="text" style="StatsTextLeft" ghost="true">
			<translatableAttribute id="tooltip">Health:</translatableAttribute>
		</object>
		<object size="0 0 100% 16" name="healthStats" type="text" style="StatsTextRight" ghost="true"/>
		<object size="1 16 100% 23" name="health" type="image" tooltip_style="sessionToolTip">
			<object type="image" sprite="barBorder" ghost="true" size="-1 -1 100%+1 100%+1"/>
			<object type="image" sprite="healthBackground" ghost="true"/>
			<object type="image" sprite="healthForeground" ghost="true" name="healthBar"/>
			<object type="image" sprite="statsBarShaderHorizontal" ghost="true"/>
		</object>
		</object>

		<!-- Capture bar -->
		<object size="88 28 100% 52" name="captureSection">
		<object size="0 0 100% 16" name="captureLabel" type="text" style="StatsTextLeft" ghost="true">
			<translatableAttribute id="tooltip">Capture points:</translatableAttribute>
		</object>
		<object size="0 0 100% 16" name="captureStats" type="text" style="StatsTextRight" ghost="true"/>
		<object size="1 16 100% 23" name="capture" type="image">
			<object type="image" sprite="barBorder" ghost="true" size="-1 -1 100%+1 100%+1"/>
			<repeat count="9">
				<object type="image" sprite="playerColorBackground" ghost="true" name="captureBar[n]" hidden="true"/>
			</repeat>
			<object type="image" sprite="statsBarShaderHorizontal" ghost="true"/>
		</object>
		</object>

		<!-- Resource bar -->
		<object size="88 28 100% 52" name="resourceSection">
		<object size="0 0 100% 16" name="resourceLabel" type="text" style="StatsTextLeft" ghost="true"/>
		<object size="0 0 100% 16" name="resourceStats" type="text" style="StatsTextRight" ghost="true"/>
		<object size="1 16 100% 23" name="resources" type="image">
			<object type="image" sprite="barBorder" ghost="true" size="-1 -1 100%+1 100%+1"/>
			<object type="image" sprite="resourceBackground" ghost="true"/>
			<object type="image" sprite="resourceForeground" ghost="true" name="resourceBar"/>
			<object type="image" sprite="statsBarShaderHorizontal" ghost="true"/>
		</object>
		</object>
	</object>
	
	<object size="0 60 100% 96" type="image" sprite="edgedPanelShader">
		<!-- Attack and Armor -->
		<object size="90 -2 126 34" name="attackAndArmorStats" type="image" sprite="stretched:session/icons/stances/defensive.png" tooltip_style="sessionToolTip">
			<translatableAttribute id="tooltip">Attack and Armor</translatableAttribute>
		</object>

		<!-- Resource carrying icon/counter -->
		<!-- Used also for number of gatherers/builders -->
		<object size="100%-98 -2 100%-28 34" type="text" name="resourceCarryingText" style="CarryingTextRight"/>
		<object size="100%-36 -2 100% 34" type="image" name="resourceCarryingIcon" tooltip_style="sessionToolTip"/>
	</object>
	
	<!-- Big unit icon -->
	<object size="-8 -8 88 88" type="image" name="iconBorder" sprite="iconBorder" tooltip_style="sessionToolTip">
		<object size="1 1 100%-1 100%-1" type="image" name="icon" ghost="true"/>
	
		<!-- Experience bar -->
		<object size="2 2 6 100%-2" type="image" name="experience" tooltip_style="sessionToolTip">
			<translatableAttribute id="tooltip">Experience</translatableAttribute>
			<object type="image" sprite="barBorder" ghost="true" size="-1 -1 100%+1 100%+1"/>
			<object type="image" sprite="experienceBackground" ghost="true"/>
			<object type="image" sprite="experienceForeground" ghost="true" name="experienceBar"/>
			<object type="image" sprite="statsBarShaderVertical" ghost="true"/>
		</object>
	
		<object z="20" size="4 4 20 20" name="rankIcon" type="image" tooltip_style="sessionToolTip">
			<translatableAttribute id="tooltip">Rank</translatableAttribute>
		</object>
	</object>
	</object>
	
	<!-- Names (this must come before the attack and armor icon to avoid clipping issues) -->
	<object size="2 96 100%-2 100%-36" name="statsArea" type="image" sprite="edgedPanelShader">
	
	<!-- These images are used to clip off the top and bottom of the civ icon -->
	<object z="30" size="0 -5 100% 40" ghost="true" type="image" sprite="remove"/>
	<object z="30" size="0 100%-5 100% 100%+40" ghost="true" type="image" sprite="remove"/>
	
	<object z="30" size="0 2 100% 45" ghost="true">
		<!-- Specific Name -->
		<object size="0 0 100% 20" name="specific" ghost="true" type="text" style="SpecificNameCentered"/>

		<!-- Generic Name -->
		<object size="0 15 100% 36" name="generic" ghost="true" type="text" style="GenericNameCentered"/>
	</object>
	
	<!-- Player Name and Civ -->
	<object size="0 40 100% 100%">
		<object size="50%-64 50%-64 50%+64 50%+64" name="playerCivIcon" type="image" ghost="true"/>
		<object size="0 0 100% 100%" name="playerColorBackground" type="image" sprite="playerColorBackground" ghost="true"/>
		<object size="0 0 100% 100%" type="image" sprite="bottomEdgedPanelShader" ghost="true"/>
		
		<!-- Why is this being automatically ghosted? In the mean time, set ghost to false -->
		<object ghost="false" size="0 0 100% 100%-5" name="player" type="text" style="largeCenteredOutlinedText" tooltip_style="sessionToolTip"/>
	</object>
	</object>

</object>

