<?xml version="1.0" encoding="UTF-8"?>
<objectDefs name="core" version="0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<objectDef type="SyncShowSlideOutEndTurn" superType="SyncShowSlideOut">
		<propertyDef name="bShowIndustrialProduction" type="bool" default="false"/>
		<propertyDef name="bShowResearch" type="bool" default="false"/>
		<propertyDef name="bShowFinancialReport" type="bool" default="false"/>
		<propertyDef name="bShowWorldMarket" type="bool" default="false"/>
	</objectDef>

	<objectDef type="UI2DPolicyAreaEndTurn" superType="UI2DPolicyArea">
		<propertyDef name="bTriggerScoringToggle" type="bool"/>
		<propertyDef name="bTriggerIndustrialProduction" type="bool"/>
		<propertyDef name="bTriggerResearch" type="bool"/>
		<propertyDef name="bTriggerWorldMarket" type="bool"/>
		<propertyDef name="bTriggerFinancialReport" type="bool"/>
		<propertyDef name="bShowWorldMarket" type="bool" default="false"/>
		<propertyDef name="bShowScoring" type="bool"/>
		<propertyDef name="bCreateSlideout" type="bool"/>
		
		<property name="bTriggerScoringToggle" inheritFrom="objScoring.bButtonClicked"/>
		<property name="bTriggerIndustrialProduction" inheritFrom="objSync.bShowIndustrialProduction"/>
		<property name="bTriggerResearch" inheritFrom="objSync.bShowResearch"/>
		<property name="bTriggerFinancialReport" inheritFrom="objSync.bShowFinancialReport"/>
		<property name="bShowWorldMarket" inheritFrom="objSync.bShowWorldMarket"/>
		<property name="strPolicyArea" value="Turn Summary"/>
		<property name="strTitle" computeFrom="buildFormattedString(
					getFormatString(FSID.UI.UI2DPolicyAreaEndTurn.Title),
					'CurrentNotificationTurn',
					cast(String, .objDriver.objMyAvatar.objPlayer.objData.nCurrentNotificationTurn)
			)"/>
		<property name="objSlideoutWrapper" computeFrom="if(exists(this.objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax), this.objNotificationSlideoutWrapper, cast(IntrinsicObject, -1))"/>
		
		<object type="PopUpButtonSet" name="objPopUpButtonSet">
			<object type="PopUpButton" name="objButtons">
				<property name="strName" value="close"/>
			</object>
		</object>
						
		<object type="SyncShowSlideOutEndTurn" name="objSync">
		</object>

		<object type="SlidingPanelWrapper" name="objNotificationSlideoutWrapper">
			<object type="UI2DSlidingPanel" name="objSlidingPanel">
			</object>
		</object>
		
<!-- CMD Create Kill scoring panel -->		
		<object type="CmdBlock" name="objCreateKillScoringPanel">
			<property name="bExecute" inheritFrom="bTriggerScoringToggle"/>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="bCreateSlideout"/>
				<property name="expRession" value="!(this.objSlideoutWrapper.objSlidingPanel.objPanelMax ISA UI2DSlidePanelScoring)"/>
			</object>
			
			<object name="objCommands" type="CmdCreateObject">
				<property name="bShouldExecute" inheritFrom="bCreateSlideout"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="strObjectDef" value="UI2DSlidePanelScoring"/>
				<object type="BindingsSlidingPanelScoring" name="objBindings">
					<property name="objPopUpButtonSet" inheritFrom="objPopUpButtonSet"/>
				</object>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="bShouldExecute" computeFrom="!this.bCreateSlideout"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="expRession" value="cast(Object, -1)"/>
			</object>

		</object>

<!-- CMD Create Kill production panel -->		
		<object type="CmdBlock" name="objCreateKillProductionPanel">
			<property name="bExecute" inheritFrom="bTriggerIndustrialProduction"/>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="bCreateSlideout"/>
				<property name="expRession" value="!(this.objSlideoutWrapper.objSlidingPanel.objPanelMax ISA UI2DIndustrialProductionSlidePanel)"/>
			</object>
			
			<object name="objCommands" type="CmdCreateObject">
				<property name="bShouldExecute" inheritFrom="bCreateSlideout"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="strObjectDef" value="UI2DIndustrialProductionSlidePanel"/>
				<object type="BindingsSlidingPanelIndustrialProduction" name="objBindings">
					<property name="objPopUpButtonSet" inheritFrom="objPopUpButtonSet"/>
					<property name="strTabSelectedAtCreation" value="Production"/>
				</object>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="bShouldExecute" computeFrom="!(this.bCreateSlideout)"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="expRession" value="cast(Object, -1)"/>
			</object>
					
		</object>

<!-- CMD Create Kill Research panel -->
		<object type="CmdBlock" name="objCreateKillResearchPanel">
			<property name="bExecute" inheritFrom="bTriggerResearch"/>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="bCreateSlideout"/>
				<property name="expRession" value="!(this.objSlideoutWrapper.objSlidingPanel.objPanelMax ISA UI2DSlidePanelResearchProjects)"/>
			</object>
							
			<object name="objCommands" type="CmdCreateObject">
				<property name="bShouldExecute" inheritFrom="bCreateSlideout"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="strObjectDef" value="UI2DSlidePanelResearchProjects"/>
				<object type="BindingsSlidingPanelResearch" name="objBindings">
					<property name="objPopUpButtonSet" inheritFrom="objPopUpButtonSet"/>
				</object>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="bShouldExecute" computeFrom="!(this.bCreateSlideout)"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="expRession" value="cast(Object, -1)"/>
			</object>
						
		</object>

<!-- CMD Create Kill Financial Report panel -->
		<object type="CmdBlock" name="objCreateKillResearchPanel">
			<property name="bExecute" inheritFrom="bTriggerFinancialReport"/>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="bCreateSlideout"/>
				<property name="expRession" value="!(this.objSlideoutWrapper.objSlidingPanel.objPanelMax ISA UI2DSlidingPanelFinancialReport)"/>
			</object>
							
			<object name="objCommands" type="CmdCreateObject">
				<property name="bShouldExecute" inheritFrom="bCreateSlideout"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="strObjectDef" value="UI2DSlidingPanelFinancialReport"/>
				<object type="BindingsSlidingPanelWorldMarket" name="objBindings">
					<property name="objPopUpButtonSet" inheritFrom="objPopUpButtonSet"/>
				</object>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="bShouldExecute" computeFrom="!(this.bCreateSlideout)"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="expRession" value="cast(Object, -1)"/>
			</object>
						
		</object>		

