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

	<Container Style="FullScreenVignetteConsumer" />

	<Box 		ID="Main"	Anchor="C,C"	Size="1015,711"		Color="11,27,40,255">
		<Grid							Anchor="C,C"					Size="parent+9,parent+9"		Style="WindowFrameTopOnly" />
		
		<!-- Window Header -->
		<Button		ID="CloseButton"	Anchor="R,T"	Offset="-3,-1"	Size="44,44"					Texture="Controls_CloseLarge" />
		<Image							Anchor="C,T"					Size="parent,44"		Color="61,112,154,255"	Texture="Controls_Gradient_HalfRadial" />
		<!--<GridButton		ID="CollapseAll"									Offset="48,13"	SizeToText="80,12"				Style="RoundedButton"		String="LOC_HUD_REPORTS_COLLAPSE_ALL"  Hidden="0" />-->
		<Label                  Anchor="C,T" Offset="0,16"  Style="FontFlair20" String="{LOC_RET_WINDOW_TITLE:upper}" FontStyle="Glow" Color0="133,205,235,255" Color1="203,215,225,100" Color2="254,254,254,255" SmallCapsType="EveryWord" SmallCaps="28" />
		<Label ID="TotalsLabel" Anchor="R,T" Offset="70,16" Style="FontFlair20" String="LOC_ERAS_CURRENT_SCORE"       FontStyle="Glow" Color0="133,205,235,255" Color1="203,215,225,100" Color2="254,254,254,255" SmallCapsType="EveryWord" />
		<Grid							Anchor="C,T"	Offset="0,44"	Size="parent-6,8"				Style="Divider3Grid" />
		
		<!-- Tab Header -->
		<Container		ID="TabArea"	Anchor="C,T"	Offset="0,44"	Size="parent,42" >
			<Image							Anchor="C,T"	Offset="0,4"	Size="parent-8,22"	Color="0,0,0,255"	Texture="Controls_GradientSmall" />
			<Container	ID="TabContainer"					Offset="0,0"	Size="parent,34" />
			<Grid							Anchor="C,B"	Offset="0,0"	Size="parent-6,8"	Style="Divider3Grid" />
		</Container>
		<Container						Anchor="C,T"	Offset="0,44"	Size="parent,36">
			<SlideAnim	ID="TabAnim"		Begin="0,0" End="0,0" Cycle="Once" Speed="3.5" Function="OutQuint" Size="67,68">
				<Image		ID="TabArrow"		Texture="Controls_TabSelectArrow" Size="42,11"/>
			</SlideAnim>
		</Container>

		<!-- Contents -->
		<ScrollPanel	ID="Scroll"												Offset="4,84"		Size="parent-8,parent-188"				Vertical="1" AutoScrollBar="1" >
			<Stack			ID="Stack"					Anchor="L,T"	Offset="0,1"		StackPadding="4" />
			<ScrollBar											Anchor="R,C"	Offset="2,0"		Size="11,parent" AnchorSide="I,I"					Style="ScrollVerticalBarAlt" />
		</ScrollPanel>
		<Image														Anchor="C,T"	Offset="0,83"		Size="parent-8,22"				Color="0,0,0,255" Texture="Controls_GradientSmall" />

		<!-- Filters -->
		<Container ID="BottomFilters" Anchor="C,B" Offset="0,0" Size="parent-6,80">
			<Grid Anchor="C,T" Offset="0,0" Size="parent,8" Style="Divider3Grid"/>
			<Image Anchor="C,B" Offset="0,2" Size="parent,parent" Texture="Controls_Gradient" Color="255,255,255,32">
				<!--<Label Anchor="L,T" Offset="10,10" Style="FontFlair20" String="LOC_ERA_PROGRESS_ERA_SCORE" FontStyle="Glow" Color0="133,205,235,255" Color1="203,215,225,100" Color2="254,254,254,255" />-->
				<GridButton ID="EraScore1Checkbox" Style="CheckBoxControl" Anchor="L,T" Offset="40,10" Size="140,26" String="{LOC_ERA_PROGRESS_ERA_SCORE} 1" Hidden="0"/>
				<GridButton ID="EraScore2Checkbox" Style="CheckBoxControl" Anchor="L,T" Offset="200,10" Size="140,26" String="{LOC_ERA_PROGRESS_ERA_SCORE} 2" Hidden="0"/>
				<GridButton ID="EraScore3Checkbox" Style="CheckBoxControl" Anchor="L,T" Offset="360,10" Size="140,26" String="{LOC_ERA_PROGRESS_ERA_SCORE} 3" Hidden="0"/>
				<GridButton ID="EraScore4Checkbox" Style="CheckBoxControl" Anchor="L,T" Offset="520,10" Size="140,26" String="{LOC_ERA_PROGRESS_ERA_SCORE} 4+" Hidden="0"/>
				<GridButton ID="HideNotActiveCheckbox"    Style="CheckBoxControl" Anchor="L,B" Offset="40,10" Size="300,26" String="LOC_RET_CHECKBOX_HIDE_NOT_ACTIVE" Hidden="0"/>
				<GridButton ID="HideNotAvailableCheckbox" Style="CheckBoxControl" Anchor="L,B" Offset="360,10" Size="400,26" String="LOC_RET_CHECKBOX_HIDE_NOT_AVAILABLE" Hidden="0"/>
			</Image>
		</Container>
		
	</Box>

	<!-- Tab Instance -->
	<Instance Name="TabInstance">
		<GridButton		ID="Button"						Size="50,34" Style="TabButton" FontSize="14" TextOffset="0,2">
			<AlphaAnim		ID="Selection"	Offset="-2,0"	Size="parent+3,parent" Speed="4" AlphaBegin="0" AlphaEnd="1" Cycle="Once" Function="Root" Hidden="1" >
				<GridButton										Size="parent,parent" Style="TabButtonSelected" ConsumeMouseButton="0" ConsumeMouseOver="1" />
			</AlphaAnim>
		</GridButton>
	</Instance>

	<!-- Non-Collapsable Rows -->
	<Instance					Name="SimpleInstance">
		<Stack					ID="Top"	StackGrowth="Down" />
	</Instance>
	

	<!-- MOMENTS -->

	<Instance					Name="CityStatus2HeaderInstance">
		<Container			ID="Top"														Offset="8,0" Size="990,22">
			<Image																						Offset="4,0"	Size="parent-8,parent" Texture="Controls_GradientSmall" FlipY="1" Color="39,89,137,125" />
			<Stack	StackGrowth="Right" >
				<Box			Size="2,parent"	Color="46,70,95,255" />
				<Container		Size="50,parent">
					<GridButton		ID="GroupButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_UNITNAME_SUFFIX_STRIKE_GROUP" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="55,parent">
					<GridButton		ID="EraScoreButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_CATEGORY_ERA_SCORE_NAME" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="310,parent">
					<GridButton		ID="DescriptionButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_UI_PEDIA_DESCRIPTION" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="160,parent">
					<GridButton		ID="ObjectButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_UI_PEDIA_APPLIES_TO" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="50,parent">
					<GridButton		ID="StatusButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_HUD_REPORTS_HEADER_STATUS" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="50,parent">
					<GridButton		ID="TurnButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_HUD_TURN" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="50,parent">
					<GridButton		ID="CountButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_RET_COUNT" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="50,parent">
					<GridButton		ID="ExtraButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_GAMESUMMARY_CATEGORY_EXTRA" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="60,parent">
					<GridButton		ID="ErasButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_ERA_NAME" />
					</GridButton>
				</Container>
				<Box			Size="2,parent"	Color="46,70,95,128" />
				<Container		Size="130,parent">
					<GridButton		ID="PlayerButton"  Size="parent,parent" Style="ButtonLightWeightSquareGrid" Anchor="C,C">
						<Label													Style="ReportHeaderSmallText"		String="LOC_WORLDBUILDER_ATTRIBUTE_OWNER" />
					</GridButton>
				</Container>
				<Box																													Size="2,parent"	Color="46,70,95,255" />
			</Stack>
		</Container>
	</Instance>

	<!-- Columns: name, object, era score, status, count, era min, era max, civilization -->
	<Instance Name="MomentEntryInstance">
		<Container	ID="Top"									Offset="8,0" Size="990,28">
			<Image	Offset="4,0"	Size="parent-8,parent" Texture="Controls_GradientSmall" FlipY="1" Color="39,89,137,125" />
			<Stack	StackGrowth="Right" >
				<Box									Size="2,parent"	Color="46,70,95,255" />
				<Container	Size="50,parent">
					<Label		ID="Group"	Style="ReportValueText"		String="$Group$" />
				</Container>
				<Box									Size="2,parent"	Color="46,70,95,128" />
				<Container	Size="55,parent">
					<Label		ID="EraScore"	Style="ReportValueText"		String="$Score$" />
				</Container>
				<Box 									Size="2,parent" Color="46,70,95,128" />
				<Container	Size="310,parent">
					<Label		ID="Description"	Style="ReportValueLeftName"		String="$Description$" />
				</Container>
				<Box									Size="2,parent"	Color="46,70,95,128" />
				<Container	Size="160,parent">
					<Label		ID="Object"		Style="ReportValueLeftName"	String="$Object$" />
				</Container>
				<Box 									Size="2,parent" Color="46,70,95,128" />
				<Container	Size="50,parent">
					<Label		ID="Status"		Style="ReportValueText"		String="$Status$" Offset="0,2" />
				</Container>
				<Box									Size="2,parent"	Color="46,70,95,128" />
				<Container	Size="50,parent">
					<Label		ID="Turn"		Style="ReportValueText"		String="$Turn$" />
				</Container>
				<Box 									Size="2,parent" Color="46,70,95,128" />
				<Container	Size="50,parent">
					<Label		ID="Count"		Style="ReportValueText"		String="$Count$" />
				</Container>
				<Box							Size="2,parent"	Color="46,70,95,128" />
				<Container	Size="50,parent">
					<Label		ID="Extra"		Style="ReportValueText"		String="$Extra$" />
				</Container>
				<Box									Size="2,parent"	Color="46,70,95,128" />
				<Container	Size="60,parent">
					<Label		ID="Eras"		Style="ReportValueText"		String="$Eras$" />
				</Container>
				<Box									Size="2,parent"	Color="46,70,95,128" />
				<Container	Size="130,parent">
					<Label		ID="Player"		Style="ReportValueText"		String="$Player$" />
				</Container>
				<Box									Size="2,parent"	Color="46,70,95,255" />
			</Stack>
		</Container>
	</Instance>

</Context>