<?xml version="1.0" encoding="utf-8" ?>
<!-- Released under GPLv3 -->
<Context ColorSet="Beige_Black_Alpha" Font="TwCenMT14" FontStyle="Shadow" ConsumeMouse="0" >

	<ToolTipType Name="IGE_ToolTip" >
		<Grid ID="Frame" Offset="20,-30" Size="250,50" Style="GridBlack8" Color="White,200" Padding="8,0">
			<Stack ID="OuterStack" StackGrowth="Bottom" Padding="0">
				<Stack ID="InnerStack" Anchor="L,T" Size="100,60" Offset="0,-3" StackGrowth="Right" >
					<Image ID="Image" Anchor="L,C" Size="64,64" Disabled="1" />
					<Stack ID="InnerMostStack" Anchor="L,C" StackGrowth="Bottom" Size="20,60" Offset="0,-3">
						<Label ID="SmallLabel" Anchor="L,C" Offset="0,0" ColorSet="Beige_Black_Alpha" Font="TwCenMT16" FontStyle="Shadow"/>
						<Label ID="LargeLabel" Anchor="L,T" Offset="0,10" ColorSet="Beige_Black_Alpha" Font="TwCenMT16" FontStyle="Shadow"/>
					</Stack>
				</Stack>
				<Label Offset="13,10" ID="Help" WrapWidth="300" />
				<Label Offset="13,0" ID="Note" WrapWidth="300"/>
			</Stack>
		</Grid>
	</ToolTipType>

	<!-- Body -->
	<Container ID="Container" Anchor="C,C" Size="F,F" Offset="0,0" Padding="0,0" Hidden="true" >
		<!-- Bulk UI -->
		<LuaContext FileName="IGE_StrategicMap"				ID="StrategicMap"/>
		<LuaContext FileName="IGE_Overlay"					ID="Overlay"/>
		<LuaContext FileName="IGE_CityBanner"				ID="CityBanner"/>

		<!-- Background for mouse hovering management -->
		<Button Size="F,F" ID="Background" Disabled="1" ConsumeMouseOver="0" Hidden="0"/>

		<!-- Bulk UI -->
		<LuaContext FileName="IGE_MiniMap"					ID="MiniMap"/>
		<LuaContext FileName="IGE_NotificationPanel"		ID="NotificationPanel"/>

		<!-- Main panel --> 
		<Grid ID="MainGrid" Anchor="L,B" Size="1305,530" Offset="0,0" Color="White.256" Style="Grid9DetailSix140" Padding="0,0" ConsumeMouse="0" Hidden="false"
			  LLSize="0,0" LRSize="0,0" LCSize="1,0"> <!--LSize="10,1" RSize="10,1" RTexStart="130,70"-->
			
			<!-- Top buttons -->
			<Box Anchor="R,T" AnchorSide="i,o" Offset="10,-36" Size="1285,40" ConsumeMouseOver="0" Color="255,0,0,0">
				<Button ID="CloseButton" Anchor="R,T" Offset="0,0" Texture="Art/IgeTopIcons.dds" TextureOffset="160,0" Size="40,40" ConsumeMouseOver="1" StateOffsetIncrement="0,0" ToolTip="TXT_KEY_IGE_CLOSE_BUTTON_HELP">
					<ShowOnMouseOver>
						<Image Anchor="C,C" Size="40,40" Texture="Art/IgeTopIcons.dds" TextureOffset="160,40"/>
					</ShowOnMouseOver>
				</Button>
				
				<Button ID="ReloadButton" Anchor="R,T" Offset="60,0" Texture="Art/IgeTopIcons.dds" TextureOffset="120,0" Size="40,40" ConsumeMouseOver="1" StateOffsetIncrement="0,0" ToolTip="TXT_KEY_IGE_RELOAD_BUTTON_HELP">
					<ShowOnMouseOver>
						<Image Anchor="C,C" Size="40,40" Texture="Art/IgeTopIcons.dds" TextureOffset="120,40"/>
					</ShowOnMouseOver>
				</Button>
				<Button ID="SaveButton" Anchor="R,T" Offset="100,0" Texture="Art/IgeTopIcons.dds" TextureOffset="80,0" Size="40,40" ConsumeMouseOver="1" StateOffsetIncrement="0,0" ToolTip="TXT_KEY_IGE_SAVE_BUTTON_HELP">
					<ShowOnMouseOver>
						<Image Anchor="C,C" Size="40,40" Texture="Art/IgeTopIcons.dds" TextureOffset="80,40"/>
					</ShowOnMouseOver>
				</Button>

				<Button ID="IGECameraButton" Anchor="R,T" Offset="160,0" Texture="Art/IgeTopIcons.dds" TextureOffset="40,0" Size="40,40" ConsumeMouseOver="1" StateOffsetIncrement="0,0" ToolTip="TXT_KEY_IGE_CAMERA_BUTTON_HELP">
					<ShowOnMouseOver>
						<Image Anchor="C,C" Size="40,40" Texture="Art/IgeTopIcons.dds" TextureOffset="40,40"/>
					</ShowOnMouseOver>
				</Button>
				<Button ID="RevealMapButton" Anchor="R,T" Offset="200,0" Texture="Art/IgeTopIcons.dds" TextureOffset="0,0" Size="40,40" ConsumeMouseOver="1" StateOffsetIncrement="0,0" ToolTip="TXT_KEY_IGE_GLANCE_AT_MAP_BUTTON_HELP">
					<ShowOnMouseOver>
						<Image Anchor="C,C" Size="40,40" Texture="Art/IgeTopIcons.dds" TextureOffset="0,40"/>
					</ShowOnMouseOver>
				</Button>
				<Button ID="CoverMapButton" Anchor="R,T" Offset="200,0" Texture="Art/IgeTopIcons.dds" TextureOffset="0,40" Size="40,40" ConsumeMouseOver="1" StateOffsetIncrement="0,0" ToolTip="TXT_KEY_IGE_COVER_MAP_BUTTON_HELP">
					<ShowOnMouseOver>
						<Image Anchor="C,C" Size="40,40" Texture="Art/IgeTopIcons.dds" TextureOffset="0,0"/>
					</ShowOnMouseOver>
				</Button>
			</Box>

			<Box Anchor="L,T" Size="1286,full" Offset="10,33" ConsumeMouse="1" Color="255,255,255,0">
				<LuaContext FileName="IGE_TabsBar" ID="TabsBar" Offset="0,10" />

				<Container ID="PanelsContainer" Offset="0,63" Size="1286,410">
					<LuaContext FileName="IGE_ActivePlayerSelection"	ID="ActivePlayerSelection" />
					<LuaContext FileName="IGE_TerrainPanel"				ID="TerrainPanel" />
					<LuaContext FileName="IGE_CitiesPanel"				ID="CitiesPanel" />
					<LuaContext FileName="IGE_UnitsPanel"				ID="UnitsPanel" />
					<LuaContext FileName="IGE_PlayersPanel"				ID="PlayersPanel" />
					<LuaContext FileName="IGE_TechsPanel"				ID="TechsPanel" />
					<LuaContext FileName="IGE_PoliciesPanel"			ID="PoliciesPanel" />
				</Container>
			</Box >
		</Grid>

		<!-- Bulk UI over panel -->
		<Container Size="F,F" ID="BulkUI_Over">
			<LuaContext FileName="IGE_AlertStack"					ID="AlertStack" />
			<LuaContext FileName="IGE_ProductionPopup"				ID="ProductionPopup" Hidden="1"/>
			<LuaContext FileName="IGE_ConfirmPopup"					ID="ConfirmPopup" Hidden="1"/>
			<LuaContext FileName="IGE_ChooseReligionPopup"			ID="ChooseReligionPopup" Hidden="1"/>
			<LuaContext FileName="IGE_ChoosePantheonPopup"			ID="ChoosePantheonPopup" Hidden="1"/>
			<LuaContext FileName="Assets/UI/InGame/TopPanel"		ID="TopPanel"/>
			<LuaContext FileName="IGE_WonderPopup"					ID="WonderPopup" Hidden="1"/>
		</Container>
	</Container>

	<!-- Options -->
	<Grid ID="OptionsPanel" Anchor="R,T" Offset="255,0" Size="310,305" Color="White.256" Style="Grid9DetailSix140" Hidden="true" ConsumeMouse="1">
		<Stack Anchor="L,C" Padding="0" Offset="25,0" StackGrowth="Bottom" ID="MainStack" >
			<CheckBox ID="SafeMode"	Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_SAFE_MODE"
  					  ToolTip="TXT_KEY_IGE_SAFE_MODE_HELP"/>
			<CheckBox ID="AutoSave"				Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_AUTO_SAVE"
					  ToolTip="TXT_KEY_IGE_AUTO_SAVE_HELP"/>
			<CheckBox ID="CleanUpFiles"			Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_CLEAN_UP_FILES"
					  ToolTip="TXT_KEY_IGE_CLEAN_UP_FILES_HELP"/>
			<CheckBox ID="ShowYields"			Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_SHOW_YIELDS"
  					  ToolTip="TXT_KEY_IGE_SHOW_YIELDS_HELP"/>
			<CheckBox ID="ShowResources"		Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_SHOW_RESOURCES"
					  ToolTip="TXT_KEY_IGE_SHOW_RESOURCES_HELP"/>
			<CheckBox ID="ShowUnknownResources" Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_SHOW_UNKNOWN_RESOURCES"
					  ToolTip="TXT_KEY_IGE_SHOW_UNKNOWN_RESOURCES_HELP"/>
			<CheckBox ID="DisableStrategicView" Anchor="L,T"  TextAnchorSide="Right" Offset="0,0" TextOffset="35,0" IsChecked="0" Font="TwCenMT16" FontStyle="Shadow" String="TXT_KEY_IGE_DISABLE_STRATEGIC_VIEW"
					  ToolTip="TXT_KEY_IGE_DISABLE_STRATEGIC_VIEW_HELP"/>
		</Stack>
	</Grid>
	
	<!-- Main button -->
	<TextButton ID="MainButton" Anchor="R,T" Offset="340,6" Font="TwCenMT20" NormalState="Beige_Black" MouseOver="White_Black" ButtonDown="Beige_Black_Alpha"
				String="TXT_KEY_IGE_IGE" ToolTip="TXT_KEY_IGE_IGE_HELP"/>

	<!-- Edge scrolling -->
	<Container ID="ScreenEdgeScrolling" Size="F,F" >
		<Button Anchor="C,T" Size="F,2" ID="ScrollTop" />
		<Button Anchor="C,B" Size="F,2" ID="ScrollBottom" />
		<Button Anchor="L,C" Size="2,F" ID="ScrollLeft" />
		<Button Anchor="R,C" Size="2,F" ID="ScrollRight" />
	</Container>
</Context>