<!-- CMD Create Kill World Market panel -->
		<object type="CmdBlock" name="objCreateKillWorldMarketPanel">
			<property name="bExecute" inheritFrom="bShowWorldMarket"/>
			
			<object type="CmdLog" name="objCommands">
				<property name="strOutput" value="Working"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="bCreateSlideout"/>
				<property name="expRession" value="!(this.objSlideoutWrapper.objSlidingPanel.objPanelMax ISA UI2DWorldMarketSlidePanel)"/>
			</object>
							
			<object name="objCommands" type="CmdCreateObject">
				<property name="bShouldExecute" inheritFrom="bCreateSlideout"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="strObjectDef" value="UI2DWorldMarketSlidePanel"/>
				<object type="BindingsSlidingPanelWorldMarket" name="objBindings">
					<property name="objPopUpButtonSet" inheritFrom="objPopUpButtonSet"/>
				</object>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="bShouldExecute" computeFrom="!(this.bCreateSlideout)"/>
				<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
				<property name="expRession" value="cast(Object, -1)"/>
			</object>
						
		</object>

<!-- Kill from Slideout -->
		<object type="CmdSetPropFromExp" name="objCommands">
			<property name="bExecute" inheritFrom="objPopUpButtonSet.objButtons{close}.bPressed"/>
			<property name="pathDest" value="objNotificationSlideoutWrapper.objSlidingPanel.objPanelMax"/>
			<property name="expRession" value="cast(Object, -1)"/>
		</object>
		
		<object type="UI2DImage" name="objBG">
			<property name="nX" value="0"/>
			<property name="nY" value="35"/>
			<property name="nWidth" value="280"/>
			<property name="nHeight" value="528"/>
			<property name="fileSource" computeFrom="if(this.objCountry.strName == 'Austria-Hungary', '../../../ui/art/2D/global/common-pop-up-bg-Austria-Hungary.bmp',
														if(this.objCountry.strName == 'France', '../../../ui/art/2D/global/common-pop-up-bg-France.bmp',
															if(this.objCountry.strName == 'Germany', '../../../ui/art/2D/global/common-pop-up-bg-Germany.bmp',
																if(this.objCountry.strName == 'Italy', '../../../ui/art/2D/global/common-pop-up-bg-Italy.bmp',
																	if(this.objCountry.strName == 'Ottoman Empire', '../../../ui/art/2D/global/common-pop-up-bg-Ottoman Empire.bmp',
																		if(this.objCountry.strName == 'Russia', '../../../ui/art/2D/global/common-pop-up-bg-Russia.bmp',
																			if(this.objCountry.strName == 'United Kingdom', '../../../ui/art/2D/global/common-pop-up-bg-United Kingdom.bmp',
																				if(this.objCountry.strName == 'United States', '../../../ui/art/2D/global/common-pop-up-bg-United States.bmp', '../../../ui/art/2D/global/common-pop-up-bg.bmp'
																				)
																			)
																		)
																	)
																)
															)
														)
													)
														"/>
		</object>
				
		<object type="UI2DEndTurnScoringButton" name="objScoring">
			<property name="nX" value="13"/>
			<property name="nY" value="57"/>
			<property name="sidToolTip" value="SID.ToolTip.Basic.ButtonTurnSummaryVictoryConditions"/>
		</object>
	
		<object type="UI2DProductionListElement" name="objProductionElements">
			<property name="nX" value="13"/>
			<property name="nY" value="87"/>
			<property name="objSync" inheritFrom="objSync"/>
			<property name="sidToolTip" value="SID.ToolTip.Basic.ButtonTurnSummaryProductionReport"/>
		</object>
		
		<object type="UI2DResearchListElement" name="objResearchElements">
			<property name="nX" value="13"/>
			<property name="nY" value="117"/>
			<property name="objSync" inheritFrom="objSync"/>
		</object>
		
		<object type="UI2DWorldMarketListElement" name="objWorldMarket">
			<property name="nX" value="13"/>
			<property name="nY" value="147"/>
			<property name="objSync" inheritFrom="objSync"/>
		</object>
			
		<object type="FinancialReportListElement" name="objFinancialReport">
			<property name="nX" value="13"/>
			<property name="nY" value="177"/>
			<property name="objSync" inheritFrom="objSync"/>
		</object>
		
		<object type="UI2DPenaltyRow" name="objPenaltyRow">
			<property name="nX" value="13"/>
			<property name="nY" value="220"/>
		</object>
		
		<object type="CmdSetPropFromExp" name="cmdSetSelected">
			<property name="bExecute" inheritFrom="objScoring.bButtonClicked"/>
			<property name="pathDest" value="bShowScoring"/>
			<property name="expRession" value="!this.bShowScoring"/>
		</object>
		<object type="UI2DDivider" name="objTopDivider">
			<property name="nX" value="12"/>
			<property name="nY" value="252"/>
			<property name="nWidth" value="258"/>
			<property name="nDepth" value="100"/>
		</object>
				
		<object type="UI2DScrollPane" name="objScrollPane">
			<property name="nWidth" value="260"/>
			<property name="nHeight" value="306"/>
			<property name="nX" value="10"/>
			<property name="nY" value="252"/>
			<property name="nDepth" value="11"/>

			<object type="UI2DFlowElement" name="objScrollable">
				<property name="nSpacing" value="10"/>
				
				<object type="UI2DEoTCombatReportList" name="objElements">
				</object>
				
				<object type="UI2DInternationalEventList" name="objElements">
				</object>
				
				<object type="UI2DNationalEventList" name="objElements">
					<property name="objSync" inheritFrom="objSync"/>
				</object>
										
			</object>

			<object type="ThinSliderInfo" name="objVertInfo">
				<property name="nLength" value="306"/>
			</object>
		</object>
		
	</objectDef>

	<objectDef type="UI2DEndTurnScoringButton" superType="UI2DButton">
		<propertyDef name="objTeamScore" type="Object" subType="TeamScore"/>
		<propertyDef name="objScoringOptions" type="Object" subType="ScoringOptions"/>
		
		<property name="nWidth" value="254"/>
		<property name="nHeight" value="28"/>
		<property name="objTeamScore" inheritFrom="objGetTeamScore.objTeamScore"/>
		<property name="objScoringOptions" inheritFrom="objScoringOptionsLookup.objScoringOptions"/>

		<object type="TeamScoreLookup" name="objGetTeamScore" >
			<property name="objPlayer" inheritFrom=".objDriver.objMyAvatar.objPlayer" />
			<property name="nTeamID" inheritFrom=".objDriver.objMyAvatar.objPlayer.objCountry.objTeamScoreRef.nTeamID" />
		</object>
				
		<object type="ScoringOptionsLookup" name="objScoringOptionsLookup">
			<property name="objPlayer" inheritFrom=".objDriver.objMyAvatar.objPlayer"/>
			<property name="strScoringOptionsName" inheritFrom=".objDriver.objMyAvatar.objGameState.strScoringOptionsName"/>
		</object>

		<object type="ButtonImageSet" name="objImageSet">
			<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
			<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button-over.tga"/>
			<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
		</object>

		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="2"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="25"/>
			<property name="nHeight" value="25"/>
			<property name="fileSource" value="art/2D/UI2DPolicyArea/EndTurn/notification-end-turn-get-region.tga"/>
		</object>
		
		
		<object type="UI2DTextBrownNoWrap" name="objTitle">
			<property name="nX" value="27"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="212"/>
			<property name="nHeight" value="14"/>
			<property name="nFontSize" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="getString(this.objScoringOptions.sidTitle)"/>
		</object>
		
		<object type="NumberSuffix" name="objNumberSuffix">
			<property name="nNumber" inheritFrom="objTeamScore.nRank"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="RankTitle">
			<property name="nX" value="27"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DEndTurnScoringButton.Rank)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="UI2DTextBlueNoWrap" name="RankValue">
			<property name="nX" computeFrom="this.RankTitle.nWidth + this.RankTitle.nX + 3"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="strText" computeFrom="
				if(
					exists(this.objTeamScore),
					this.objNumberSuffix.strOutput,
					'Defeated'
				)
			"/>
			<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nAssignedIPUs GT .objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nNeededIPUs, #990000FF, #603811FF)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="ScoreTitle">
			<property name="nX" computeFrom="this.RankValue.nX + this.RankValue.nWidth + 25"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DEndTurnScoringButton.Score)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="UI2DTextBlueNoWrap" name="ScoreValue">
			<property name="nX" computeFrom="this.ScoreTitle.nWidth + this.ScoreTitle.nX + 3"/>
			<property name="nY" value="14"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="strText" computeFrom="
				if(
					exists(this.objTeamScore),
					format(this.objTeamScore.nTotalScore, 0, true),
					'0'
				)
			"/>
			<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nAssignedIPUs GT .objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nNeededIPUs, #990000FF, #603811FF)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
				
	</objectDef>
	
	<objectDef type="UI2DTitleValue" superType="UI2DElement">
		<propertyDef name="strTitle" type="String"/>
		<propertyDef name="strValue" type="String"/>
		<propertyDef name="colTitleColor" type="Color" default="#603811FF"/>
		<propertyDef name="colColor" type="Color" default="#2A495EFF"/>
		<propertyDef name="nValueFontSize" type="int" default="14"/>
		<propertyDef name="bCenterValue" type="bool" default="false"/>
		<propertyDef name="nTitleFontSize" type="int" default="11"/>
		
		<property name="nWidth" computeFrom="if(this.objTitle.nWidth GT this.objValue.nWidth, this.objTitle.nWidth, this.objValue.nWidth)"/>
		<property name="nHeight" value="29"/>
		
		<object type="UI2DTextLightBrownNoWrap" name="objTitle">
			<property name="nX" value="0"/>
			<property name="nY" value="1"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="nHeight" value="11"/>
			<property name="haXAlign" computeFrom="if(this.bCenterValue, CENTER, LEFT)"/>
			<property name="colColor" inheritFrom="colTitleColor"/>
			<property name="strText" inheritFrom="strTitle"/>
			<property name="colColor" inheritFrom="colTitleColor"/>
			<property name="nFontSize" inheritFrom="nTitleFontSize"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="UI2DTextBlueNoWrap" name="objValue">
			<property name="nX" value="0"/>
			<property name="nY" computeFrom="this.objTitle.nY + this.objTitle.nHeight - 1"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="bVSizeToFit" value="true"/>
			<property name="haXAlign" computeFrom="if(this.bCenterValue, CENTER, LEFT)"/>
			<property name="strText" inheritFrom="strValue"/>
			<property name="nFontSize" inheritFrom="nValueFontSize"/>
			<property name="colColor" inheritFrom="colColor"/>
		</object>
		
	</objectDef>
		
	<objectDef type="UI2DInternationalEventList" superType="UI2DElement">
		<propertyDef name="objNotifications" type="Object" subType="FeedbackInstance" number="variable"/>
		<propertyDef name="objNotificationRefs" type="Object" subType="FeedbackRef" number="variable"/>

		<property name="nWidth" value="261"/>
		<property name="nHeight" computeFrom="this.objTitle.nHeight + this.objDivider.nHeight + this.objElements.nHeight + 3"/>
		<property name="bVisible" computeFrom="sizeOf(this.objNotifications) GT 0"/>
		
		<object type="Selection" name="objSelectFeedbackRefs">
			<property name="pathInput" value=".objDriver.objMyAvatar.objPlayer.objData.objCurrentNotificationList.objEndOfTurnFeedbackRefs"/>
			<property name="pathOutput" value="objNotificationRefs"/>
			<property name="expWhere" value="{Object}input ISA FeedbackRef"/>		
		</object>
		
		<object type="Selection" name="objTempSelection">
			<property name="pathInput" value=".objDriver.objMyAvatar.objPlayer.objData.objCurrentNotificationList.objEndOfTurnFeedback"/>
			<property name="pathOutput" value="objNotifications"/>
			<property name="expWhere" value="{Object}input ISA FeedbackInstance AND !input.objInstanceParams.objBools{bNationalEvent}.bValue AND contains(extractProperties(int, this.objNotificationRefs, FeedbackRef, 'nFeedbackID'), input.nID)"/>
		</object>		
		
		<object type="UI2DTextBrownNoWrap" name="objTitle">
			<property name="nX" value="32"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="215"/>
			<property name="nHeight" value="16"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="nFontSize" value="14"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="12"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DInternationalEventList.Title)"/>
		</object>
		
		<object type="UI2DDivider" name="objDivider">
			<property name="nX" value="32"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="223"/>
			<property name="nHeight" value="1"/>
			<property name="colColor" value="#998675FF"/>
		</object>
			
			
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="2"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="32"/>
			<property name="nHeight" value="32"/>
			<property name="fileSource" value="art/2D/UI2DPolicyArea/EndTurn/international-ervent-icon.tga"/>
		</object>
				
		<object type="UI2DFlowElement" name="objElements">
			<property name="nX" value="32"/>
			<property name="nY" value="20"/>
			<property name="nSpacing" value="3"/>

			<object type="UI2DInternationalEventListElement" name="objElements" tiedTo="objNotifications">
				<property name="objNotification" computeFrom="tiedTo"/>
			</object>
			
		</object>
		
	</objectDef>
	
	<objectDef type="UI2DNationalEventList" superType="UI2DElement">
		<propertyDef name="objEventNotifications" type="Object" subType="FeedbackInstance" number="variable"/>
		<propertyDef name="objNotificationRefs" type="Object" subType="FeedbackRef" number="variable"/>
		<propertyDef name="objSync" type="Object" subType="SyncShowSlideOut"/>

		<property name="nWidth" value="261"/>
		<property name="nHeight" computeFrom="this.objTitle.nHeight + this.objDivider.nHeight + this.objElements.nHeight + 3"/>
		<property name="bVisible" computeFrom="sizeOf(this.objEventNotifications) GT 0"/>
		
		<object type="Selection" name="objSelectFeedbackRefs">
			<property name="pathInput" value=".objDriver.objMyAvatar.objPlayer.objData.objCurrentNotificationList.objEndOfTurnFeedbackRefs"/>
			<property name="pathOutput" value="objNotificationRefs"/>
			<property name="expWhere" value="{Object}input ISA FeedbackRef"/>		
		</object>		
		
		<object type="Selection" name="objTempSelection">
			<property name="pathInput" value=".objDriver.objMyAvatar.objPlayer.objData.objCurrentNotificationList.objEndOfTurnFeedback"/>
			<property name="pathOutput" value="objEventNotifications"/>
			<property name="expWhere" value="{Object}input ISA FeedbackInstance AND input.objInstanceParams.objBools{bNationalEvent}.bValue AND contains(extractProperties(int, this.objNotificationRefs, FeedbackRef, 'nFeedbackID'), input.nID)"/>
		</object>		
		
		<object type="UI2DTextBrownNoWrap" name="objTitle">
			<property name="nX" value="32"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="223"/>
			<property name="nHeight" value="16"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="nFontSize" value="14"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="12"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DNationalEventList.Title)"/>
		</object>
		
		<object type="UI2DDivider" name="objDivider">
			<property name="nX" value="32"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="215"/>
			<property name="nHeight" value="1"/>
			<property name="colColor" value="#998675FF"/>
		</object>
		
		<object type="UI2DImage" name="objDecal">
			<property name="nX" value="2"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="26"/>
			<property name="nHeight" value="26"/>
			<property name="fileSource" computeFrom="cast(String, .objUI.filePerCountryArtDir) + .objDriver.objMyAvatar.objPlayer.objCountry.strFlagName + '/1919DecalWShadow.tga'"/>
		</object>
		
		<object type="UI2DFlowElement" name="objElements">
			<property name="nX" value="32"/>
			<property name="nY" value="20"/>
			<property name="nSpacing" value="3"/>
			
			<object type="UI2DNationalEventListElement" name="objElements" tiedTo="objEventNotifications">
				<property name="objEventNotification" computeFrom="tiedTo"/>
			</object>
			
		</object>
		
		
	</objectDef>	
	
	<objectDef type="UI2DProductionListElement" superType="UI2DButton">
		<propertyDef name="objCities" type="Object" subType="City" number="variable"/>
		<propertyDef name="objSync" type="Object" subType="SyncShowSlideOutEndTurn"/>
		
		<property name="nWidth" value="254"/>
		<property name="nHeight" value="28"/>
		
		<object type="Selection" name="objGetCities">
			<property name="pathInput" value=".objDriver.objMyAvatar.objPlayer.objView.objCities" />
			<property name="pathOutput" value="objCities"/>
			<property name="expWhere" value="{Object}input ISA City AND input.nControllerID == .objDriver.objMyAvatar.objPlayer.objCountry.nCountryID AND !exists(input.objFactory.objWorkOrder)" />
		</object>
		
		<object type="ButtonImageSet" name="objImageSet">
			<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
			<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button-over.tga"/>
			<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
		</object>
	
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="2"/>
			<property name="nY" value="1"/>
			<property name="nWidth" value="28"/>
			<property name="nHeight" value="24"/>
			<property name="fileSource" value="art/2D/UI2DPolicyArea/EndTurn/notification-end-turn-factory.tga"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objNotificationText">
			<property name="nX" value="27"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DProductionListElement.Title)"/>
			<property name="nFontSize" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objIdleCitiesTitle">
			<property name="nX" value="27"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DProductionListElement.DescCities)"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objIdleCities">
			<property name="nX" computeFrom="this.objIdleCitiesTitle.nX + this.objIdleCitiesTitle.nWidth + 3"/>
			<property name="nY" value="14"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="format(sizeOf(this.objCities), 0, true) + '/' + format(sizeOf(.objDriver.objMyAvatar.objPlayer.objCountry.objControlledCities), 0, true)"/>
			<property name="colColor" computeFrom="if(sizeOf(this.objCities) GT 0, #990000FF, #603811FF)"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objIPUOutputTitle">
			<property name="nX" computeFrom="this.objIPUOutputValue.nWidth + this.objIPUOutputValue.nX + 3"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="haXAlign" value="RIGHT"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DProductionListElement.DescIPUs)"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objIPUOutputValue">
			<property name="nX" value="8"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="haXAlign" value="RIGHT"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="cast(String, .objDriver.objMyAvatar.objPlayer.objCountry.nFactoryOutput) + '/' + cast(String, .objDriver.objMyAvatar.objPlayer.objCountry.nFactoryCapacity)"/>
			<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.nFactoryOutput LT .objDriver.objMyAvatar.objPlayer.objCountry.nFactoryCapacity, #990000FF, #603811FF)"/>
		</object>
		
		<object type="CmdBlock" name="objSetShow">
			<property name="bExecute" inheritFrom="bButtonPressed"/>

			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowResearch"/>
				<property name="expRession" value="false"/>
			</object>	
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="objSync.bShow"/>
				<property name="expRession" value="true"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowIndustrialProduction"/>
				<property name="expRession" value="true"/>
			</object>	
			
		</object>
		
		
		
	</objectDef>
	
	<objectDef type="UI2DResearchListElement" superType="UI2DButton">
		<propertyDef name="objSync" type="Object" subType="SyncShowSlideOutEndTurn"/>
		
		<property name="nWidth" value="254"/>
		<property name="nHeight" value="28"/>
				
		<object type="ButtonImageSet" name="objImageSet">
			<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
			<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button-over.tga"/>
			<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
		</object>
	
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="2"/>
			<property name="nY" value="1"/>
			<property name="nWidth" value="26"/>
			<property name="nHeight" value="26"/>
			<property name="fileSource" value="art\2D\global\unit-template-icons\2626\research.tga"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objNotificationText">
			<property name="nX" value="27"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DResearchListElement.Title)"/>
			<property name="nFontSize" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="InProgressResearchProjectsLookupWithSelection" name="objResearchLookup">
			<property name="objPlayer" inheritFrom=".objDriver.objMyAvatar.objPlayer"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objResearchAssignedDemandTitle">
			<property name="nX" value="27"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DResearchListElement.DescIPUsAssigned)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objResearchAssignedDemand">
			<property name="nX" computeFrom="this.objResearchAssignedDemandTitle.nWidth + this.objResearchAssignedDemandTitle.nX + 3"/>
			<property name="nY" value="14"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="strText" computeFrom="format(.objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nAssignedIPUs, 0, true) + '/' + format(.objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nNeededIPUs, 0, true)"/>
			<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nAssignedIPUs GT .objDriver.objMyAvatar.objPlayer.objCountry.objGovData.objResearchState.nNeededIPUs, #990000FF, #603811FF)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
		
		<object type="CmdBlock" name="objSetShow">
			<property name="bExecute" inheritFrom="bButtonPressed"/>

			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowIndustrialProduction"/>
				<property name="expRession" value="false"/>
			</object>	
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowWorldMarket"/>
				<property name="expRession" value="false"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="objSync.bShow"/>
				<property name="expRession" value="true"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowResearch"/>
				<property name="expRession" value="true"/>
			</object>	
			
		</object>
			
	</objectDef>
	
	<objectDef type="UI2DWorldMarketListElement" superType="UI2DButton">
		<propertyDef name="objSync" type="Object" subType="SyncShowSlideOutEndTurn"/>
		
		<property name="nWidth" value="254"/>
		<property name="nHeight" value="28"/>
				
		<object type="ButtonImageSet" name="objImageSet">
			<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
			<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button-over.tga"/>
			<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/end-turn-info-button.tga"/>
		</object>
	
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="-1"/>
			<property name="nY" value="1"/>
			<property name="nWidth" value="32"/>
			<property name="nHeight" value="26"/>
			<property name="fileSource" value="art\2D\UI2DPolicyArea\EndTurn\world-market-icon.tga"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objNotificationText">
			<property name="nX" value="27"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DWorldMarketListElement.Title)"/>
			<property name="nFontSize" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
				
		<object type="UI2DTextBrownNoWrap" name="objResearchAssignedDemandTitle">
			<property name="nX" value="27"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.UI2DWorldMarketListElement.TradeOffers)"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
		</object>
			
		<object type="UI2DResourceOnTheWorldMarketGrouping" name="objResourceIcons">
			<property name="nX" value="108"/>
			<property name="nY" value="7"/>		
		</object>
		
		<object type="CmdBlock" name="objSetShow">
			<property name="bExecute" inheritFrom="bButtonPressed"/>

			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowIndustrialProduction"/>
				<property name="expRession" value="false"/>
			</object>	
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowResearch"/>
				<property name="expRession" value="false"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="objSync.bShow"/>
				<property name="expRession" value="true"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowWorldMarket"/>
				<property name="expRession" value="true"/>
			</object>	
			
		</object>
			
	</objectDef>
	
	<objectDef type="UI2DResourceOnTheWorldMarketGrouping" superType="UI2DElement">
	
		<object type="UI2DResourceOnTheWorldMarket" name="objElements" tiedTo=".objDriver.objMyAvatar.objPlayer.objCountry.objResources">
			<property name="objResource" computeFrom="tiedTo"/>
		</object>
	
		<object name="objLayout" type="UILMFlow">
			<property name="objSorter" inheritFrom="objSorter"/>
			<property name="orientAtion" value="HORIZONTAL"/>
			<property name="nSpacing" value="5"/>
		</object>
		
		<object type="Sorter" name="objSorter">
			<property name="pathToStorage" value="objElements"/>
			<property name="otSortedType" value="UI2DResourceOnTheWorldMarket"/>
			<property name="strSortBy" value="objResource.nSortBy"/>
			<property name="bAscending" value="true"/>
			<property name="strSortMethod" value="Numeric"/>
		</object>
	
	</objectDef>
	
	<objectDef type="UI2DResourceOnTheWorldMarket" superType="UI2DElement">
		<propertyDef name="objResource" type="Object" subType="Resource"/>
		
		<property name="nWidth" value="18"/>
		<property name="nHeight" value="18"/>
		<property name="bVisible" computeFrom="sizeOf(this.objOffersLookups.objOffers) GT 0"/>
		
		<object type="TradeOffersByResourceLookup" name="objOffersLookups">
			<property name="objPlayer" inheritFrom=".objDriver.objMyAvatar.objPlayer"/>
			<property name="strResource" inheritFrom="objResource.strName"/>
		</object>
		
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="0"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="18"/>
			<property name="nHeight" value="18"/>
			<property name="fileSource" computeFrom="'../../../ui/art/2D/resources/' + this.objResource.strName + '-small.tga'"/>
		</object>
		
	</objectDef>
	
	<objectDef type="FinancialReportListElement" superType="UI2DButton">
		<propertyDef name="objSync" type="Object" subType="SyncShowSlideOutEndTurn"/>
		<propertyDef name="n64Balance" type="int64"/>
		
		<property name="n64Balance" computeFrom="(.objDriver.objMyAvatar.objPlayer.objCountry.n64GovernmentRevenue) - (.objDriver.objMyAvatar.objPlayer.objCountry.n64GovernmentSpending)"/>
		<property name="nWidth" value="254"/>
		<property name="nHeight" value="41"/>
		
		<object type="ButtonImageSet" name="objImageSet">
			<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/financial-report-button.tga"/>
			<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/financial-report-button-over.tga"/>
			<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/financial-report-button.tga"/>
		</object>

		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="2"/>
			<property name="nY" value="1"/>
			<property name="nWidth" value="26"/>
			<property name="nHeight" value="26"/>
			<property name="fileSource" value="art\2D\UI2DPolicyArea\EndTurn\economic.tga"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objTitle">
			<property name="nX" value="27"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="185"/>
			<property name="nHeight" value="12"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.FinancialReportListElement.Title)"/>
			<property name="nFontSize" value="12"/>
			<property name="haHAlign" value="LEFT"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objDescNet">
			<property name="nX" value="27"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="nWidth" value="50"/>
			<property name="haHAlign" value="LEFT"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="10"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.FinancialReportListElement.Balance)"/>
		</object>
		
		<object type="UI2DTextLightBrownNoWrap" name="objDescTreasury">
			<property name="nX" value="27"/>
			<property name="nY" value="27"/>
			<property name="nWidth" value="50"/>
			<property name="nHeight" value="12"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="getString(SID.UI.UI2DPolicyAreaEndTurn.FinancialReportListElement.Treasury)"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objNet">
			<property name="nX" computeFrom="this.objDescNet.nX + this.objDescNet.nWidth + 5"/>
			<property name="nY" value="14"/>
			<property name="nHeight" value="12"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="nFontSize" value="11"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="'$' + format(this.n64Balance, 0, true)"/>
			<property name="colColor" computeFrom="if(this.n64Balance LT 0, #990000FF, #3F6617FF)"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objTreasury">
			<property name="nX" computeFrom="this.objDescTreasury.nX + this.objDescTreasury.nWidth + 5"/>
			<property name="nY" value="27"/>
			<property name="nHeight" value="12"/>
			<property name="bHSizeToFit" value="true"/>
			<property name="nFontSize" value="11"/>
			<property name="vaVAlign" value="BASELINE"/>
			<property name="nBaselineY" value="9"/>
			<property name="strText" computeFrom="'$' + format(.objDriver.objMyAvatar.objPlayer.objCountry.n64GovernmentWealth, 0, true)"/>
			<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.n64GovernmentWealth LT 0, #990000FF, #3F6617FF)"/>
		</object>
		
		<object type="CmdBlock" name="objSetShow">
			<property name="bExecute" inheritFrom="bButtonPressed"/>

			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowIndustrialProduction"/>
				<property name="expRession" value="false"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowWorldMarket"/>
				<property name="expRession" value="false"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">
				<property name="pathDest" value="objSync.bShow"/>
				<property name="expRession" value="true"/>
			</object>
			
			<object type="CmdSetPropFromExp" name="objCommands">				
				<property name="pathDest" value="objSync.bShowFinancialReport"/>
				<property name="expRession" value="true"/>
			</object>	
			
		</object>
		
	</objectDef>
	
	<objectDef type="UI2DPenaltyRow" superType="UI2DElement">
		<propertyDef name="objRoot" type="Object" subType="UI2DMERoot"/>

		<property name="nWidth" value="254"/>
		<property name="nHeight" value="30"/>
		
		<property name="objRoot" inheritFrom=".objUI.objRoot"/>
		
		<object type="UI2DImage" name="objBG">
			<property name="nX" value="0"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="254"/>
			<property name="nHeight" value="30"/>
			<property name="fileSource" value="art/2D/UI2DPolicyArea/EndTurn/penalty-row-bg.tga"/>
		</object>
		
		<object type="CountryProductionLookup" name="objCountryProductionLookup">
			<property name="objPlayer" inheritFrom=".objDriver.objMyAvatar.objPlayer" />
			<property name="nCountryID" inheritFrom=".objDriver.objMyAvatar.objPlayer.objCountry.nCountryID" />
		</object>	
		
		<object type="CmdSetPropFromExp" name="objRefresh">
			<property name="bExecute" inheritFrom="objRoot.bRefreshStaticData"/>
			<property name="pathDest" value="objCountryProductionLookup.objPlayer"/>
			<property name="expRession" value="this.objCountryProductionLookup.objPlayer"/>
		</object>
		
		<object type="MPUGrowthLookup" name="objMPUGrowthLookup">
			<property name="objCountry" inheritFrom=".objDriver.objMyAvatar.objPlayer.objCountry"/>
		</object>
		
		<object type="UI2DFlowElement" name="objIconValuePairLayout">
			<property name="nX" value="4"/>
			<property name="nY" value="0"/>
			<property name="orientAtion" value="HORIZONTAL" />
			<property name="nSpacing" value="0" />
			<object type="UI2DEndTurnPenaltyIconValuePair" name="objElements">
				<property name="fileIcon" value="art/2D/UI2DPolicyArea/EndTurn/ipus-lost-to-lack-of-goods-icon.tga"/>
				<property name="strValue" computeFrom="format(-.objDriver.objMyAvatar.objPlayer.objCountry.nGoodsPenalty) + '%'"/>
				<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.nGoodsPenalty == 0, #3F6617FF, #990000FF)"/>
				<property name="strToolTip" computeFrom="
					buildFormattedString(
						getFormatString(FSID.UI.UI2DPolicyAreaEndTurn.UI2DPenaltyRow.Goods_Shortage_Penalty),
						'IPUsLostToGoodsPenalty',
						format(this.objCountryProductionLookup.nIPUsLostToGoodsPenalty, 0, true),
						'PercentGoodsSupplied',
						format(.objDriver.objMyAvatar.objPlayer.objCountry.nPercentGoodsSupplied, 0, true),
						'GoodsGraceLevel',
						format(.objDriver.objMyAvatar.objPlayer.objCountry.nGoodsGraceLevel, 0, true)
					)
				"/>
			</object>
			<object type="UI2DEndTurnPenaltyIconValuePair" name="objElements">
				<property name="fileIcon" value="art/2D/UI2DPolicyArea/EndTurn/ipus-lost-to-debt-icon.tga"/>
				<property name="strValue" computeFrom="format(-.objDriver.objMyAvatar.objPlayer.objCountry.nDeficitPenalty) + '%'"/>
				<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.nDeficitPenalty == 0, #3F6617FF, #990000FF)"/>
				<property name="strToolTip" computeFrom="
					buildFormattedString(
						getFormatString(FSID.UI.UI2DPolicyAreaEndTurn.UI2DPenaltyRow.Deficit_Spending_Penalty),
						'IPUsLostToDeficit',
						format(this.objCountryProductionLookup.nIPUsLostToDeficit, 0, true),
						'GovernmentWealth',
						if (.objDriver.objMyAvatar.objPlayer.objCountry.n64GovernmentWealth GTE 0, format(0, 0, true), format(.objDriver.objMyAvatar.objPlayer.objCountry.n64GovernmentWealth, 0, true))
					)
				"/>
			</object>
			<object type="UI2DEndTurnPenaltyIconValuePair" name="objElements">
				<property name="fileIcon" value="art/2D/UI2DPolicyArea/EndTurn/ipus-lost-to-lack-of-food-icon.tga"/>
				<property name="strValue" computeFrom="format(-.objDriver.objMyAvatar.objPlayer.objCountry.nFoodPenalty) + '%'"/>
				<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.nFoodPenalty == 0, #3F6617FF, #990000FF)"/>
				<property name="strToolTip" computeFrom="
					buildFormattedString(
						getFormatString(FSID.UI.UI2DPolicyAreaEndTurn.UI2DPenaltyRow.Food_Shortage_Penalty),
						'nPenaltyMPUs',
						format(this.objMPUGrowthLookup.nPenaltyMPUs, 0, true),
						'nPercentFoodSupplied',
						format(.objDriver.objMyAvatar.objPlayer.objCountry.nPercentFoodSupplied, 0, true)
					)"/>
			</object>
			
			<object type="UI2DEndTurnPenaltyIconValuePair" name="objElements">
				<property name="fileIcon" value="art/2D/UI2DPolicyArea/EndTurn/combat-penalty.tga"/>
				<property name="strValue" computeFrom="cast(String, -.objDriver.objMyAvatar.objPlayer.objCountry.nArmsPenalty) + '%'"/>
				<property name="colColor" computeFrom="if(.objDriver.objMyAvatar.objPlayer.objCountry.nArmsPenalty == 0, #3F6617FF, #990000FF)"/>
				<property name="strToolTip" computeFrom="
					buildFormattedString(
						getFormatString(FSID.UI.UI2DPolicyAreaEndTurn.UI2DPenaltyRow.Arms_Shortage_Penalty),
						'PercentArmsSupplied',
						format(.objDriver.objMyAvatar.objPlayer.objCountry.nPercentArmsSupplied, 0, true)
					)
				"/>
			</object>
		</object>
		
	</objectDef>
	
	<objectDef type="UI2DEndTurnPenaltyIconValuePair" superType="UI2DElement">
		<propertyDef name="fileIcon" type="File"/>
		<propertyDef name="strValue" type="String"/>
		<propertyDef name="colColor" type="Color" default="#362E2BFF"/>
		
		<property name="nWidth" value="60"/>
		<property name="nHeight" value="28"/>
	
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="0"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="28"/>
			<property name="nHeight" value="28"/>
			<property name="fileSource" inheritFrom="fileIcon"/>
		</object>
		
		<object type="UI2DTextBrownNoWrap" name="objValue">
			<property name="nX" value="25"/>
			<property name="nY" value="0"/>
			<property name="nHeight" value="28"/>
			<property name="nWidth" value="35"/>
			<property name="nFontSize" value="12"/>
			<property name="colColor" inheritFrom="colColor"/>
			<property name="strText" inheritFrom="strValue"/>
		</object>
		
	</objectDef>
	
	<objectDef type="UI2DInternationalEventListElement" superType="UI2DElement">
		<propertyDef name="objNotification" type="Object" subType="FeedbackInstance"/>
		<propertyDef name="objLinkGO" type="Object" subType="LinkRefGO"/>		
		
		<property name="nWidth" value="215"/>
		<property name="nHeight" computeFrom="if(this.objTitle.nHeight + this.objDesc.nHeight + 5 GT 28, this.objTitle.nHeight + this.objDesc.nHeight + 5, 28)"/>
		
		<property name="objLinkGO" inheritFrom="objNotification.objLink" />
		
		<object type="UI2DElement" name="objMask">
			<property name="nWidth" inheritFrom="nWidth"/>
			<property name="nHeight" inheritFrom="nHeight"/>
			<property name="nDepth" value="100"/>
			<property name="bVisible" computeFrom="exists(this.objLinkGO)"/>
		</object>

		<object type="ButtonController" name="objButtonController">
			<property name="pathToUIElement" value="objMask"/>
			<property name="strClickSoundName" value="ButtonClickDefault"/>
		</object>
		
		<object type="UI2DVResizeButtonNoClickOption" name="objImage">
			<property name="nX" value="0"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="215"/>
			<property name="nMiddleHeight" computeFrom="this.nHeight - 8"/>
			<property name="nTopBottomHeight" value="4"/>
			<property name="bHighlighted" inheritFrom="objButtonController.bHighlighted"/>
			<property name="bPressed" inheritFrom="objButtonController.bButtonPressed"/>
			<property name="bNoClick" computeFrom="!exists(this.objLinkGO)"/>
			
			<object type="FourStateImageSet" name="objTop">
				<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-top.tga"/>
				<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-top.tga"/>
				<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-top-over.tga"/>
				<property name="fileNoClickImageFile" value="art/2D/UI2DPolicyArea/EndTurn/not-clickable-event-top.tga"/>
			</object>
			
			<object type="FourStateImageSet" name="objMiddle">
				<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-middle.tga"/>
				<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-middle.tga"/>
				<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-middle-over.tga"/>
				<property name="fileNoClickImageFile" value="art/2D/UI2DPolicyArea/EndTurn/not-clickable-event-middle.tga"/>
			</object>
			
			<object type="FourStateImageSet" name="objBottom">
				<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-bottom.tga"/>
				<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-bottom.tga"/>
				<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-bottom-over.tga"/>
				<property name="fileNoClickImageFile" value="art/2D/UI2DPolicyArea/EndTurn/not-clickable-event-bottom.tga"/>
			</object>
			
		</object>
		
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="1"/>
			<property name="nY" value="3"/>
			<property name="nWidth" value="28"/>
			<property name="nHeight" value="24"/>
			<property name="fileSource" computeFrom="'../../../ui/art/2D/UI2DPolicyArea/EndTurn/' + this.objNotification.objInstanceParams.objStrings{strIcon}.strValue"/>
		</object>
		
		<object type="UI2DTextBrownWrap" name="objTitle">
			<property name="nX" value="32"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="180"/>
			<property name="bVSizeToFit" value="true"/>
			<property name="strText" inheritFrom="objNotification.objInstanceParams.objStrings{strTitle}.strValue"/>
			<property name="haHAlign" value="LEFT"/>
		</object>
		
		<object type="UI2DTextDarkBrownWrap" name="objDesc">
			<property name="nX" value="32"/>
			<property name="nY" computeFrom="this.objTitle.nHeight + this.objTitle.nY + 1"/>
			<property name="nWidth" value="180"/>
			<property name="bVSizeToFit" value="true"/>
			<property name="strText" inheritFrom="objNotification.objInstanceParams.objStrings{strDesc}.strValue"/>
			<property name="haHAlign" value="LEFT"/>
		</object>
				
		<object type="CmdCenterOverGO" name="objCmdCenterGO" >
			<property name="bExecute" inheritFrom="objButtonController.bButtonClicked" />
			<property name="bShouldExecute" computeFrom="exists(this.objLinkGO)" />
			
			<property name="nGOID" inheritFrom="objLinkGO.nGOID" />
		</object>				
				
	</objectDef>	
	
	<objectDef type="UI2DNationalEventListElement" superType="UI2DElement">
		<propertyDef name="objRoot" type="Object" subType="UI2DMERoot"/>
		<propertyDef name="objPanel" type="Object" subType="UI2DPolicyAreaEndTurn"/>
		
		<propertyDef name="objEventNotification" type="Object" subType="FeedbackInstance"/>
		<propertyDef name="objLink" type="Object" subType="LinkRef"/>
		<propertyDef name="objLinkGO" type="Object" subType="LinkRefGO"/>
		<propertyDef name="objLinkUI" type="Object" subType="LinkRefUIPanel"/>
		
		<property name="nWidth" value="215"/>
		<property name="nHeight" computeFrom="if(this.objTitle.nHeight + this.objDesc.nHeight + 5 GT 28, this.objTitle.nHeight + this.objDesc.nHeight + 5, 28)"/>
		
		<property name="objRoot" inheritFrom=".objUI.objRoot"/>
		<property name="objPanel" inheritFrom="objRoot.objOffice"/>
		
		<property name="objLink" inheritFrom="objEventNotification.objLink" />
		<property name="objLinkGO" inheritFrom="objLink" />
		<property name="objLinkUI" inheritFrom="objLink" />
		
		<object type="UI2DElement" name="objMask">
			<property name="nWidth" inheritFrom="nWidth"/>
			<property name="nHeight" inheritFrom="nHeight"/>
			<property name="nDepth" value="100"/>
			<property name="bVisible" computeFrom="exists(this.objLink)"/>
		</object>
		
		<object type="ButtonController" name="objButtonController">
			<property name="pathToUIElement" value="objMask"/>
			<property name="strClickSoundName" value="ButtonClickDefault"/>
		</object>
		
		<object type="UI2DVResizeButtonNoClickOption" name="objImage">
			<property name="nX" value="0"/>
			<property name="nY" value="0"/>
			<property name="nWidth" value="215"/>
			<property name="nMiddleHeight" computeFrom="this.nHeight - 8"/>
			<property name="nTopBottomHeight" value="4"/>
			<property name="bHighlighted" inheritFrom="objButtonController.bHighlighted"/>
			<property name="bPressed" inheritFrom="objButtonController.bButtonPressed"/>
			<property name="bNoClick" computeFrom="!exists(this.objLink)"/>
			
			<object type="FourStateImageSet" name="objTop">
				<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-top.tga"/>
				<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-top.tga"/>
				<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-top-over.tga"/>
				<property name="fileNoClickImageFile" value="art/2D/UI2DPolicyArea/EndTurn/not-clickable-event-top.tga"/>
			</object>
			
			<object type="FourStateImageSet" name="objMiddle">
				<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-middle.tga"/>
				<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-middle.tga"/>
				<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-middle-over.tga"/>
				<property name="fileNoClickImageFile" value="art/2D/UI2DPolicyArea/EndTurn/not-clickable-event-middle.tga"/>
			</object>
			
			<object type="FourStateImageSet" name="objBottom">
				<property name="fileUpImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-bottom.tga"/>
				<property name="fileDownImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-bottom.tga"/>
				<property name="fileHighlightImageFile" value="art/2D/UI2DPolicyArea/EndTurn/clickable-event-bottom-over.tga"/>
				<property name="fileNoClickImageFile" value="art/2D/UI2DPolicyArea/EndTurn/not-clickable-event-bottom.tga"/>
			</object>
			
		</object>
		
		<object type="UI2DImage" name="objIcon">
			<property name="nX" value="1"/>
			<property name="nY" value="3"/>
			<property name="nWidth" value="28"/>
			<property name="nHeight" value="24"/>
			<property name="fileSource" computeFrom="'../../../ui/art/2D/UI2DPolicyArea/EndTurn/' + this.objEventNotification.objInstanceParams.objStrings{strIcon}.strValue"/>
		</object>
		
		<object type="UI2DTextBrownWrap" name="objTitle">
			<property name="nX" value="32"/>
			<property name="nY" value="2"/>
			<property name="nWidth" value="180"/>
			<property name="bVSizeToFit" value="true"/>
			<property name="strText" inheritFrom="objEventNotification.objInstanceParams.objStrings{strTitle}.strValue"/>
			<property name="haHAlign" value="LEFT"/>
		</object>
		
		<object type="UI2DTextDarkBrownWrap" name="objDesc">
			<property name="nX" value="32"/>
			<property name="nY" computeFrom="this.objTitle.nHeight + this.objTitle.nY + 1"/>
			<property name="nWidth" value="180"/>
			<property name="bVSizeToFit" value="true"/>
			<property name="strText" inheritFrom="objEventNotification.objInstanceParams.objStrings{strDesc}.strValue"/>
			<property name="haHAlign" value="LEFT"/>
		</object>
		
		<object type="GOLookUp" name="objGetGO">
			<property name="objPlayer" inheritFrom=".objDriver.objMyAvatar.objPlayer"/>
			<property name="nGOID" inheritFrom="objLinkGO.nGOID"/>
		</object>
		
		<object type="CmdBlock" name="objRun">
			<property name="bExecute" inheritFrom="objButtonController.bButtonClicked" />
			
			<object type="CmdBlock" name="objCommands"> <!-- GO Cmds -->
				<property name="bShouldExecute" computeFrom="exists(this.objLinkGO)"/>

				<object type="CmdRequestSelectedObjectPopUpFromMap" name="objCommands">
					<property name="objGO" inheritFrom="objGetGO.objGO"/>
				</object>

				<object type="CmdCenterOverGO" name="objCommands" >
					<property name="nGOID" inheritFrom="objLinkGO.nGOID" />
				</object>
			</object>
			
			<object type="CmdBlock" name="objCommands">
				<property name="bShouldExecute" computeFrom="exists(this.objLinkUI)"/>
				
				<object type="CmdSetPropFromExp" name="objCommands">
					<property name="bShouldExecute" computeFrom="this.objLinkUI.strPanelName == 'UI2DSlidePanelResearchProjects'"/>
					<property name="pathDest" value="objPanel.bTriggerResearch"/>
					<property name="expRession" value="true"/>
				</object>
				
				<object type="CmdSetPropFromExp" name="objCommands">
					<property name="bShouldExecute" computeFrom="this.objLinkUI.strPanelName == 'UI2DWorldMarketSlidePanel'"/>
					<property name="pathDest" value="objPanel.bTriggerWorldMarket"/>
					<property name="expRession" value="true"/>
				</object>
					
			</object>
								
		</object>
				
	</objectDef>	
</objectDefs>
