<?xml version="1.0" encoding="utf-8"?>
<Context xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\..\..\..\..\CivTech\Libs\ForgeUI\ForgeUI_Assets\Controls.xsd">

	<Container Style="FullScreenVignetteConsumer" ConsumeAllMouse="0" ConsumeMouseButton="1" ConsumeMouseWheel="1" ConsumeMouseOver="1"/>

	<Container ID="GreatWorksTop" Anchor="C,C"									Size="1024,768">
		<!-- GWV == Added Box to get alternative background. -->
		<Box ID="ModalBG2" Size="parent,parent" Color="149,150,143,255" />
		<Image				ID="ModalBG"																				Size="parent,768"							Texture="Religion_BG" StretchMode="TileX" ConsumeMouseButton="1" ConsumeMouseWheel="1"/>
		<Image																														Size="parent,40"						Texture="Controls_SubHeader2"  />
		<Grid																							Offset="-5,-5"	Size="parent+10,parent+10"	Style="WindowFrameAlpha"/>
		<Label				ID="ModalScreenTitle" Anchor="C,T"	Offset="0,5"																Style="FontFlair28" FontStyle="glow" Color="206,218,225,255" EffectColor="74,108,37,191" />
    	<Button				ID="ModalScreenClose" Anchor="R,T"																							Style="CloseButtonLarge" Offset="-8,-5" />

		
		<GridButton	ID="ViewGallery" Offset="10,51" Size="110,26" Style="ButtonControlTan" String="LOC_GREAT_WORKS_VIEW_GALLERY"/>
        	<!-- GWV == Added Filter and option buttons. -->
		<GridButton	ID="FilterArt"      Offset="125,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_ART"        ToolTip="LOC_GREATWORKSVIEW_ART_TT"/>
		<GridButton	ID="FilterArtifact" Offset="208,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_ARTIFACT"	 ToolTip="LOC_GREATWORKSVIEW_ARTIFACT_TT"/>
		<GridButton	ID="FilterMusic"    Offset="291,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_MUSIC"	 ToolTip="LOC_GREATWORKSVIEW_MUSIC_TT"/>
		<GridButton	ID="FilterRelic"    Offset="374,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_RELIC"	 ToolTip="LOC_GREATWORKSVIEW_RELIC_TT"/>
		<GridButton	ID="FilterWriting"  Offset="457,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_WRITING"	 ToolTip="LOC_GREATWORKSVIEW_WRITING_TT"/>
		<GridButton	ID="FilterHeroic"   Offset="540,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_HEROIC"	 ToolTip="LOC_GREATWORKSVIEW_HEROIC_TT"/>
		<GridButton	ID="FilterProduct"  Offset="623,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_PRODUCT"	 ToolTip="LOC_GREATWORKSVIEW_PRODUCT_TT"/>
		<GridButton	ID="OrderOrig"      Offset="708,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_ORIG_ORDER" ToolTip="LOC_GREATWORKSVIEW_ORIG_ORDER_TT"/>
        	<!-- GWV == Concise UI Theming Helper -->
                <GridButton     ID="ThemeHelper"    Offset="791,51" Size="80,26" Style="ButtonControlTan" String="LOC_CUI_GWV_THEMING_HELPER"/>
                <!-- GWV == This button will only come in play when display is wide enough -->
		<GridButton	ID="AllowY"         Offset="874,51" Size="80,26" Style="ButtonControlTan" String="LOC_GREATWORKSVIEW_ALLOWY"     ToolTip="LOC_GREATWORKSVIEW_ALLOWY_TT" Hidden="1" />
		
		<Label ID="ProvidingLabel" Anchor="R,T" Offset="10,57" Style="GreatWorksSubHeader" String="LOC_GREAT_WORKS_PROVIDING"/>
		<Stack ID="TotalResources" Anchor="R,T" Offset="10,57" Padding="10" StackGrowth="right"/>
		
		<Grid Offset="7,80" Size="parent-16,54" Texture="GreatWorks_Header" SliceCorner="18,18" SliceSize="18,18" SliceTextureSize="60,54">
			<Container ID="PlacingContainer" Size="parent,parent">
        <Stack Anchor="L,C" Offset="27,0" StackGrowth="Right" StackPadding="5">
          <Label Anchor="L,C" Style="GreatWorksHeader" String="LOC_GREAT_WORKS_PLACING"/>
          <Image ID="PlacingIcon" Anchor="L,C" Texture="GreatWorks64" Size="64,64"/>
				  <Label ID="PlacingName" Anchor="L,C" Style="GreatWorksSubHeader"/>
        </Stack>
				<GridButton	ID="ViewGreatWork" Anchor="R,T" Offset="20,8" Texture="Controls_ButtonControl_Tan" SizeToText="20,20" SliceCorner="7,7" SliceSize="9,9" SliceTextureSize="24,24" StateOffsetIncrement="0,24" String="LOC_GREAT_WORKS_VIEW_GREAT_WORK"/>
			</Container>
			<Container ID="HeaderStatsContainer" Size="parent,parent">
        <Label Offset="27,18" Style="GreatWorksHeader" String="LOC_GREAT_WORKS_ORGANIZE_GREAT_WORKS"/>
				<Line Start="-258,8" End="-258,45" Anchor="R,T" Width="2" Color="0,0,0,122"/>
				<Label Offset="58,11" Align="right" Anchor="R,T" Style="GreatWorksSubHeader" String="LOC_GREAT_WORKS_SCREEN_TITLE"/>
				<Label Offset="58,31" Align="right" Anchor="R,T" Style="GreatWorksSubHeader" String="LOC_GREAT_WORKS_DISPLAY_SPACES"/>
				<Label ID="NumGreatWorks" Offset="-48,7" Anchor="R,T" AnchorSide="o,i" Align="left" Style="GreatWorksSubHeader" String="0"/>
				<Label ID="NumDisplaySpaces" Offset="-48,27" Anchor="R,T" AnchorSide="o,i" Align="left" Style="GreatWorksSubHeader" String="0"/>
			</Container>
		</Grid>

		<ScrollPanel ID="GreatWorksScrollPanel" Size="parent-17,parent-148" Offset="7,140" Vertical="false" AutoScrollBar="1">
			<Stack ID="GreatWorksStack" Padding="5" StackGrowth="down" WrapWidth="620" WrapGrowth="right"/>
			<ScrollBar ID="GreatWorksScrollbar" Offset="0,-2" Anchor="C,B" Style="ScrollHorizontalBar"/>
		</ScrollPanel>
	</Container>

	<!-- ==================================================================	-->
	<!--	Instances																													-->
	<!-- ==================================================================	-->
	<Instance Name="GreatWorkSlot">
		<Container ID="TopControl" Size="248,150">
			<Button	ID="DefaultBG" Texture="GreatWorks_MuseumSlot" Size="248,150" NoStateChange="true"/>
			<Button	ID="HighlightedBG" Offset="2,2" Texture="GreatWorks_MuseumHighlight" Size="244,146" NoStateChange="true" Hidden="1"/>
			<Label ID="BuildingName" Offset="0,10" Anchor="C,T" Align="center" Style="GreatWorksBuildingName"/>
			<Label ID="CityName" Offset="0,27" Anchor="C,T" Align="center" Style="GreatWorksCityName"/>
			<Stack ID="GreatWorks" Size="248,150" Offset="0,2" Anchor="C,C" Padding="2" StackGrowth="right"/>
      <Label ID="ThemingLabel" Offset="0,111" Anchor="C,T" Align="center" Style="GreatWorksBuildingTheme"/>
			<Stack ID="ThemeBonuses" Offset="0,131" Anchor="C,T" Padding="5" StackGrowth="right"/>
			<Image	ID="DisabledBG" Offset="-5,-5" Texture="GreatWorks_MuseumLowLight" Size="258,160"  Hidden="1"/>
		</Container>
	</Instance>

	<Instance Name="GreatWork">
		<Container ID="TopControl" Size="38,64" >
			<Button	ID="EmptySlot" Offset="0,2" Texture="GreatWorks_EmptySlot" Size="38,60" NoStateChange="true"/>
			<Button	ID="EmptySlotHighlight" Offset="-2,0" Texture="GreatWorks_EmptySlotHighlight" Size="42,64" NoStateChange="true" Hidden="1"/>
      <Image	ID="SlotTypeIcon" Anchor="C,C" Texture="GreatWorksSlotTypes40" Size="40,40"/>
      
      <Drag ID="GreatWorkDraggable" Size="parent,parent" Buttons="L" SnapBackSpeed="0" DragThreshold="8"> 
			  <Image	ID="GreatWorkIcon" Offset="-13,-2" Texture="GreatWorks64" Size="64,64"/>
      </Drag>
      <!-- Concise UI >> -->
      <Grid ID="LockMask" Anchor="C,C" Hidden="1">
        <Grid ID="LockColor" Anchor="C,C" Size="38,60" Color="Clear" Alpha="0.7" Texture="Controls_SubContainerFill" SliceCorner="10,10" SliceTextureSize="18,18" SliceStart="2,2"/>
        <Label ID="LockText" Anchor="C,C" Offset="2,14" Size="38,14" Style="FontFlair12" Color="White" String="10[ICON_TURN]"/>
      </Grid>
      <Grid ID="ThemeMask" Anchor="C,C" Hidden="1">
        <Grid ID="ThemeColor" Anchor="C,C" Size="38,60" Color="Clear" Alpha="0.7" Texture="Controls_SubContainerFill" SliceCorner="10,10" SliceTextureSize="18,18" SliceStart="2,2"/>
        <Grid ID="ThemeBacking" Anchor="C,C" Offset="0,14" Size="30,16" Texture="Controls_ItemContainer" SliceCorner="8,8" SliceTextureSize="16,16">
          <Label ID="ThemeText" Anchor="C,C" Offset="0,0" Size="38,18" Style="FontFlair16" Color="White" String="10"/>
        </Grid>
      </Grid>
      <Grid ID="FilterMask" Anchor="C,C" Hidden="1">
        <Grid ID="FilterColor" Anchor="C,C" Size="38,60" Color="Black" Alpha="0.5" Texture="Controls_SubContainerFill" SliceCorner="10,10" SliceTextureSize="18,18" SliceStart="2,2"/>
      </Grid>
      <Image ID="LockIcon" Anchor="C,C" Hidden="1" Offset="0,-10" Size="32,32" Alpha="1" Texture="Padlock"/>
      <!-- << Concise UI -->
		</Container>
	</Instance>
	
  
	<Instance Name="Resource">
		<Label ID="Resource" Anchor="C,C" Style="GreatWorksBuildingTheme"/>
	</Instance>
	
	<Instance Name="AgregateResource">
		<Label ID="Resource" Anchor="C,C" Style="GreatWorksAggregateResources"/>
	</Instance>

</Context>
