base_sub_window = {
	name = "select_move_window"
	size = { 450 578 }
	position = { 826 -3 }
	parentanchor = bottom
	movable = yes

	blockoverride "Title_text"
	{
		text = "MOVEPOP_TITLE"
	}

	blockoverride "White_buttons"
	{
		spacing = 4
		button_close = {
			onclick = "[SelectMoveWindow.OnClose]"
			tooltip = "CLOSE"
		}
	}

	state = {
		name = trigger_move_pop
		on_start = "[SelectMoveWindow.OnClose]"
	}

	scrollarea = {
		position = { 14 38 }
		size = { 428 528 }
		scrollbarpolicy_horizontal = always_off

		scrollbar_vertical = {
			using = VerticalScrollBar
		}

		scrollwidget = {
			dynamicgridbox = {
				size = { 416 528 }
				datamodel = "[SelectMoveWindow.GetTargets]"

				item = {
					container = {
						list_entry = { size = { 100% 45 } }
						container = {
							position = { 0 0 }
							textbox = {
								position = { 76 0 }
								autoresize = yes
								using = BaseFontS
								using = Black_FontColor
								text = "[SelectMoveGlue.GetPop.GetReligion.GetName]"
								tooltip = "[SelectMoveGlue.GetPop.GetReligion.GetTooltip]"
							}
							textbox = {
								position = { 76 19 }
								autoresize = yes
								using = BaseFontS
								using = Black_FontColor
								text = "[SelectMoveGlue.GetPop.GetCulture.GetName]"
							}
							icon_and_text = {
								position = { 2 7 }
								size = { 69 0 }
								blockoverride "Icon" { texture = "[GetPopIcon(SelectMoveGlue.GetPop.GetType)]" }
								blockoverride "Text" { text = "[SelectMoveGlue.GetCount]" }
								tooltip = "[SelectMoveGlue.GetPop.GetType.GetName|T]"

							}

							icon = {
								position = { 148 2 }
								size = { 40 40 }
								texture = "[GetTradeGoodsIcon(SelectMoveGlue.GetPop.GetProvince.GetTradeGoods)]"
								tooltip = "[SelectMoveGlue.GetPop.GetProvince.GetTradeGoods.GetTooltip]"
							}

							container = {
								position = { 196 9 }
								textbox = {
									autoresize = yes
									align = center
									using = MarbleButtonFont
									text = "[SelectMoveGlue.GetPop.GetProvince.GetPopulation('total')]/[SelectMoveGlue.GetPop.GetProvince.GetPopulationCapacityValue]"
								}
							}

						}




						text_button_square = {
							tooltip = "[SelectMoveGlue.GetTooltip]"
							position = { 250 7 }
							size = { 164 0 }
							blockoverride "Center_text" {
								text = "SelectMoveGlue_text"
								elide = right
								max_width = 120
							}
							blockoverride "On_click"
							{
								enabled = "[SelectMoveGlue.CanMove]"
								onclick = "[SelectMoveGlue.OnClick]"
							}
							blockoverride "ClickSound"
							{
								clicksound = "event:/SFX/UI/Province/sfx_ui_province_pop_move"
								oversound = "event:/SFX/UI/Generic/sfx_ui_generic_mouse_over"
							}
							onmousehierarchyenter = "[SetHighlightProvince( SelectMoveGlue.GetPop.GetProvince.GetId )]"
							onmousehierarchyleave = "[ClearHighlightColors]"
						}

					}

				}
			}
		}
	}
}
