guiTypes = {

	@build_info_x_pos = 120
	@planet_view_height = 568
	@module_width = 540
	@tile_info_module_width = 328
	@tile_progress_bar_height = 7
	@tile_info_x = 128
	@tile_title_y = 30
	@title_desc_y = 68

	positionType = {
		name = "planet_view_height_minus_constant"
		position = { x = -1 y = 80 }
	}

	positionType = {
		name = "planet_view_height_minimum_contant"
		position = { x = -1 y = @planet_view_height }
	}

	positionType = {
		name = "planet_view_height_maximum_constant"
		position = { x = -1 y = 800 }
	}

	positionType = {
		name = "planet_view_panel_height_minus_constant"
		position = { x = -1 y = 53 }
	}

	positionType = {
		name = "planet_view_background_height_minus_constant"
		position = { x = -1 y = 36 }
	}

	# moves planet_name and colony_rename_button if screen height is low
	positionType = {
		name = "planet_name_small_resolution_pos"
		position = { x = 65 y = -3 }
	}

	positionType = {
		name = "planet_name_big_resolution_pos"
		position = { x = 13 y = -3 }
	}

	# How small the window must be before it moves planet_name
	positionType = {
		name = "planet_name_move_size_y"
		position = { x = 0 y = 640 }
	}
	

	containerWindowType = {
		name = "planet_view"
		orientation = lower_left
		size = { width=563 height=@planet_view_height }
		origo = lower_left

		show_position = { x = 4 y = -32 }
		hide_position = { x = -563 y = -32 }
		animation_time = 200
		animation_type = decelerated

		containerWindowType = {
			name = "background_window"
			size = { width = 562 height = 1 }
			position = { x = 0 y = 264 }		# Y Controlls upper part of steaching middle

			background = {
				name = "planet_view_bg"
				quadTextureSprite = "GFX_planet_bg_tile"
			}
		}

		iconType = {
			name = "planet_bg_top"
			spriteType = "GFX_planet_bg_top"
			position = { x = 0 y = -8 }
			orientation = upper_left
		}

		iconType = {
			name = "planet_bg_bottom"
			spriteType = "GFX_planet_bg_bottom"
			position = { x = 0 y = -339 }
			orientation = lower_left
		}

		# Header
		buttonType = {
			name = "colony_rename_button"
			quadTextureSprite = "gfx_transparency_button"
			# Position set by code
			size = { x = 278 y = 18 }
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_bg"
			position = { x = -10 y = -23 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line"
			position = { x = 6 y = 14 }
		}

		instantTextBoxType = {
			name = "planet_name"
			font = "malgun_goth_24"
			text = ""
			# Position set by code
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "zoom_to_planet_button"
			quadTextureSprite = "GFX_fleetview_focus"
			position = { x = 481 y = 8 }
			pdx_tooltip = "ZOOM_TO_PLANET"
			scale = 1.0
			shortCut = "q"
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = 516 y = 8 }
			orientation = upper_left
			shortcut = "ESCAPE"
			clicksound = "back_click"
		}

		# Modular Content
		smoothListboxType = {
			name = "modular_content"
			position = { x = 10 y = 35 }
			backGround = ""
			size = { x = @module_width y = 480 }
			scrollbarType = "standardlistbox_slider"
			borderSize = { x = 0 y = 0 }
			orientation = "UPPER_LEFT"
		}

		@tab_height = -45

		buttonType = { # This is to capture any click-through
			name = "tabs_transparent_bg"
			quadTextureSprite = "GFX_tiled_window_transparent"
			position = { x= 0 y = @tab_height }
			orientation = lower_left
			size = { x = 563 y = 42 }
		}

		# Planet Tab
		buttonType = {
			name = "planet_tab"
			quadTextureSprite = "GFX_tab_1_inactive"
			position = { x= -20 y = @tab_height }
			orientation = lower_left
			buttonText = "PLANET_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "z"
		}

		buttonType = {
			name = "planet_tab_active"
			quadTextureSprite = "GFX_tab_1_active"
			position = { x= -20 y = @tab_height }
			orientation = lower_left
			buttonText = "PLANET_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "z"
		}

		# Tiles Tab
		buttonType = {
			name = "tiles_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 109 y = @tab_height }
			orientation = lower_left
			buttonText = "TILES_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "x"
		}

		buttonType = {
			name = "tiles_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 109 y = @tab_height }
			orientation = lower_left
			buttonText = "TILES_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "x"
		}

		# Ground Combat Tab
		buttonType = {
			name = "ground_combat_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 245 y = @tab_height }
			orientation = lower_left
			buttonText = "GROUND_COMBAT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "c"
		}

		buttonType = {
			name = "ground_combat_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 245 y = @tab_height }
			orientation = lower_left
			buttonText = "GROUND_COMBAT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "c"
		}

		# Spaceport Tab
		buttonType = {
			name = "spaceport_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 381 y = @tab_height }
			orientation = lower_left
			buttonText = "SPACEPORT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "v"
		}

		buttonType = {
			name = "spaceport_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 381 y = @tab_height }
			orientation = lower_left
			buttonText = "SPACEPORT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "v"
		}
	}

	## Health Bar Module
	containerWindowType = {
		name = "planet_view_module_health_bar"
		size = { width = @module_width height = 100 }

		background = {
			name = "planet_class_background"
			spriteType = "GFX_dark_area_cut"
		}

		instantTextBoxType={
			name = "planet_health"
			font = "malgun_goth_24"
			orientation = center_up
			position = { x = -100 y = 5 }
			text = "PLANET_HEALTH"
			maxWidth = 200
			maxHeight = 200
			fixedSize = yes
			format = center
			alwaysTransparent = yes
		}

		iconType = {
			name = "healthbar"
			spriteType = "GFX_infra_progressbar"
			position = { x = 53 y = 40 }
		}

		instantTextBoxType = {
			name = "info"
			font = "cg_16b"
			text = "PLANET_VIEW_UNDER_COLONIZATION"
			position = { x = 125 y = 70 }
			maxWidth = 300
			maxHeight = 100
			fixedSize = yes
			format = center
			orientation = upper_left
			#alwaysTransparent = yes
		}
	}

	## Portrait Module
	containerWindowType = {
		name = "planet_view_module_portrait"
		size = { width = @module_width height = 180 }
		position = { x = 0 y = 0 }
		clipping = yes


		containerWindowType = {
			name = "portrait"
			position = { x= 3 y = 8 }
			size = { width = 560 height = 175 }
			moveable = no
			clipping = yes

			buttonType = {
				name = "portrait"
				spriteType = "GFX_portrait_planet_mask"
				position = { x = -15 y = -105 }
			}
		}

		iconType = {
			name = "black_frame"
			spriteType = "GFX_planetview_black_frame"
			position = { x = 1 y = 5}
		}

		iconType = {
			name = "stripes_1"
			spriteType = "GFX_planetview_stripes_1"
			position = { x = -9 y = 4 }
			orientation = upper_left
			alwaysTransparent = yes
		}

		iconType = {
			name = "city_frame"
			spriteType = "GFX_city_frame"
			position = { x = -4 y = 1 }
		}


		# Modifiers
		containerWindowType = {
			name = "modifiers"
			position = { x = 5 y = 113 }
			size = { width = 195 height = 34 }

		#	background = {
		#		name = "modifiers_background"
		#		spriteType = "GFX_dark_area_cut"
		#	}

			overlappingElementsBoxType = {
				name = "modifiers"
				position = { x = 0 y = 5 }
				size = { x = 220 y = 34 }
				format = left
				orientation = upper_left
			}
		}

		containerWindowType = {
			name = "place_colony_window"
			position = { x = -200 y = 16 }
			size = { width = 400 height = 64 }
			orientation = center_up

			background = {
				name = "background"
				spriteType = "GFX_planet_bg_tile"
			}

			instantTextBoxType={
				name = "title"
				font = "malgun_goth_24"
				text = "PLANET_VIEW_PLACE_COLONY_TITLE"
				position = { x = 0 y = 8 }
				maxWidth = 400
				maxHeight = 30
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "desc"
				font = "cg_16b"
				text = "PLANET_VIEW_PLACE_COLONY_DESC"
				position = { x = 0 y = 34 }
				maxWidth = 400
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}
		}
	}

	# Diplo status entry
	containerWindowType = {
		name = "planet_view_module_colonized_top_bar_diplo_entry"
		size = { width = 30 height = 30 }

		iconType = {
			name = "icon"
			spriteType = "GFX_diplo_status"
		}
	}

	# Planet View.
	containerWindowType = {
		name = "planet_view_module_colonized_top_bar"
		size = { width = @module_width height = 145 }

		# Planet Class
		containerWindowType = {
			name = "planet_class"
			size = { width = 190 height = 35 }
			position = { x = 1 y = 10 }

			background = {
				name = "planet_class_background"
				spriteType = "GFX_dark_area_cut"
			}

			iconType = {
				name = "planet_class_icon"
				position = { x = 4 y = 4 }
				spriteType = "GFX_planet_type"
				frame = 1
				scale = 0.75
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "planet_class"
				font = "cg_16b"
				text = "planet_class"
				position = { x = 36 y = 10 }
				maxWidth = 150
				maxHeight = 20
				fixedSize = yes
				#alwaysTransparent = yes
				format = center
			}
		}

		# habitability
		containerWindowType = {
			name = "colonized_habitability"
			size = { width = 190 height = 35 }
			position = { x = 1 y = 50 }

			background = {
				name = "bg"
				spriteType = "GFX_dark_area_cut"
			}
			
			iconType = {
				name = "habitability_icon"
				spriteType = "GFX_mod_habitability"
				position = { x = 4 y = 5 }
#				pdx_tooltip = "HABITABILITY"
			}

			instantTextBoxType={
				name = "habitability"
				font = "cg_16b"
				text = "habitability"
				position = { x = 40 y = 10 }
				maxWidth = 138
				maxHeight = 20
				fixedSize = yes
				#alwaysTransparent = yes
				format = center
			}
		}

		# Resources
		containerWindowType = {
			name = "resources"
			position = { x = 0 y = 90 }
			size = { width = 190 height = 55 }

			background = {
				name = "resources_background"
				spriteType = "GFX_dark_area_cut"
			}

			gridBoxType = {
				name = "resources"
				slotSize = { width = 36 height = 22 }
				size = { width = 180 height = 44 }
				position = { x = -70 y = 7 }
				max_slots_horizontal = 5
				#max_slots_vertical = 2
			}
		}

		buttonType = {
			name = "terraform_button"
			spriteType = "GFX_standard_button_142_34_button"
			position = { x = 188 y = -2 }
			buttonFont = "cg_16b"
			text = "PLANETVIEW_TERRAFORM"
			font = "cg_16b"
		}

		# Number of Pops
		containerWindowType = {
			name = "planet_pops"
			position = { x = 200 y = 60 }
			size = { width = 116 height = 34 }

			background = {
				name = "pops_background"
				spriteType = "GFX_numbers_bg"
			}

			# This icon should be removed

			iconType = {
				name = "pop_icon"
				spriteType = "GFX_planet_view_pop"
				position = { x = 5 y = 1 }
			}

			instantTextBoxType={
				name = "planet_pops"
				font = "malgun_goth_24"
				position = { x = 30 y = 5 }
				text = "10"
				maxWidth = 30
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
			}
		}

		# Food
		containerWindowType = {
			name = "planet_food"
			size = { width = 116 height = 34 }
			position = { x = 200 y = 110 }

			background = {
				name = "food_background"
				spriteType = "GFX_numbers_bg"
			}

			iconType = {
				name = "food_icon"
				spriteType = "GFX_resource_food"
				position = { x = 8 y = 8 }
			}

			instantTextBoxType={
				name = "planet_food"
				font = "malgun_goth_24"
				position = { x = 30 y = 5 }
				text = "000"
				maxWidth = 30
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
			}
		}

		# Planet Size
		containerWindowType = {
			name = "planet_size"
			size = { width = 80 height = 34 }
			position = { x = 272 y = 115 }

			iconType = {
				name = "planet_icon"
				spriteType = "GFX_planet_view_planet"
				position = { x = 0 y = 0 }
			}

			instantTextBoxType={
				name = "planet_size"
				font = "malgun_goth_24"
				position = { x = 22 y = 0 }
				text = "10"
				maxWidth = 50
				maxHeight = 20
				fixedSize = yes
				format = center
			}
		}

		# Diplomacy
		containerWindowType = {
			name = "diplomacy"
			size = { width = 188 height = 112 }
			position = { x = 350 y = 10 }

			background = {
				name = "diplomacy_background"
				spriteType = "GFX_tiles_frame"
			}

			instantTextBoxType = {
				name = "planet_owner"
				font = "cg_16b"
				position = { x = 23 y = 5 }
				text = "Empire Of Earth"
				maxWidth = 160
				maxHeight = 40
				#format = center
				#alwaysTransparent = yes
			}

			iconType = {
				name = "flag"
				quadTextureSprite = "GFX_empire_flag_32"
				position = { x = 5 y = 6 }
				orientation = "UPPER_LEFT"
				scale = 0.5
			}

			overlappingElementsBoxType = {
				name = "diplo_status_entries"
				position = { x = 0 y = 35 }
				size = { x = 180 y = 33 }
				format = center
				orientation = center_up
			}

			buttonType = {
				name = "diplomacy"
				orientation = lower_left
				position = { x = 10 y = -54 }
				size = { x = 215 y = 25 }
				spriteType = "GFX_standard_button_142_34_button"
				buttonFont = "cg_16b"
				text = "GALAXY_VIEW_EMPIRE_DIPLOMACY"
				font = "cg_16b"
			}
		}

		# Output
		containerWindowType = {
			name = "output"
			size = { width = 190 height = 135 }
			position = { x = 350 y = 10 }

			background = {
				name = "output_background"
				spriteType = "GFX_black_box_planet_view"
			}

			@output_icons_row_1 = 28
			@output_values_row_1 = 38
			@output_icons_row_2 = 115
			@output_values_row_2 = 125

			instantTextBoxType={
				name = "production_label"
				font = "cg_16b"
				text = "PLANETVIEW_LOCAL_OUTPUT"
				position = { x = 5 y = 5 }
				maxWidth = 180
				maxHeight = 30
				#fixedSize = yes
				format = center
				orientation = upper_left
				#alwaysTransparent = yes
				vertical_alignment = center
			}

			iconType = {
				name ="production_icon"
				spriteType = "GFX_resource_minerals"
				position = { x= @output_icons_row_1 y = 99 }
			}

			instantTextBoxType={
				name = "production_value"
				font = "cg_16b"
				position = { x= @output_values_row_1 y = 100 }
				maxWidth = 40
				maxHeight = 16
				text = "+0.00"
				format = right
			}

			iconType = {
				name ="energy_icon"
				spriteType = "GFX_resource_energy"
				position = { x= @output_icons_row_1 y = 42 }
			}

			instantTextBoxType={
				name = "energy_value"
				font = "cg_16b"
				position = { x= @output_values_row_1 y = 43 }
				maxWidth = 40
				maxHeight = 16
				text = "+0.00"
				format = right
			}

			iconType = {
				name ="influence_icon"
				spriteType = "GFX_diplomatic_influence_top_bar"
				position = { x= @output_icons_row_1 y = 71 }
			}

			instantTextBoxType={
				name = "influence_value"
				font = "cg_16b"
				position = { x= @output_values_row_1 y = 72 }
				maxWidth = 40
				maxHeight = 16
				text = "+0.00"
				format = right
			}

			iconType = {
				name ="physics_icon"
				spriteType = "GFX_resource_physics"
				position = { x= @output_icons_row_2 y = 42 }
			}

			instantTextBoxType={
				name = "physics_value"
				font = "cg_16b"
				position = { x= @output_values_row_2 y = 43 }
				maxWidth = 40
				maxHeight = 16
				text = "+0.00"
				format = right
			}

			iconType = {
				name ="society_icon"
				spriteType = "GFX_resource_society"
				position = { x= @output_icons_row_2 y = 71 }
			}

			instantTextBoxType={
				name = "society_value"
				font = "cg_16b"
				position = { x= @output_values_row_2 y = 72 }
				maxWidth = 40
				maxHeight = 16
				text = "+0.00"
				format = right
			}

			iconType = {
				name ="engineering_icon"
				spriteType = "GFX_resource_engineering"
				position = { x= @output_icons_row_2 y = 99 }
			}

			instantTextBoxType={
				name = "engineering_value"
				font = "cg_16b"
				position = { x= @output_values_row_2 y = 100 }
				maxWidth = 40
				maxHeight = 16
				text = "+0.00"
				format = right
			}
		}
	}

	# Edict Entry
	containerWindowType = {
		name = "planet_view_module_colonized_edict_entry"
		size = { width = 180 height = 35 }

		iconType = {
			name = "icon"
			spriteType = "GFX_modifier_unknown"
			position = { x = 16 y = 14 }
			orientation = "UPPER_LEFT"
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			position = { x = 50 y = 6 }
			text = "NAME"
			maxWidth = 150
			maxHeight = 40
			format = left
			vertical_alignment = center
		}
	}

	# Colonized
	containerWindowType = {
		name = "planet_view_module_colonized"
		size = { width = @module_width height = 220 }

		containerWindowType = {
			name = "nogovernor"
			position = { x = -4 y = 5 }
			size = { width = 350 height = 220 }

			background = {
				name = "nogovernor_background"
				spriteType = "GFX_tiles_frame_light"
			}

			instantTextBoxType={
				name = "no_governor_title"
				font = "malgun_goth_24"
				orientation = center_up
				position = { x = -100 y = 12 }
				text = "PLANETVIEW_NO_GOVERNOR_TITLE"
				maxWidth = 200
				maxHeight = 200
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "no_governor_text"
				font = "cg_16b"
				orientation = center_up
				position = { x = -100 y = 45 }
				text = "PLANETVIEW_NO_GOVERNOR_DESC"
				maxWidth = 200
				maxHeight = 200
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}

			buttonType = {
				name = "change"
				size = { x = 298 y = 35 }
				position = { x = -172 y = -63 }
				spriteType = "GFX_standard_button_142_34_button"
				buttonFont = "cg_16b"
				text = "CHANGE"
				font = "cg_16b"
				orientation = LOWER_RIGHT
			}
		}

		containerWindowType = {
			name = "governor"
			size = { width = 350 height = 220 }
			position = { x = -4 y = 5 }

			background = {
				name = "governor_background"
				spriteType = "GFX_tiles_frame_light"
			}

			iconType = {
				name = "governor_hex"
				quadTextureSprite = "GFX_hex_bg"
				position = { x = -11 y = -7 }
			}

			iconType = {
				name = "governor_line"
				quadTextureSprite = "GFX_line"
				position = { x = 14 y = 30 }
			}

			instantTextBoxType = {
				name = "governor_name"
				font = "malgun_goth_24"
				position = { x = 21 y = 12 }
				text = "PLANETVIEW_NO_GOVERNOR_TEXT"
				maxWidth = 320
				maxHeight = 20
				fixedSize = yes
				format = left
				orientation = upper_left
			}

			instantTextBoxType = {
				name = "governor_type"
				font = "cg_16b"
				position = { x = 155 y = 53 }
				text = "PLANETVIEW_NO_GOVERNOR_TEXT"
				maxWidth = 185
				maxHeight = 40
				format = left
				fixedsize = yes
			}

			instantTextBoxType = {
				name = "governor_desc"
				font = "cg_16b"
				position = { x = 154 y = 85 }
				text = "PLANETVIEW_NO_GOVERNOR_TEXT"
				maxWidth = 194
				maxHeight = 200
				fixedSize = yes
				format = left
				orientation = upper_left
				fixedsize = yes
			}

			containerWindowType = {
				name = "portrait"
				size = { width = 128 height = 152 }
				position = { x = 20 y = 56 }
				clipping = yes

				buttonType = {
					name = "bg"
					quadTextureSprite = "GFX_leader_bg_governor"
					position = { x = 0 y = 0 }
					scale = 0.4
					alwaystransparent = yes
				}

				iconType = {
					name = "portrait"
					quadTextureSprite = "GFX_portrait_character"
					position = { x = -25 y = -10 }
					scale = 0.5
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "leader_frame_box"
				size = { width = 138 height = 162 }
				position = { x = 15 y = 51 }

				background = {
					name = "leader_frame"
					spriteType = "GFX_clean_frame_area"
					alwaysTransparent = yes
				}
			}

			buttonType = {
				name = "change"
				size = { x = 298 y = 35 }
				position = { x = -172 y = -63 }
				spriteType = "GFX_standard_button_142_34_button"
				buttonFont = "cg_16b"
				text = "CHANGE"
				font = "cg_16b"
				orientation = LOWER_RIGHT
			}

			iconType = {
				name ="governor_skill"
				spriteType = "GFX_leader_skill"
				position = { x = 20 y = 185 }
				frame = 5
			}
		}

		containerWindowType = {
			name = "edicts"
			size = { width = 200 height = 220 }
			position = { x = 345 y = 5 }

			background = {
				name = "edicts_background"
				spriteType = "GFX_tiles_frame_light"
			}

			smoothListBoxType = {
				name = "edicts"
				position = { x=0 y=0 }
				orientation = upper_left
				size = { x=225 y=175 }
				borderSize = { x=0 y=0 }
				scrollbartype = "standardlistbox_slider"
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "no_edicts"
				font = "cg_16b"
				text = "PLANETVIEW_NO_ACTIVE_EDICTS"
				position = { x = 10 y = 15 }
				maxWidth = 180
				maxHeight = 20
				format = center
				orientation = upper_left
				text_color_code = "E"
			}

			buttonType = {
				name = "edicts_list"
				position = { x = 17 y = -63 }
				spriteType = "GFX_standard_button_142_34_button"
				buttonFont = "cg_16b"
				text = "PLANETVIEW_EDICTS_LIST"
				font = "cg_16b"
				orientation = LOWER_LEFT
			}
		}
	}

	## Armies Module
	containerWindowType = {
		name = "planet_view_module_armies"
		size = { width = @module_width height = 380 }

		## Military Fleets

		containerWindowType = {
			name = "friendly_fleets"
			size = { width = 265 height = 33 }
			position = { x = 1 y = 11 }

			background = {
				name = "friendly_fleets_background"
				quadTextureSprite = "GFX_dark_area_cut"
			}

			instantTextBoxType = {
				name = "empty_message"
				font = "cg_16b"
				text = "NO_FRIENDLY_FLEETS"
				maxWidth = 265
				maxHeight = 33
				fixedSize = yes
				orientation = upper_left
				format = center
				vertical_alignment = center
				alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "entries"
				position = { x = 3 y = 0 }
				size = { x = 260 y = 40 }
				format = left
				orientation = upper_left
			}
		}

		containerWindowType = {
			name = "hostile_fleets"
			size = { width = 265 height = 33 }
			position = { x = 275 y = 11 }

			background = {
				name = "hostile_fleets_background"
				quadTextureSprite = "GFX_dark_area_cut"
			}

			instantTextBoxType = {
				name = "empty_message"
				font = "cg_16b"
				text = "NO_HOSTILE_FLEETS"
				maxWidth = 265
				maxHeight = 33
				fixedSize = yes
				orientation = upper_left
				format = center
				vertical_alignment = center
				alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "entries"
				position = { x = 3 y = 0 }
				size = { x = 260 y = 40 }
				format = right
				orientation = upper_left
			}
		}

		## Generals

		@army_leader_box = 50

		containerWindowType = {
			name = "no_defending_general"
			position = { x = 1 y = @army_leader_box }
			size = { width = 265 height = 125 }

			background = {
				name = "defending_general_background"
				quadTextureSprite = "GFX_dark_area_cut"
			}

			instantTextBoxType = {
				name = "no_defending_general"
				font = "cg_16b"
				text = "NO_DEFENDING_GENERAL"
				maxWidth = 265
				maxHeight = 125
				fixedSize = yes
				orientation = upper_left
				format = center
				vertical_alignment = center
				text_color_code = "H"
			}
		}

		containerWindowType = {
			name = "defending_general"
			position = { x = 1 y = @army_leader_box }
			size = { width = 265 height = 125 }

			background = {
				name = "defending_general_background"
				quadTextureSprite = "GFX_dark_area_cut"
			}

			containerWindowType = {
				name = "portrait"
				size = { width = 69 height = 82 }
				position = { x = 9 y = 34 }
				clipping = yes

				buttonType = {
					name = "bg"
					quadTextureSprite = "GFX_leader_bg_general"
					position = { x = 0 y = 0 }
					scale = 0.25
					alwaystransparent = yes
				}

				iconType = {
					name = "portrait"
					quadTextureSprite = "GFX_portrait_character"
					position = { x = -25 y = 0 }
					scale = 0.3
					alwaysTransparent = yes
				}
				

			}

			containerWindowType = {
				name = "background"
				size = { width = 81 height = 94 }
				position = { x = 3 y = 28 }

				background = {
					name = "leader_frame"
					spriteType = "GFX_clean_frame_area"
					alwaysTransparent = yes
				}
				
				iconType = {
					name = "leader_class"
					spriteType = "GFX_leader_icons"
					frame = 2
					position = { x = 0 y = -3 }
					Orientation = "UPPER_LEFT"
				}
			}

			instantTextBoxType = {
				name = "defenders_leader_name"
				font = "cg_16b"
				text = "DEFENDER_LEADER_NAME"
				position = { x = 10 y = 9 }
				maxWidth = 250
				maxHeight = 20
				fixedSize = yes
				format = left
				orientation = upper_left
				#alwaysTransparent = yes
				text_color_code = "E"
			}

			instantTextBoxType = {
				name = "skill_label"
				font = "cg_16b"
				text = "SKILL"
				position = { x = 90 y = 35 }
				maxWidth = 128
				maxHeight = 20
				fixedSize = yes
				format = left
			}

			iconType = {
				name ="skill"
				spriteType = "GFX_leader_skill"
				position = { x = 115 y = 32 }
				frame = 5
			}

			instantTextBoxType = {
				name = "defenders_leader_stats"
				font = "cg_16b"
				text = "DEFENDER_LEADER_STATS"
				position = { x = 90 y = 55 }
				maxWidth = 170
				maxHeight = 70
				fixedSize = yes
				format = left
				orientation = upper_left
				#alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "no_attacking_general"
			orientation = upper_right
			position = { x = -265 y = @army_leader_box }
			size = { width = 265 height = 125 }

			background = {
				name = "attacking_general_background"
				quadTextureSprite = "GFX_dark_area_cut"
			}

			instantTextBoxType = {
				name = "no_attacking_general"
				font = "cg_16b"
				text = "NO_ATTACKING_GENERAL"
				maxWidth = 265
				maxHeight = 125
				fixedSize = yes
				orientation = upper_left
				format = center
				vertical_alignment = center
				text_color_code = "H"
			}
		}

		containerWindowType = {
			name = "attacking_general"
			orientation = upper_right
			position = { x = -265 y = @army_leader_box }
			size = { width = 265 height = 125 }

			background = {
				name = "attacking_general_background"
				quadTextureSprite = "GFX_dark_area_cut"
			}

			containerWindowType = {
				name = "portrait"
				size = { width = 79 height = 95 }
				position = { x = -95 y = 15 }
				orientation = UPPER_RIGHT
				clipping = yes

				buttonType = {
					name = "bg"
					quadTextureSprite = "GFX_leader_bg_general"
					position = { x = 0 y = 0 }
					scale = 0.25
					alwaystransparent = yes
				}

				iconType = {
					name = "portrait"
					quadTextureSprite = "GFX_portrait_character"
					position = { x = -12 y = 0 }
					scale = 0.3
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "background"
				size = { width = 89 height = 105 }
				position = { x = -100 y = 10 }
				orientation = UPPER_RIGHT

				background = {
					name = "leader_frame"
					spriteType = "GFX_clean_frame_area"
					alwaysTransparent = yes
				}
			}

			instantTextBoxType = {
				name = "attacking_leader_name"
				position = { x = -290 y = 15 }
				orientation = upper_right
				font = "cg_16b"
				text = "ATTACKING_LEADER_NAME"
				maxWidth = 190
				maxHeight = 20
				fixedSize = yes
				format = right
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "skill_label"
				font = "cg_16b"
				text = "SKILL"
				position = { x = 40 y = 35 }
				maxWidth = 128
				maxHeight = 20
				fixedSize = yes
				format = left
			}

			iconType = {
				name ="skill"
				spriteType = "GFX_leader_skill"
				position = { x = 70 y = 32 }
				frame = 5
			}

			instantTextBoxType = {
				name = "attacking_leader_stats"
				position = { x = 0 y = 50 }
				font = "cg_16b"
				text = "ATTACKING_LEADER_STATS"
				maxWidth = 160
				maxHeight = 80
				fixedSize = yes
				format = right
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "layers"
			position = { x = 0 y = 131 }

			# Background
			iconType = {
				name = "invasion_background"
				spriteType = "GFX_planet_view_invasion_background"
				position = { x = 1 y = 50 }
				orientation = upper_left
			}

			iconType = {
				name = "invasion_surface"
				spriteType = "GFX_planet_view_invasion_surface_arid_background"
				position = { x = 1 y = 109 }
				orientation = upper_left
			}

			iconType = {
				name = "invasion_frame"
				spriteType = "GFX_planet_view_invasion_frame"
				position = { x = 1 y = 50 }
				orientation = upper_left
			}

			# Orbit
			overlappingElementsBoxType = {
				name = "defending_armies_orbit"
				position = { x = 5 y = 55 }
				size = { x = 270 y = 40 }
				format = left
				orientation = upper_left
			}

			overlappingElementsBoxType = {
				name = "attacking_armies_orbit"
				position = { x = 270 y = 60 }
				size = { x = 270 y = 40 }
				format = right
				orientation = upper_left
			}

			# Atmosphere
			overlappingElementsBoxType = {
				name = "defending_armies_atmosphere"
				position = { x = 1 y = 106 }
				size = { x = 270 y = 40 }
				format = left
				orientation = upper_left
			}

			overlappingElementsBoxType = {
				name = "attacking_armies_atmosphere"
				position = { x = 270 y = 106 }
				size = { x = 270 y = 40 }
				format = right
				orientation = upper_left
			}

			# Ground
			overlappingElementsBoxType = {
				name = "defending_armies_ground"
				position = { x = 5 y = 145 }
				size = { x = 270 y = 40 }
				format = left
				orientation = upper_left
			}

			overlappingElementsBoxType = {
				name = "attacking_armies_ground"
				position = { x = 270 y = 145 }
				size = { x = 270 y = 40 }
				format = right
				orientation = upper_left
			}
		}

		# Control Buttons

		buttonType = {
			name = "embark_all_button"
			quadTextureSprite = "GFX_button_116_24"
			position = { x = 1 y = -65 }
			orientation = lower_left
			font = "cg_16b"
			text = "PLANET_VIEW_EMBARK_ALL"
			buttonText = "PLANET_VIEW_EMBARK_ALL"
			clicksound = click_embark_all
		}

		buttonType = {
			name = "land_all_button"
			quadTextureSprite = "GFX_button_116_24"
			position = { x = 1 y = -32  }
			orientation = lower_left
			font = "cg_16b"
			text = "PLANET_VIEW_LAND_ALL"
			clicksound = click_land_all
		}

		# Planetary fortifications

		instantTextBoxType = {
			name = "planet_fortifications"
			font = "cg_16b"
			text = "PLANET_FORTIFICATIONS_INFO"
			position = { x = -140 y = -50 }
			maxWidth = 240
			fixedSize = yes
			format = center
			orientation = center_down
			#alwaysTransparent = yes
		}

		# Ground support

		containerWindowType = {
			name = "ground_support_bg"
			size = { width = 166 height = 80 }
			position = { x = -166 y = -55 }
			orientation = LOWER_RIGHT

			background = {
				name = "leader_frame"
				spriteType = "GFX_dark_area_cut"
				alwaysTransparent = yes
			}
		}

		instantTextBoxType = {
			name = "ground_support_label"
			font = "cg_16b"
			text = "ORBITAL_BOMBARDMENT"
			position = { x = -170 y = -50 }
			maxWidth = 164
			fixedSize = yes
			format = center
			orientation = lower_right
			#alwaysTransparent = yes
		}

		buttonType = {
			name = "toggle_ground_support_soft"
			quadTextureSprite = "GFX_fleet_order_button_ground_support_soft"
			position = { x = -163 y = -30 }
			orientation = lower_right
			clicksound = outliner_click_tab
		}

		buttonType = {
			name = "toggle_ground_support_soft_selected"
			spriteType = "GFX_fleet_order_button_ground_support_soft_selected"
			position = { x = -163 y = -30 }
			orientation = lower_right
			alwaysTransparent = yes
		}

		buttonType = {
			name = "toggle_ground_support_limited"
			quadTextureSprite = "GFX_fleet_order_button_ground_support_limited"
			position = { x = -109 y = -30 }
			orientation = lower_right
			clicksound = outliner_click_tab
		}

		buttonType = {
			name = "toggle_ground_support_limited_selected"
			spriteType = "GFX_fleet_order_button_ground_support_limited_selected"
			position = { x = -109 y = -30 }
			orientation = lower_right
			alwaysTransparent = yes
		}

		buttonType = {
			name = "toggle_ground_support_full"
			quadTextureSprite = "GFX_fleet_order_button_ground_support_full"
			position = { x = -55 y = -30 }
			orientation = lower_right
			orientation = lower_right
			clicksound = outliner_click_tab
		}

		buttonType = {
			name = "toggle_ground_support_full_selected"
			spriteType = "GFX_fleet_order_button_ground_support_full_selected"
			position = { x = -55 y = -30 }
			orientation = lower_right
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_view_module_star_top_bar"
		size = { width = @module_width height = 125 }

		containerWindowType = {
			name = "star_class"
			size = { width = 190 height = 35 }
			position = { x = 0 y = 10 }

			background = {
				name = "star_class_background"
				spriteType = "GFX_dark_area_cut"
			}

			iconType = {
				name = "star_class_icon"
				position = { x = 10 y = 4 }
				spriteType = "GFX_planet_type"
				frame = 1
				scale = 0.75
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "star_class"
				font = "cg_16b"
				text = "star_class"
				position = { x = 45 y = 9 }
				maxWidth = 175
				maxHeight = 20
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "star_unsurveyed"
			size = { width = 190 height = 35 }
			position = { x = 200 y = 50 }

			background = {
				name = "star_unsurveyed_background"
				spriteType = "GFX_numbers_bg"
			}

			instantTextBoxType = {
				name = "surveyed_label"
				font = "cg_16b"
				text = "UNSURVEYED"
				position = { x = 42 y = 9 }
				maxWidth = 400
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}

			iconType = {
				name = "surveyed_checkbox"
				spriteType = "GFX_alliance_vote_status"
				frame = 2
				position = { x = -2 y = -2 }
				orientation = upper_left
			}
		}

		containerWindowType = {
			name = "star_resources"
			size = { width = 190 height = 115 }
			position = { x = 350 y = 10 }

			background = {
				name = "star_resources_background"
				spriteType = "GFX_dark_area_cut"
			}

			instantTextBoxType={
				name = "resources_label"
				font = "malgun_goth_24"
				position = { x = 0 y = 8 }
				text = "RESOURCES"
				maxWidth = 190
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "resources"
				position = { x = 0 y = 50 }
				size = { x = 190 y = 34 }
				format = center
				orientation = upper_left
			}
		}
	}

	containerWindowType = {
		name = "planet_view_module_uncolonized_top_bar"
		size = { width = @module_width height = 125 }

		containerWindowType = {
			name = "uncolonized_planet_class"
			size = { width = 190 height = 35 }
			position = { x = 0 y = 10 }

			background = {
				name = "uncolonized_planet_class_background"
				spriteType = "GFX_dark_area_cut"
			}

			iconType = {
				name = "planet_class_icon"
				position = { x = 10 y = 4 }
				spriteType = "GFX_planet_type"
				frame = 1
				scale = 0.75
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "planet_class"
				font = "cg_16b"
				text = "planet_class"
				position = { x = 50 y = 10 }
				maxWidth = 138
				maxHeight = 20
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "uncolonized_habitability"
			size = { width = 190 height = 35 }
			position = { x = 0 y = 50 }

			background = {
				name = "uncolonized_habitability_background"
				spriteType = "GFX_dark_area_cut"
			}
			
			iconType = {
				name = "habitability_icon"
				spriteType = "GFX_mod_habitability"
				position = { x = 10 y = 5 }
				pdx_tooltip = "HABITABILITY"
			}

			instantTextBoxType={
				name = "habitability"
				font = "cg_16b"
				text = "habitability"
				position = { x = 50 y = 10 }
				maxWidth = 138
				maxHeight = 20
				fixedSize = yes
				alwaysTransparent = yes
			}
		}

		buttonType = {
			name = "terraform_button"
			spriteType = "GFX_standard_button_142_34_button"
			position = { x = 188 y = -2 }
			buttonFont = "cg_16b"
			text = "PLANETVIEW_TERRAFORM"
			font = "cg_16b"
		}

		containerWindowType = {
			name = "uncolonized_unsurveyed"
			size = { width = 190 height = 35 }
			position = { x = 200 y = 50 }

			background = {
				name = "uncolonized_unsurveyed_background"
				spriteType = "GFX_numbers_bg"
			}

			instantTextBoxType = {
				name = "surveyed_label"
				font = "cg_16b"
				text = "UNSURVEYED"
				position = { x = 42 y = 9 }
				maxWidth = 400
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}

			iconType = {
				name = "surveyed_checkbox"
				spriteType = "GFX_alliance_vote_status"
				frame = 2
				position = { x = -2 y = -2 }
				orientation = upper_left
			}
		}

		buttonType = {
			name = "colonize_button"
			spriteType = "GFX_standard_button_142_34_button"
			position = { x = 188 y = 40 }
			buttonFont = "cg_16b"
			text = "PLANETVIEW_COLONIZE"
			font = "cg_16b"
		}

		containerWindowType = {
			name = "uncolonized_planet_size"
			size = { width = 190 height = 35 }
			position = { x = 200 y = 90 }

			background = {
				name = "uncolonized_planet_size_background"
				spriteType = "GFX_numbers_bg"
			}

			iconType = {
				name = "planet_icon"
				spriteType = "GFX_planet_view_planet"
				position = { x = 45 y = 5 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "planet_size"
				font = "malgun_goth_24"
				position = { x = 70 y = 4 }
				text = "10"
				maxWidth = 50
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "uncolonized_resources"
			size = { width = 190 height = 115 }
			position = { x = 350 y = 10 }

			background = {
				name = "uncolonized_resources_background"
				spriteType = "GFX_dark_area_cut"
			}

			instantTextBoxType={
				name = "resources_label"
				font = "malgun_goth_24"
				position = { x = 0 y = 8 }
				text = "RESOURCES"
				maxWidth = 190
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "resources"
				position = { x = 0 y = 50 }
				size = { x = 190 y = 34 }
				format = center
				orientation = upper_left
			}
		}
	}

	containerWindowType = {
		name = "planet_view_module_uncolonized_description"
		size = { width = @module_width height = 253 }

		background = {
			name = "uncolonized_description_background"
			spriteType = "GFX_tiles_frame_light"
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = "pc_frozen_desc"
			position = { x = 30 y = 30 }
			maxWidth = 480
			maxHeight = 203
			#vertical_alignment = center
			format = left
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_view_module_uncolonized_anomaly"
		size = { width = @module_width height = 253 }

		background = {
			name = "uncolonized_description_background"
			spriteType = "GFX_tiles_frame_light"
		}

		instantTextBoxType = {
			name = "header"
			font = "cg_16b"
			text = "ANOMALY_HEADER"
			position = { x = 30 y = 20 }
			maxWidth = 480
			maxHeight = 20
			#vertical_alignment = center
			format = center
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "level"
			font = "cg_16b"
			text = "ANOMALY_LEVEL"
			position = { x = 30 y = 35 }
			maxWidth = 480
			maxHeight = 20
			#vertical_alignment = center
			format = center
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = "ANOMALY_DESCRIPTION"
			position = { x = 30 y = 70 }
			maxWidth = 480
			maxHeight = 203
			#vertical_alignment = center
			format = left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "open"
			spriteType = "GFX_standard_button_142_34_button"
			position = { x = 188 y = 180 }
			buttonFont = "cg_16b"
			text = "OPEN"
			font = "cg_16b"
		}
	}

	containerWindowType = {
		name = "planet_view_module_colonizing"
		size = { width = @module_width height=340 }

		containerWindowType = {
			name = "colonizing_section_bg_box"
			size = { width = 500 height = 250 }
			position = { x = 20 y = 40 }

				background = {
					name = "colonizing_section_bg"
					spriteType = "GFX_tiles_dark_area_cut_8"
				}
		}

		instantTextBoxType = {
			name = "colonizing_planet_label"
			font = "malgun_goth_24"
			text = "COLONIZING_PLANET"
			position = { x = 10 y = 60 }
			maxWidth = 525
			maxHeight = 20
			Orientation = "UPPER_LEFT"
			format = center
		}


	#	iconType = {
	#		name = "colonization_progress_frame"
	#		spriteType = "GFX_planetview_progressbar_frame"
	#		position = { x = 145 y = 70 }
	#	}

		iconType = {
			name = "colonization_progress"
			spriteType = "GFX_infra_progressbar"
			position = { x = 53 y = 110 }
		}

		instantTextBoxType = {
			name = "planet_info"
			font = "cg_16b"
			text = "PLANET_VIEW_UNDER_COLONIZATION"
			position = { x = 125 y = 140 }
			maxWidth = 300
			maxHeight = 100
			fixedSize = yes
			format = center
			orientation = upper_left
			#alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_view_module_primitive"
		size = { width = @module_width height=340 }

		containerWindowType = {
			name = "colonizing_section_bg_box"
			size = { width = 500 height = 250 }
			position = { x = 20 y = 40 }

				background = {
					name = "colonizing_section_bg"
					spriteType = "GFX_tiles_dark_area_cut_8"
				}
		}

		instantTextBoxType = {
			name = "header"
			font = "malgun_goth_24"
			text = ""
			position = { x = 30 y = 60 }
			maxWidth = 480
			maxHeight = 20
			Orientation = "UPPER_LEFT"
			format = center
			fixedsize = yes
		}

		instantTextBoxType = {
			name = "desc"
			font = "cg_16b"
			text = ""
			position = { x = 30 y = 90 }
			maxWidth = 480
			maxHeight = 140
			fixedSize = yes
			format = left
			orientation = upper_left
			#alwaysTransparent = yes
			fixedsize = yes
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "planet_view_module_tiles"
		size = { width = @module_width height = 516 }

		containerWindowType = {
			name = "tiles"
			size = { width = 500 height = 500 }
			orientation = center
			position = { x = -250 y = -240 }

			gridBoxType = {
				name = "tiles"
				slotSize = { width = 104 height = 104 }
				max_slots_horizontal = 5
				max_slots_vertical = 5
				format = "UPPER_LEFT"
				size = { width = 516 height = 516 }
				position = { x = 0 y = 11 }
			}
		}
	}

	containerWindowType = {
		name = "planet_view_module_tiles_entry_bar_happiness"
		size = { width = 98 height = @tile_progress_bar_height }

		iconType = {
			name = "progressbar"
			spriteType = "GFX_pop_happiness_progressbar_green"
		}
	}

	containerWindowType = {
		name = "planet_view_module_tiles_entry_bar_growth"
		size = { width = 98 height = @tile_progress_bar_height }

		iconType = {
			name = "progressbar"
			spriteType = "GFX_progressbar_purple"
		}
	}

	containerWindowType = {
		name = "planet_view_module_tiles_entry_bar_pop_upgrade"
		size = { width = 98 height = @tile_progress_bar_height }

		iconType = {
			name = "progressbar"
			spriteType = "GFX_progressbar_purple"
		}
	}

	containerWindowType = {
		name = "planet_view_module_tiles_entry_bar_construction"
		size = { width = 98 height = 19 }

		iconType = {
			name = "progressbar"
			spriteType = "GFX_progressbar_orange"
			position = { x = 0 y = 12 }
		}

		instantTextBoxType = {
			name = "text"
			font = "hoi_16mbs"
			text = "QUEUED_NUMBER"
			position = { x = -5 y = -4 }
			maxWidth = 98
			maxHeight = 16
			fixedSize = yes
			format = right
			orientation = upper_left
			alwaysTransparent = yes
			#text_color_code = "H"
		}
	}

	containerWindowType = {
		name = "planet_view_module_tiles_entry_bar_output"
		size = { width = 98 height = 20 }

		background = {
			name = "output_bar"
			spriteType = "GFX_tile_output"
		}

        overlappingElementsBoxType = {
            name = "outputs_box"
            size = { x = 120 y = 0 }
            position = { x = -14 y = 0 }
            orientation = upper_left
            spacing = 0
            format = center
        }
	}

	containerWindowType = {
		name = "planet_view_module_tiles_entry"
		size = { width = 100 height = 100 }
		clipping = yes

		background = {
			name = "tile_entry_background"
			spriteType = "GFX_tiles_frame"
		}

		iconType = {
			name = "tile_background"
			spriteType = "GFX_tile_background"
			position = { x = 1 y = 1 }
		}

		iconType = {
			name = "tile_building"
			spriteType = "GFX_building"
			position = { x = 10 y = 4 }
			scale = 0.9
		}

		# Portrait
		containerWindowType = {
			name = "portrait"
			size = { width = 100 height = 76 }
			position = { x = 0 y = 0 }
			clipping = yes

			#background = {
			#	name = "tile_entry_background"
			#	spriteType = "GFX_tiles_frame"
			#}

			iconType = {
				name = "portrait"
				quadTextureSprite = "GFX_portrait_character"
				position = { x = -10 y = 10 }
				scale = 0.205		# DONT TOUCH, MAGIC NUMBER!
			}

		}

		iconType = {
			name = "pop_status"
			spriteType = "GFX_pop_status"
			position = { x = 1 y = 40 }
		}

		iconType = {
			name = "pop_mod"
			spriteType = "GFX_pop_mod"
			position = { x = 1 y = 0}
		}

		iconType = {
			name = "tile_blocker"
			position = { x = 1 y = 1 }
			spriteType = "GFX_tile_frame_blocker"
			alwaysTransparent = yes
		}
		
		iconType = {
			name = "tile_blocker_clearable"
			position = { x = 1 y = 1 }
			spriteType = "GFX_tile_frame_blocker_clearable"
			alwaysTransparent = yes
		}		

		# Bars
		smoothListBoxType = {
			name = "bars"
			size = { x = 98 y = 100 }
			position = { x = 1 y = 1 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "production_error"
			spriteType = "GFX_disabled_building"
			position = { x = 72 y = 45 }
			scale = 0.85
		}

		iconType = {
			name = "tile_frame"
			spriteType = "GFX_tile_frame"
			alwaysTransparent = yes
		}

		buttonType = {
			name = "tile_upgradeable"
			quadTextureSprite = "GFX_upgradeable"
			orientation = UPPER_RIGHT
			position = { x = -33 y = 1 }
		}

		iconType = {
			name = "adjacency_1"
			spriteType = "GFX_adjacencies"
			position = { x = -2 y = 23 }
			frame = 1
		}

		iconType = {
			name = "adjacency_2"
			spriteType = "GFX_adjacencies"
			position = { x = 33 y = -2 }
			frame = 2
		}

		iconType = {
			name = "adjacency_3"
			spriteType = "GFX_adjacencies"
			position = { x = 70 y = 23 }
			frame = 3
		}

		iconType = {
			name = "adjacency_4"
			spriteType = "GFX_adjacencies"
			position = { x = 33 y = 50 }
			frame = 4
		}

		iconType = {
			name = "tile_selected_frame"
			spriteType = "GFX_tile_frame_selected"
			alwaysTransparent = yes
			position = { x = -13 y = -13 }
		}

		containerWindowType = {
			name = "drop_area"
			size = { width = 100% height = 100% }

			background = {
				name = "drop_area_background"
				quadTextureSprite = "GFX_drop_area_green"
			}
		}
	}

	### PLANET MODIFIERS
	containerWindowType = {
		name = "planet_view_modifier_item"
		position = { x=0 y=0 }
		size = { width = 54 height = 57 }
		moveable = no

		iconType = {
			name = "icon"
			spriteType = "GFX_modifier_pm_unknown"
			position = { x = 0 y = -10 }
		}

		iconType = {
			name = "icon_frame"
			spriteType = "GFX_modifier_frames"
			position = { x = 0 y = -10 }
			frame = 1
			alwaystransparent = yes
		}
	}

	### PLANET MODIFIERS
	containerWindowType = {
		name = "planet_view_modifier_item_flag"
		position = { x=0 y=0 }
		size = { width = 54 height = 57 }
		moveable = no

		iconType = {
			name = "background"
			spriteType = "GFX_modifier_background"
			position = { x = 0 y = -10 }
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_empire_flag_32"
			position = { x = 14 y = 4 }
		}

		iconType = {
			name = "icon_frame"
			spriteType = "GFX_modifier_frames"
			position = { x = 0 y = -10 }
			frame = 1
			alwaystransparent = yes
		}
	}

	### Army
	containerWindowType = {
		name = "planet_view_army"
		size = { width = 44 height = 44 }

		iconType = {
			name = "backdrop"
			spriteType = "GFX_army_bg"
			position = { x = 0 y = 0 }
			alwaysTransparent = yes
			frame = 1
		}

		iconType = {
			name = "healthbar"
			spriteType = "GFX_ship_life_radial_progress"
			alwaysTransparent = yes
			frame = 100
			position = { x = -3 y = -4 }
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_army_icons"
			position = { x = 0 y = 0 }
		}

		iconType = {
			name = "leader"
			spriteType = "GFX_army_info_leader"
			position = { x = 0 y = 0 }
		}

		iconType = {
			name = "broken"
			spriteType = "GFX_army_info_negative"
			position = { x = 10 y = 0 }
		}

		iconType = {
			name = "retreat"
			spriteType = "GFX_army_info_escape"
			position = { x = 20 y = 0 }
		}
	}

	### Popcat selection dialog
	containerWindowType = {
		name = "popcat_selection_dialog"
		position = { x = -172 y = -236 }
		size = { width = 353 height = 518 }
		orientation = center
		moveable = yes

		background = {
			name = "popcat_selection_dialog"
			quadTextureSprite = "GFX_start_screen_bg"
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_bg"
			position = { x = -10 y = -5 }
			alwaysTransparent = yes
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = -46 y = 8 }
			orientation = "UPPER_RIGHT"
			shortCut = "ESCAPE"
			clicksound = "back_click"
		}

		instantTextBoxType = {
			name = "title"
			font = "malgun_goth_24"
			text = "POPCAT_SELECTION_TITLE"
			position = { x = 17 y = 14 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			orientation = upper_left
			alwaysTransparent = yes
		}

		smoothListBoxType = {
			name = "popcats"
			position = { x = 18 y = 48 }
			orientation = upper_left
			size = { x = 307 y = 454 }
			borderSize = { x = 0 y = 0 }
			scrollbartype = "standardlistbox_slider"
			autohide_scrollbar = yes
			spacing = 5
		}

		
	}

	### Popcat selection entry
	containerWindowType = {
		name = "popcat_selection_entry"
		position = { x = 10 y = 0 }
		size = { width = 300 height = 70 }
		clipping = no

		background = {
			name = "popcat_selection_entry_background"
			quadTextureSprite = "GFX_black_box_planet_view"
		}

		buttonType = {
			name = "baseline_pop"
			spriteType = "GFX_drop_area_green"
			size = { x = 300 y = 70 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "species_portrait"
			spriteType = "GFX_portrait_character"
			position = { x = 0 y = 4 }
			scale = 0.2
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "species_name"
			font = "cg_16b"
			text = "SPECIES"
			position = { x = 80 y = 9 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			text_color_code = "E"
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "ideal_planet_type"
			font = "cg_16b"
			text = "SPECIES"
			position = { x = 80 y = 39 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			pdx_tooltip = "IDEAL_PLANET_CLASS_TOOLTIP"
		}

		overlappingElementsBoxType = {
			name = "traits_list"
			size = { x = 128 y = 24 }
			position = { x = -131 y = 3 }
			orientation = "UPPER_RIGHT"
			format = right
			spacing = 0
		}

		overlappingElementsBoxType = {
			name = "ethics_list"
			size = { x = 128 y = 24 }
			position = { x = -131 y = 35 }
			orientation = "UPPER_RIGHT"
			format = right
			spacing = 0
		}
	}

	## Popcat selection trait or ethic
	containerWindowType = {
		name = "popcat_selection_trait_or_ethic"
		position = { x = 0 y = 0 }
		size = { width = 32 height = 32 }
		moveable = no

		iconType = {
			name = "ethic_or_trait_icon"
			position = { x = 0 y = 4 }
			quadTextureSprite = "GFX_ethics"
		}
	}

	containerWindowType = {
		name = "terraform_entry"
		size = { width = 140 height = 30 }

		buttonType = {
			name = "button"
			quadTextureSprite = "GFX_general_interface_button"
			position = { x = 0 y = 0  }
			buttonFont = "hoi_16mbs"
			text = ""
			font = "hoi_16mbs"
		}
	}

	containerWindowType = {
		name = "planet_view_resource_entry"
		size = { width = 36 height = 22 }

		iconType = {
			name = "icon"
			spriteType = "GFX_resource"
			position = { x = 5 y = 2 }
		}

		instantTextBoxType = {
			name = "amount"
			font = "cg_16b"
			text = "0"
			position = { x = 23 y = 3 }
			maxWidth = 20
			maxHeight = 20
			fixedSize = yes
			format = left
		}
	}

	# Terrain details
	containerWindowType = {
		name = "planet_view_tile_info_panel_module_tile"
		size = { width = @tile_info_module_width height = 172 }
		show_sound = "planet_view_menu_slide"

		background = {
			name = "planet_view_tile_info_panel_module_tile_background"
			spriteType = "GFX_tiles_frame_light"
		}


		instantTextBoxType = {
			name = "tile_description_label"
			font = "cg_16b"
			text = "TERRAIN_DETAILS_HEADER"
			position = { x = 17 y = 12 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		# Envrionment background
		iconType = {
			name = "icon"
			spriteType = "GFX_tile_background"
			position = { x = 18 y = 34 }
		}
		
		iconType = {
			name = "tile_blocker_clearable"
			position = { x = 18 y = 34 }
			spriteType = "GFX_tile_frame_blocker_clearable"
			alwaysTransparent = yes
		}				

		iconType = {
			name = "tile_blocker"
			position = { x = 18 y = 34 }
			spriteType = "GFX_tile_frame_blocker"
			alwaysTransparent = yes
		}

		# Tile Output
		iconType = {
			name = "output_bar"
			position = { x = 18 y = 112 }
			spriteType = "GFX_tile_output"
			#alwaysTransparent = yes
		}

		overlappingElementsBoxType = {
			name = "output_box"
			size = { x = 98 y = 0 }
			position = { x = 18 y = 112 }
			orientation = upper_left
			spacing = 0
			format = center
		}

		iconType = {
			name = "frame"
			spriteType = "GFX_tile_frame"
			position = { x = 17 y = 33 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			text = "TILE_TYPE"
			position = { x = @tile_info_x y = @tile_title_y }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			#text_color_code = "S"
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = "TILE_DESC"
			position = { x = @tile_info_x y = @title_desc_y }
			maxWidth = 190
			maxHeight = 60
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		buttonType = {
			name = "build"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -171 y = -63  }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "BUILD"
			font = "cg_16b"
			shortcut = "b"
		}

		buttonType = {
			name = "clear"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -5 y = -63  }
			Orientation = "CENTER_DOWN"
			buttonFont = "cg_16b"
			text = "CLEAR"
			font = "cg_16b"
			clicksound = confimation
		}
	}

	## Spaceport Portrait Module
	containerWindowType = {
		name = "planet_view_module_spaceport_portrait"
		size = { width = @module_width height = 180 }
		clipping = yes

		iconType = {
			name = "spaceport_portrait_portrait"
			spriteType = "GFX_spaceport_background"
			position = { x = 1 y = 4 }
			scale = 1.0
		}

		iconType = {
			name = "black_frame"
			spriteType = "GFX_planetview_black_frame"
			position = { x = 1 y = 5 }
		}

		iconType = {
			name = "stripes_1"
			spriteType = "GFX_planetview_stripes_1"
			position = { x = -10 y = 4 }
			orientation = upper_left
			alwaysTransparent = yes
		}

		iconType = {
			name = "city_frame"
			spriteType = "GFX_city_frame"
			position = { x = -4 y = 1 }
		}
	}

	# Spaceport
	containerWindowType = {
		name = "planet_view_module_spaceport_unconstructed"
		size = { width = @module_width height = 330 }
		clipping = yes

		background = {
			name = "planet_view_module_spaceport_unconstructed_background"
			spriteType = "GFX_tiles_frame"
		}

		instantTextBoxType = {
			name = "title"
			font = "malgun_goth_24"
			text = "PLANETVIEW_SPACEPORT_TITLE"
			position = { x = -100 y = 5 }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = center
			orientation = center_up
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = "PLANETVIEW_SPACEPORT_DESCRIPTION"
			position = { x = -200 y = 40 }
			maxWidth = 400
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = center_up
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "constructing_orbital_main_weapon"
			font = "malgun_goth_24"
			text = "SELECT_INITIAL_MODULE"
			position = { x = 0 y = -210 }
			maxWidth = @module_width
			maxHeight = 20
			Orientation = "LOWER_LEFT"
			format = center
			text_color_code = "G"
		}

		overlappingElementsBoxType = {
			name = "modules"
			position = { x = 18 y = -185}
			size = { x = 500 y = 0 }
			format = center
			spacing = 2
			orientation = "LOWER_LEFT"
		}
		
		buttonType = {
			name = "build"
			quadTextureSprite = "GFX_button_animated_265_80"
			position = { x = 110 y = -130  }
			orientation = center_down
			font = "malgun_goth_24"
			buttonText = "BUILD_SPACEPORT"
			clicksound = planet_view_menu_slide
			shortcut = "b"
			orientation = "LOWER_LEFT"
		}

		instantTextBoxType = {
			name = "cost"
			font = "cg_16b"
			text = "COST"
			position = { x = -200 y = -40 }
			maxWidth = 400
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = center_down
			alwaysTransparent = yes
		}

	}

	# Unconstructed spaceport module entry
	containerWindowType = {
		name = "planet_view_selectable_module_entry"
		size = { width = 50 height = 50 }

		iconType = {
			name = "icon"
			spriteType = "GFX_spaceport_modules"
			#position = { x = -3 y = -3 }
		}

		iconType = {
			name = "production_error"
			spriteType = "GFX_disabled_building"
			position = { x = 30 y = 30 }
			scale = 0.75
		}

		containerWindowType = {
			name = "selected"
			position = { x = 3 y = 3 }
			size = { width = 52 height = 52 }

			background = {
				name = "drop_area_background"
				quadTextureSprite = "GFX_drop_area_green"
				alwaysTransparent = yes
			}
		}
	}

	# Spaceport under construction
	containerWindowType = {
		name = "planet_view_module_spaceport_under_construction"
		size = { width = @module_width height = 330 }

		background = {
			name = "planet_view_module_spaceport_under_construction_background"
			spriteType = "GFX_tiles_frame"
		}

		instantTextBoxType = {
			name = "constructing_orbital_label"
			font = "malgun_goth_24"
			text = "CONSTRUCTING_ORBITAL"
			position = { x = 10 y = 25 }
			maxWidth = 525
			maxHeight = 20
			Orientation = "UPPER_LEFT"
			format = center
		}

		instantTextBoxType = {
			name = "progresstext"
			font = "cg_16b"
			text = ""
			position = { x = -200 y = 70 }
			maxWidth = 400
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = center_up
			alwaysTransparent = yes
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_infra_progressbar"
			orientation = center_up
			position = { x = -220 y = 130 }
		}

		instantTextBoxType = {
			name = "constructing_orbital_initial_module"
			font = "malgun_goth_24"
			text = "INITIAL_MODULE"
			position = { x = 0 y = 150 }
			maxWidth = @module_width
			maxHeight = 20
			orientation = "UPPER_LEFT"
			format = center
		}

		iconType = {
			name = "module"
			spriteType = "GFX_spaceport_modules"
			position = { x = -25 y = 180 }
			orientation = center_up
		}

		buttonType = {
			name = "cancel"
			quadTextureSprite = "GFX_button_animated_265_80"
			position = { x = -165 y = -110  }
			orientation = center_down
			font = "malgun_goth_24"
			text = "CANCEL"
		}
	}

	# Spaceport docked entry
	containerWindowType = {
		name = "planet_view_module_spaceport_orbital_entry"
		size = { width = 218 height = 40 }

		background = {
			name = "planet_view_module_spaceport_orbital_entry_background"
			spriteType = "GFX_interface_list_light"
		}

		iconType = {
			name = "ship_type"
			position = { x = 17 y = 7 }
			spriteType = "GFX_ship_class_small"
			alwaysTransparent = yes
		}

		iconType = {
			name = "health"
			position = { x = 0 y = -1 }
			spriteType = "GFX_fleet_view_health"
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = ""
			position = { x = 45 y = 0 }
			maxWidth = 170
			maxHeight = 40
			fixedSize = yes
			format = left
			vertical_alignment = center
			orientation = upper_left
			alwaysTransparent = yes
		}

		iconType = {
			name = "repairing"
			spriteType = "GFX_repairing"
			position = { x = 210 y = 10 }
		}
	}

	# Spaceport Build Queue Entry
	containerWindowType = {
		name = "planet_view_module_spaceport_buildqueue_entry"
		size = { width = 255 height = 50 }

		background = {
			name = "planet_view_module_spaceport_buildqueue_entry_background"
			spriteType = "GFX_tiles_dark_area_cut_8"
		}

		iconType = {
			name = "ship_type"
			position = { x = 5 y = 5 }
			spriteType = "GFX_ship_class_small"
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = ""
			position = { x = 40 y = 0 }
			maxWidth = 130
			maxHeight = 20
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "right_text"
			font = "cg_16b"
			text = ""
			position = { x = -95 y = 0 }
			maxWidth = 90
			maxHeight = 20
			fixedSize = yes
			format = right
			orientation = upper_right
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_queue_progressbar_236"
			position = { x = 2 y = 35 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			text = ""
			position = { x = 40 y = 15 }
			maxWidth = 220
			maxHeight = 20
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}
	}

	# Spaceport Panel Module Current
	containerWindowType = {
		name = "planet_view_modules_panel_current"
		size = { width = @tile_info_module_width height = 100 }

		background = {
			name = "orbitals_background"
			spriteType = "GFX_tiles_frame"
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_spaceport_modules"
			position = { x = 5 y = 5 }
		}

		instantTextBoxType={
			name = "name"
			font = "cg_16b"
			text = "NAME"
			position = { x = 60 y = 5 }
			orientation = upper_left
			maxWidth = 210
			maxHeight = 20
			fixedSize = yes
			format = left
			alwaysTransparent = yes
			text_color_code = "H"
		}

		instantTextBoxType={
			name = "desc"
			font = "cg_16b"
			text = "DESC"
			position = { x = 60 y = 25 }
			orientation = upper_left
			maxWidth = 210
			maxHeight = 100
			fixedSize = yes
			format = left
			alwaysTransparent = yes
			text_color_code = "E"
		}
	}

	# Spaceport Panel Module Buildables
	containerWindowType = {
		name = "planet_view_modules_panel_buildables"
		size = { width = @tile_info_module_width height = 100 }
		show_sound = "planet_view_menu_slide"

		background = {
			name = "orbitals_background"
			spriteType = "GFX_tiles_frame"
		}

		smoothListBoxType = {
			name = "entries"
			position = { x = 5 y = 5 }
			orientation = upper_left
			size = { x = 307 y = 90 }
			borderSize = { x = 0 y = 0 }
			scrollbartype = "standardlistbox_slider"
			autohide_scrollbar = no
			spacing = 5
		}
	}

	# Spaceport Panel Module Buildables Entry
	containerWindowType = {
		name = "planet_view_modules_panel_buildables_entry"
		size = { width = 305 height = 60 }

		background = {
			name = "orbitals_background"
			spriteType = "GFX_tiles_frame"
			clicksound = queing_spaceport_module
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_spaceport_modules"
			position = { x = 1 y = 1 }
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "name"
			font = "cg_16b"
			text = "NAME"
			text_color_code = "H"
			position = { x = 60 y = 5 }
			orientation = upper_left
			maxWidth = 240
			maxHeight = 20
			fixedSize = yes
			format = centre
			alwaysTransparent = yes
			text_color_code = "H"
		}

		instantTextBoxType={
			name = "desc"
			font = "cg_16b"
			text = "DESC"
			position = { x = 60 y = 28 }
			orientation = upper_left
			maxWidth = 240
			maxHeight = 80
			fixedSize = yes
			format = centre
			alwaysTransparent = yes
		}

		iconType = {
			name = "missing_resources"
			orientation = UPPER_RIGHT
			position = { x = -38 y = 25 }
			spriteType = "GFX_missing_resources_icon"
		}
	}

	# Spaceport
	containerWindowType = {
		name = "planet_view_module_spaceport"
		size = { width = @module_width height = 300 }

		# Top Bar
		containerWindowType = {
			name = "topbar"
			size = { width = @module_width height = 80 }

			buttonType = {
				name = "info_button"
				spriteType = "GFX_standard_button_142_34_button"
				position = { x = -10 y = 0 }
				font = "malgun_goth_24"
				buttonText = "DETAILS"
			}

			gridBoxType = {
				name = "modules"
				position = { x = 160 y = 7 }
				slotSize = { width = 54 height = 54 }
				format = "UPPER_LEFT"
				#max_slots_horizontal = 0
				#max_slots_vertical = 1
				#size = { width = 516 height = 52 }
			}
		}

		# Orbitals
		containerWindowType = {
			name = "orbitals"
			size = { width = 245 height = 210 }
			position = { x = 1 y = 90 }

			background = {
				name = "orbitals_background"
				spriteType = "GFX_tiles_frame"
			}

			instantTextBoxType={
				name = "orbitals_label"
				font = "malgun_goth_24"
				text = "DOCKED"
				position = { x = 15 y = -30 }
				maxWidth = 210
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "no_orbitals"
				font = "cg_16b"
				text = "PLANETVIEW_NO_DOCKED"
				position = { x = -137 y = 80 }
				maxWidth = 275
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = center_up
				alwaysTransparent = yes
			}

			smoothListBoxType = {
				name = "orbitals"
				position = { x = 7 y = 7 }
				orientation = upper_left
				size = { x = 218 y = 196 }
				borderSize = { x = 0 y = 0 }
				scrollbartype = "standardlistbox_slider"
				autohide_scrollbar = no
			}
		}

		# Build Queue
		containerWindowType = {
			name = "build_queue"
			size = { width = 285 height = 210 }
			position = { x = 255 y = 90 }

			background = {
				name = "build_queue_background"
				spriteType = "GFX_tiles_frame"
			}

			instantTextBoxType = {
				name = "queue_label"
				font = "malgun_goth_24"
				text = "QUEUE"
				position = { x = 20 y = -30 }
				maxWidth = 250
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			smoothListBoxType = {
				name = "build_queue"
				position = { x = 8 y = 8 }
				orientation = upper_left
				size = { x = 257 y = 150 }
				borderSize = { x = 0 y = 0 }
				scrollbartype = "standardlistbox_slider"
				autohide_scrollbar = no
			}
		}

		buttonType = {
			name = "build"
			size = { x = 265 y = 35 }
			position = { x = -287 y = -58 }
			spriteType = "GFX_button_animated_265_34"
			buttonFont = "cg_16b"
			text = "BUILD"
			font = "cg_16b"
			orientation = LOWER_RIGHT
			clicksound = planet_view_menu_click_01
			shortcut = "b"
		}
	}

	containerWindowType = {
		name = "planet_view_tile_info_panel_module_pop_trait_or_ethic"
		size = { width = 40 height = 40 }

		iconType = {
			name = "icon"
			spriteType = "GFX_ethics"
		}
	}

	# Species Details
	containerWindowType = {
		name = "planet_view_tile_info_panel_module_pop"
		size = { width = @tile_info_module_width height = 270 }
		show_sound = "planet_view_menu_slide"

		instantTextBoxType = {
			name = "tile_description_label"
			font = "cg_16b"
			text = "TILE_DESCRIPTION_POP"
			position = { x = 17 y = 12 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		background = {
			name = "tiles_background"
			spriteType = "GFX_tiles_frame_light"
		}

		containerWindowType = {
			name = "portrait"
			position = { x= 14 y = 10 }
			size = { width = 104 height = 175 }
			moveable = no
			clipping = yes

			iconType = {
				name = "portrait"
				quadTextureSprite = "GFX_portrait_character"
				position = { x = -12 y = 25 }
				scale = 0.4
				alwaysTransparent = yes
			}
		}

		instantTextBoxType = {
			name = "species"
			font = "malgun_goth_24"
			text = ""
			position = { x = 130 y = 10 }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = center
			orientation = upper_left
		}

		overlappingElementsBoxType = {
			name = "traits"
			position = { x = 140 y = 50 }
			size = { x = 180 y = 20 }
			format = left
			spacing = -5
			orientation = "UPPER_LEFT"
		}

		overlappingElementsBoxType = {
			name = "ethics"
			position = { x = 140 y = 90 }
			size = { x = 180 y = 20 }
			format = left
			spacing = -5
			orientation = "UPPER_LEFT"
		}

		instantTextBoxType = {
			name = "happiness_or_growth"
			font = "cg_16b"
			text = "HOG"
			position = { x = 130 y = 130 }
			maxWidth = 190
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
		}

		instantTextBoxType = {
			name = "ethics_divergence"
			font = "cg_16b"
			text = "DIVERGENCE"
			position = { x = 130 y = 147 }
			maxWidth = 190
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
		}
		
		buttonType = {
			name = "enslave"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 5 y = -108  }
			Orientation = "LOWER_LEFT"
			buttonFont = "cg_16b"
			text = "POP_ACTION_ENSLAVE"
			font = "cg_16b"
		}

		buttonType = {
			name = "purge"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -171 y = -108  }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "POP_ACTION_PURGE"
			font = "cg_16b"
		}
		
		buttonType = {
			name = "resettle"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 5 y = -63  }
			Orientation = "LOWER_LEFT"
			buttonFont = "cg_16b"
			text = "POP_ACTION_RESETTLE"
			font = "cg_16b"
		}
	}

	containerWindowType = {
		name = "planet_view_tile_info_panel_module_ruined_building"
		size = { width = @tile_info_module_width height = 200 }

		background = {
			name = "planet_view_tile_info_panel_module_building_background"
			spriteType = "GFX_tiles_frame_light"
		}

		instantTextBoxType = {
			name = "tile_description_label"
			font = "cg_16b"
			text = "Building Details"
			position = { x = 17 y = 12 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		# Building Output

		iconType = {
			name = "building_bg"
			spriteType = "GFX_building_bg"
			position = { x = 18 y = 34 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_building"
			position = { x = -2 y = 27 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "output_bar"
			position = { x = 18 y = 112 }
			spriteType = "GFX_tile_output"
			alwaysTransparent = yes
		}

		overlappingElementsBoxType = {
			name = "output_box"
			size = { x = 98 y = 0 }
			position = { x = 18 y = 112 }
			orientation = upper_left
			spacing = 0
			format = center
		}

		iconType = {
			name = "frame"
			spriteType = "GFX_tile_frame"
			position = { x = 17 y = 33 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			text = ""
			position = { x = @tile_info_x y = @tile_title_y }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = ""
			position = { x = @tile_info_x y = @title_desc_y }
			maxWidth = 230
			maxHeight = 100
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "repair"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -171 y = -63  }
			orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "REPAIR"
			font = "cg_16b"
		}

		buttonType = {
			name = "destroy"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 5 y = -63 }
			orientation = "LOWER_LEFT"
			buttonFont = "cg_16b"
			text = "DESTROY"
			font = "cg_16b"
		}
	}
	
	containerWindowType = {
		name = "planet_view_tile_info_panel_module_building"
		size = { width = @tile_info_module_width height = 260 }

		background = {
			name = "planet_view_tile_info_panel_module_building_background"
			spriteType = "GFX_tiles_frame_light"
		}

		instantTextBoxType = {
			name = "tile_description_label"
			font = "cg_16b"
			text = "Building Details"
			position = { x = 17 y = 12 }
			maxWidth = 344
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		# Building Output

		iconType = {
			name = "building_bg"
			spriteType = "GFX_building_bg"
			position = { x = 18 y = 34 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_building"
			position = { x = -2 y = 27 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "output_bar"
			position = { x = 18 y = 112 }
			spriteType = "GFX_tile_output"
			alwaysTransparent = yes
		}

		overlappingElementsBoxType = {
			name = "output_box"
			size = { x = 98 y = 0 }
			position = { x = 18 y = 112 }
			orientation = upper_left
			spacing = 0
			format = center
		}

		iconType = {
			name = "frame"
			spriteType = "GFX_tile_frame"
			position = { x = 17 y = 33 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			text = ""
			position = { x = @tile_info_x y = @tile_title_y }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = ""
			position = { x = @tile_info_x y = @title_desc_y }
			maxWidth = 230
			maxHeight = 100
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "deactivate"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 5 y = -63  }
			Orientation = "LOWER_LEFT"
			buttonFont = "cg_16b"
			text = "DEACTIVATE"
			font = "cg_16b"
		}

		buttonType = {
			name = "replace"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -171 y = -108  }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "REPLACE"
			font = "cg_16b"
		}

		buttonType = {
			name = "upgrade"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -171 y = -63  }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "UPGRADE"
			font = "cg_16b"
		}

		buttonType = {
			name = "destroy"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 5 y = -108  }
			Orientation = "LOWER_LEFT"
			buttonFont = "cg_16b"
			text = "DESTROY"
			font = "cg_16b"
		}
	}

	containerWindowType = {
		name = "planet_view_tile_info_panel_module_construction"
		size = { width = @tile_info_module_width height = 200 }


		background = {
			name = "planet_view_tile_info_panel_module_construction_background"
			spriteType = "GFX_tiles_frame_light"
		}

		# Blocker
		containerWindowType = {
			name = "blocker"
			size = { width = @tile_info_module_width height = 100 }


			iconType = {
				name = "blocker"
				spriteType = "GFX_tile_background"
				position = { x = 18 y = 34 }
			}

			iconType = {
				name = "tile_blocker"
				position = { x = 18 y = 34 }
				spriteType = "GFX_tile_frame_blocker"
				alwaysTransparent = yes
			}
			
			iconType = {
				name = "tile_blocker_clearable"
				position = { x = 18 y = 34 }
				spriteType = "GFX_tile_frame_blocker_clearable"
				alwaysTransparent = yes
			}			

			# Tile Output
			iconType = {
				name = "output_bar"
				position = { x = 18 y = 112 }
				spriteType = "GFX_tile_output"
				#alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "output_box"
				size = { x = 98 y = 0 }
				position = { x = 18 y = 112 }
				orientation = upper_left
				spacing = 0
				format = center
			}

			containerWindowType = {
				name = "tile_terrain_frame_box"
				size = { width = 108 height = 108 }
				position = { x = 13 y = 29 }

					background = {
						name = "tile_terrain_frame"
						spriteType = "GFX_clean_frame_area"
					}
			}



			instantTextBoxType = {
				name = "construction_description"
				font = "cg_16b"
				text = "CLEARING_PROJECT"
				position = { x = 17 y = 12 }
				maxWidth = 200
				maxHeight = 40
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
				text_color_code = "E"
			}

			instantTextBoxType = {
				name = "type"
				font = "cg_16b"
				text = "BUILDING_TYPE"
				position = { x = @tile_info_x y = @tile_title_y }
				maxWidth = 200
				maxHeight = 40
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "description"
				font = "cg_16b"
				text = "BUILDING_DESCRIPTION"
				position = { x = @tile_info_x y = @title_desc_y }
				maxWidth = 190
				maxHeight = 100
				fixedSize = yes
				format = left
				orientation = upper_left
				#alwaysTransparent = yes
			}
		}

		# Building in progress
		containerWindowType = {
			name = "building"
			size = { width = @tile_info_module_width height = 100 }

			instantTextBoxType = {
				name = "construction_description"
				font = "cg_16b"
				text = "CONSTRUCTION_PROJECT"
				position = { x = 17 y = 12 }
				maxWidth = 344
				maxHeight = 40
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
				text_color_code = "E"
			}

			iconType = {
				name = "icon"
				spriteType = "GFX_building"
				position = { x = 4 y = 38 }
				alwaysTransparent = yes
			}

			iconType = {
				name = "output_bar"
				position = { x = 18 y = 112 }
				spriteType = "GFX_tile_output"
				alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "output_box"
				size = { x = 98 y = 0 }
				position = { x = 18 y = 112 }
				orientation = upper_left
				spacing = 0
				format = center
			}

			containerWindowType = {
				name = "tile_terrain_frame_box"
				size = { width = 108 height = 108 }
				position = { x = 13 y = 29 }

					background = {
						name = "tile_terrain_frame"
						spriteType = "GFX_clean_frame_area"
					}
			}



			instantTextBoxType = {
				name = "type"
				font = "cg_16b"
				text = "BUILDING_TYPE"
				position = { x = @tile_info_x y = @tile_title_y }
				maxWidth = 200
				maxHeight = 40
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "description"
				font = "cg_16b"
				text = "BUILDING_DESCRIPTION"
				position = { x = @tile_info_x y = @title_desc_y }
				maxWidth = 210
				maxHeight = 100
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}
		}
		
			# Repair in progress
		containerWindowType = {
			name = "repairing"
			size = { width = @tile_info_module_width height = 100 }

			instantTextBoxType = {
				name = "reparation_description"
				font = "cg_16b"
				text = "REPARATION_PROJECT"
				position = { x = 17 y = 12 }
				maxWidth = 344
				maxHeight = 40
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
				text_color_code = "E"
			}

			iconType = {
				name = "icon"
				spriteType = "GFX_building"
				position = { x = -8 y = 28 }
				alwaysTransparent = yes
			}

			iconType = {
				name = "output_bar"
				position = { x = 18 y = 112 }
				spriteType = "GFX_tile_output"
				alwaysTransparent = yes
			}

			overlappingElementsBoxType = {
				name = "output_box"
				size = { x = 98 y = 0 }
				position = { x = 18 y = 112 }
				orientation = upper_left
				spacing = 0
				format = center
			}

			containerWindowType = {
				name = "tile_terrain_frame_box"
				size = { width = 108 height = 108 }
				position = { x = 13 y = 29 }

				background = {
					name = "tile_terrain_frame"
					spriteType = "GFX_clean_frame_area"
				}
			}

			instantTextBoxType = {
				name = "type"
				font = "cg_16b"
				text = "BUILDING_TYPE"
				position = { x = @tile_info_x y = @tile_title_y }
				maxWidth = 200
				maxHeight = 40
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "description"
				font = "cg_16b"
				text = "BUILDING_DESCRIPTION"
				position = { x = @tile_info_x y = @title_desc_y }
				maxWidth = 210
				maxHeight = 100
				fixedSize = yes
				format = left
				orientation = upper_left
				alwaysTransparent = yes
			}
		}

		buttonType = {
			name = "cancel"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 5 y = -63  }
			Orientation = "LOWER_LEFT"
			buttonFont = "cg_16b"
			text = "CANCEL"
			font = "cg_16b"
		}

	}

	containerWindowType = {
		name = "planet_view_tile_construction_panel_module_current"
		size = { width = @tile_info_module_width height = 145 }

		containerWindowType = {
			name = "leader_frame_box"
			size = { width = @tile_info_module_width height = 100 }
			position = { x = 0 y = 0 }

				background = {
					name = "leader_frame"
					spriteType = "GFX_tiles_frame_light"
				}
		}

		buttonType = {
			name = "icon_frame"
			spriteType = "GFX_tiles_frame_light"
			size = { x = 100 y = 100 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "building_bg"
			spriteType = "GFX_building_bg"
			position = { x = 6 y = 6 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_building"
			position = { x = -15 y = 0	}
			alwaysTransparent = yes
		}

		# Building Output
		iconType = {
			name = "output_bar"
			position = { x = 1 y = 9999 }
			spriteType = "GFX_tile_output"
			alwaysTransparent = yes
		}

		overlappingElementsBoxType = {
			name = "output_box"
			size = { x = 98 y = 0 }
			position = { x = 4 y = 71 }
			orientation = upper_left
			spacing = 0
			format = center
		}

		instantTextBoxType = {
			name = "current_building_label"
			font = "cg_16b"
			text = "CURRENT_BUILDING"
			position = { x = 115 y = 15 }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = no
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "TILE_DESC"
			position = { x = 115 y = 35 }
			maxWidth = 200
			maxHeight = 40
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = no
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			text = "TILE_DESC"
			position = { x = 1000 y = 45 }
			maxWidth = 240
			maxHeight = 75
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
		}

		iconType = {
			name = "separator"
			spriteType = "GFX_population_seperate_line"
			position = { x = -5 y = 125 }
		}
	}

	containerWindowType = {
		name = "planet_view_tile_construction_panel_module_list"
		size = { width = @tile_info_module_width height = 400 }
		show_sound = "planet_view_menu_slide"

		#background = {
		#	name = "planet_bg"
		#	quadTextureSprite = "GFX_tiles_frame_light"
		#}

		smoothListboxType = {
			name = "modular_content"
			position = { x = 0 y = 0 }
			background = ""
			size = { x = @tile_info_module_width y = 400 }
			scrollbarType = "standardlistbox_slider"
			borderSize = { x = 0 y = 0 }
			orientation = "UPPER_LEFT"
		}
	}

	containerWindowType = {
		name = "planet_view_tile_construction_panel_module_list_entry"
		size = { width = @tile_info_module_width height = 100 }
		show_sound = "planet_view_menu_slide"

		background = {
			name = "planet_bg"
			quadTextureSprite = "GFX_tiles_frame_light"
		}

		buttonType = {
			name = "icon_frame"
			spriteType = "GFX_tiles_frame_light"
			size = { x = 100 y = 100 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "building_bg"
			spriteType = "GFX_building_bg"
			position = { x = 6 y = 6 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_building"
			position = { x = -15 y = 0 }
			alwaysTransparent = yes
		}

		# Building Output

		overlappingElementsBoxType = {
			name = "output_box"
			size = { x = 96 y = 0 }
			position = { x = 4 y = 71 }
			orientation = upper_left
			spacing = -2
			format = center
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "TILE_DESC"
			position = { x = 98 y = 15 }
			maxWidth = 222
			maxHeight = 40
			fixedSize = yes
			format = centre
			orientation = upper_left
			alwaysTransparent = no
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "cost"
			font = "cg_16b"
			text = ""
			position = { x = 98 y = 48 }
			maxWidth = 222
			maxHeight = 75
			fixedSize = yes
			format = centre
			orientation = upper_left
		}

		iconType = {
			name = "missing_resources"
			orientation = UPPER_RIGHT
			position = { x = -60 y = 44 }
			spriteType = "GFX_missing_resources_icon"
		}

		iconType = {
			name = "missing_maintenance"
			orientation = UPPER_RIGHT
			position = { x = -60 y = 44 }
			spriteType = "GFX_failure_risk_icon"
		}
	}
	
	containerWindowType = {
		name = "planet_view_tile_construction_buildable_pop_entry"
		size = { width = @tile_info_module_width height = 100 }
		show_sound = "planet_view_menu_slide"

		background = {
			name = "planet_bg"
			quadTextureSprite = "GFX_tiles_frame_light"
		}

		containerWindowType = {
			name = "portrait_window"
			position = { x = 25 y = 4 }
			size = { width = 100 height = 90 }
			clipping = yes

			buttonType = {
				name = "portrait"
				spriteType = "GFX_portrait_character"
				position = { x = -8 y = 0 }
				scale = 0.3
				alwaystransparent = yes
			}
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "TILE_DESC"
			position = { x = 98 y = 15 }
			maxWidth = 222
			maxHeight = 40
			fixedSize = yes
			format = centre
			orientation = upper_left
			alwaysTransparent = no
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "cost"
			font = "cg_16b"
			text = ""
			position = { x = 98 y = 48 }
			maxWidth = 222
			maxHeight = 75
			fixedSize = yes
			format = centre
			orientation = upper_left
		}
	}

	containerWindowType = {
		name = "planet_view_spaceport_construction_panel_entry"
		size = { width = @tile_info_module_width height = 48 }


		background = {
			name = "planet_view_spaceport_construction_panel_entry_background"
			quadTextureSprite = "GFX_interface_list_light"
		}

		iconType = {
			name = "ship_type"
			position = { x = 4 y = 6 }
			spriteType = "GFX_ship_class_medium"
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "NAME"
			position = { x = 40 y = 6 }
			maxWidth = @tile_info_module_width
			maxHeight = 20
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "cost"
			font = "cg_16b"
			text = "COST"
			position = { x = -70 y = 6 }
			maxWidth = 60
			maxHeight = 20
			fixedSize = yes
			format = right
			orientation = upper_right
#			alwaysTransparent = yes
			text_color_code = "H"
		}


		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			text = "TYPE"
			position = { x = 40 y = 24 }
			maxWidth = 230
			maxHeight = 20
			fixedSize = yes
			format = left
			orientation = upper_left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		instantTextBoxType = {
			name = "auto_gen"
			font = "cg_16b"
			text = "AUTO_GENERATED_BEST"
			position = { x = -265 y = 24 }
			maxWidth = 200
			maxHeight = 20
			fixedSize = yes
			format = right
			orientation = upper_right
			alwaystransparent = yes
		}

		instantTextBoxType = {
			name = "time"
			font = "cg_16b"
			text = "TIME"
			position = { x = -70 y = 24 }
			maxWidth = 60
			maxHeight = 20
			fixedSize = yes
			format = right
			orientation = upper_right
#			alwaysTransparent = yes
			text_color_code = "H"
		}






	}

	containerWindowType = {
		name = "planet_view_terraform_panel_module_current"
		size = { width = 339 height = 150 }

		background = {
			name = "planet_view_terraform_panel_module_current_background"
			quadTextureSprite = "GFX_tiles_frame_light"
			position = { x=-5 y=0 }
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "NAME"
			position = { x = 5 y = 10 }
			maxWidth = @tile_info_module_width
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "desc"
			font = "cg_16b"
			text = "DESC"
			position = { x = -150 y = 40 }
			maxWidth = 305
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = center_up
			alwaysTransparent = yes
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "planet_view_terraform_panel_module_in_progress"
		size = { width = @tile_info_module_width height = 200 }

		background = {
			name = "planet_view_terraform_panel_module_list_entry_background"
			quadTextureSprite = "GFX_tiles_frame"
			position = { x=0 y=0 }
		}

		instantTextBoxType = {
			name = "title"
			font = "cg_16b"
			text = "PLANETVIEW_TERRAFORMING"
			position = { x = 0 y = 10 }
			maxWidth = @tile_info_module_width
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "desc"
			font = "cg_16b"
			text = "PLANETVIEW_TERRAFORMING"
			position = { x = 0 y = 40 }
			maxWidth = @tile_info_module_width
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = yes
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_terraforming_progressbar"
			position = { x = -133 y = 100 }
			orientation = center_up
		}

		buttonType = {
			name = "abort"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -246 y = -58  }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "CANCEL"
			font = "cg_16b"
		}
	}

	containerWindowType = {
		name = "planet_view_terraform_panel_module_list_entry"
		size = { width = 330 height = 80 }

#		backGround = {
#			name = "planet_view_terraform_panel_module_list_entry_background"
#			quadTextureSprite = "GFX_dark_area_cut"
#			position = { x=0 y=0 }
#		}

		buttonType = {
			name = "background_1"
			quadTextureSprite = "GFX_button_animated_265_80"
			position = { x=0 y=0 }
			orientation = "UPPER_LEFT"
			text = "CANCEL"
			font = "cg_16b"
		}
	}

	containerWindowType = {
		name = "planet_view_terraform_panel_module_list"
		size = { width = @tile_info_module_width height = 400 }

		background = {
			name = "planet_view_terraform_panel_module_list_background"
			quadTextureSprite = "GFX_tiles_frame"
		}

		instantTextBoxType = {
			name = "terraform_label"
			font = "cg_16b"
			text = "PLANETVIEW_TERRAFORM_INTO"
			position = { x = 5 y = 10 }
			maxWidth = @tile_info_module_width
			maxHeight = 200
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = yes
		}

		smoothListboxType = {
			name = "links"
			position = { x = 2 y = 36 }
			background = ""
			size = { x = 310 y = 506 }
			scrollbarType = "standardlistbox_slider"
			borderSize = { x = 0 y = 0 }
			orientation = "UPPER_LEFT"
			spacing = 5
		}
	}

	containerWindowType = {
		name = "planet_view_panel"
		size = { width = 357 height = 600 }

		origo = lower_left
		orientation = lower_left
		show_position = { x = 569 y = -84 }
		hide_position = { x = -350 y = -86 }
		animation_time = 200
		animation_type = decelerated



		background = {
			name = "planet_view_spaceport_construction_panel_background"
			quadTextureSprite = "GFX_plain_bg_tile"
		}

		instantTextBoxType = {
			name = "header"
			font = "cg_16b"
			text = ""
			position = { x = 45 y = 8 }
			maxWidth = 260
			maxHeight = 20
			fixedSize = yes
			orientation = "UPPER_LEFT"
			text_color_code = "E"
			format = CENTER
		}

		# Close Button
		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = -43 y = 0 }
			orientation = upper_right
			shortcut = "ESCAPE"
			clicksound = "back_click"
		}

		# Modular Content
		smoothListboxType = {
			name = "modular_content"
			position = { x = 10 y = 35 }
			background = ""
			size = { x = @tile_info_module_width y = 565 }
			scrollbarType = "standardlistbox_slider"
			borderSize = { x = 0 y = 0 }
			orientation = "UPPER_LEFT"
			spacing = 3
		}
	}

	containerWindowType = {
		name = "planet_view_dragged_pop"
		size = { width = 64 height = 64 }

		iconType = {
			name = "portrait"
			quadTextureSprite = "GFX_portrait_character"
			position = { x = -45 y = -30 }
			scale = 0.25
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_view_place_colony"
		size = { width = 64 height = 64 }

		iconType = {
			name = "building"
			spriteType = "GFX_building"
			position = { x = -64 y = -48 }
			alwaystransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_view_colony_ship_selection"
		orientation = center
		origo = center
		size = { width = 500 height = 500 }
		moveable = yes

		background = {
			name = "planet_view_colony_ship_selection_background"
			quadTextureSprite = "GFX_planet_bg_tile"
		}

		instantTextBoxType = {
			name = "header"
			font = "cg_16b"
			text = "COLONY_SHIP_SELECTION"
			position = { x = 0 y = 8 }
			maxWidth = 500
			maxHeight = 20
			fixedSize = yes
			format = center
			Orientation = "UPPER_LEFT"
			text_color_code = "E"
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = -40 y = 0 }
			orientation = "UPPER_RIGHT"
			shortCut = "ESCAPE"
			clicksound = "back_click"
		}

		containerWindowType = {
			name = "entries"
			size = { width = 500 height = 465 }
			position = { x = 0 y = 35 }

			background = {
				name = "entries_background"
				quadTextureSprite = "GFX_tiles_frame_light"
				alwaysTransparent = yes
			}

			smoothListboxType = {
				name = "entries"
				size = { x = 470 y = 445 }
				position = { x = 10 y = 10 }
				scrollbarType = "standardlistbox_slider"
				borderSize = { x = 0 y = 0 }
				orientation = "UPPER_LEFT"
				spacing = 3
				autohide_scrollbar = no
			}
		}
	}

	containerWindowType = {
		name = "planet_view_colony_ship_selection_entry"
		size = { width = 470 height = 100 }

		background = {
			name = "colony_ship_selection_entry_background"
			quadTextureSprite = "GFX_dark_area_cut"
		}

		iconType = {
			name = "portrait"
			quadTextureSprite = "GFX_portrait_character"
			position = { x = -10 y = 0 }
			scale = 0.3
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "fleet_name"
			font = "cg_16b"
			position = { x = 0 y = 0 }
			maxWidth = 470
			maxHeight = 32
			format = center
		}

		instantTextBoxType={
			name = "info"
			font = "cg_16b"
			position = { x = 90 y = 20 }
			maxWidth = 390
			maxHeight = 32
			format = LEFT
		}

		overlappingElementsBoxType = {
			name = "traits_list"
			size = { x = 128 y = 20 }
			position = { x = -131 y = -30 }
			orientation = "LOWER_RIGHT"
			format = right
			spacing = 0
		}

		overlappingElementsBoxType = {
			name = "ethics_list"
			size = { x = 128 y = 20 }
			position = { x = -131 y = -60 }
			orientation = "LOWER_RIGHT"
			format = right
			spacing = 0
		}
	}

	containerWindowType = {
		name = "planet_view_module_armies_fleet_entry"
		size = { width = 34 height = 34 }

		buttonType = {
			name = "icon"
			spriteType = "GFX_fleet_presence_icons"
			position = { x = 0 y = 0 }
			frame = 2
		}
	}

	containerWindowType = {
		name = "planet_view_module_armies_recruitment"
		size = { width = @module_width height = 170 }


		containerWindowType = {
			name = "armies_recruitment_right"
			size = { width = 285 height = 140 }
			position = { x = -285 y = 31 }
			orientation = UPPER_RIGHT


			background = {
				name = "armies_recruitment_right_background"
				quadTextureSprite = "GFX_tiles_frame"
			}

			instantTextBoxType={
				name = "recruitment"
				font = "malgun_goth_24"
				text = "RECRUITMENT"
				position = { x = 15 y = -30 }
				maxWidth = 255
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			smoothListboxType = {
				name = "entries"
				size = { x = 260 y = 80 }
				position = { x = 5 y = 8 }
				scrollbarType = "standardlistbox_slider"
				borderSize = { x = 0 y = 0 }
				orientation = "UPPER_LEFT"
				spacing = 3
				autohide_scrollbar = no
			}
		}

		buttonType = {
			name = "recruit"
			spriteType = "GFX_button_animated_265_34"
			position = { x = -287 y = -57 }
			orientation = LOWER_RIGHT
			buttonFont = "cg_16b"
			text = "RECRUIT"
			font = "cg_16b"
			clicksound = planet_view_menu_click_01
			shortcut = "b"
		}

		containerWindowType = {
			name = "armies_recruitment_left"
			position = { x = 1 y = 31 }
			size = { width = 245 height = 140 }

			background = {
				name = "armies_recruitment_right_background"
				quadTextureSprite = "GFX_tiles_frame"
			}

			instantTextBoxType={
				name = "armies_label"
				font = "malgun_goth_24"
				text = "ARMIES"
				position = { x = 15 y = -30 }
				maxWidth = 210
				maxHeight = 20
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
			}

			smoothListboxType = {
				name = "entries"
				size = { x = 220 y = 125  }
				position = { x = 5 y = 8 }
				scrollbarType = "standardlistbox_slider"
				borderSize = { x = 0 y = 0 }
				orientation = "UPPER_LEFT"
				spacing = 3
				autohide_scrollbar = no
			}
		}
	}

	containerWindowType = {
		name = "planet_view_module_armies_recruitment_entry"
		size = { width = 258 height = 45 }

		background = {
			name = "armies_recruitment_entry_background"
			quadTextureSprite = "GFX_dark_area_cut"
		}

		iconType = {
			name = "army_icon"
			spriteType = "GFX_army_icons"
			position = { x = 8 y = 1 }
			frame = 2
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "type"
			font = "cg_16b"
			position = { x = 55 y = 5 }
			maxWidth = 200
			maxHeight = 32
			format = LEFT
			alwaysTransparent = yes
			fixedSize = yes
		}

		instantTextBoxType={
			name = "species"
			font = "cg_16b"
			position = { x = 55 y = 22 }
			maxWidth = 115
			maxHeight = 32
			format = LEFT
			alwaysTransparent = yes
			text_color_code = "E"
			fixedSize = yes
		}

		instantTextBoxType={
			name = "progress"
			font = "cg_16b"
			position = { x = -107 y = 22 }
			orientation = UPPER_RIGHT
			maxWidth = 100
			maxHeight = 32
			format = RIGHT
			alwaysTransparent = yes
			text_color_code = "H"
		}
	}

	containerWindowType = {
		name = "planet_view_module_armies_current_entry"
		size = { width = 220 height = 55 }

		background = {
			name = "armies_current_entry_background"
			quadTextureSprite = "GFX_dark_area_cut"
			clicksound = click_army_select
		}

		iconType = {
			name = "army_icon"
			spriteType = "GFX_army_icons"
			position = { x = 8 y = 10 }
			frame = 2
			alwaysTransparent = yes
		}

		iconType = {
			name = "leader"
			spriteType = "GFX_army_info_leader"
			position = { x = 8 y = 10 }
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			position = { x = 50 y = 5 }
			maxWidth = 170
			maxHeight = 16
			fixedSize = yes
			format = LEFT
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			text = "asdf"
			position = { x = 50 y = 20 }
			maxWidth = 200
			maxHeight = 16
			fixedSize = yes
			format = LEFT
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "species"
			font = "cg_16b"
			position = { x = 50 y = 35 }
			maxWidth = 200
			maxHeight = 16
			fixedSize = yes
			format = LEFT
			alwaysTransparent = yes
			text = "Species"
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "planet_view_recruitment_panel_entry"
		size = { width = 320 height = 45 }

		background = {
			name = "recruitment_panel_entry_background"
			quadTextureSprite = "GFX_dark_area_cut"
		}

		iconType = {
			name = "army_icon"
			spriteType = "GFX_army_icons"
			position = { x = 10 y = 1 }
			frame = 2
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "type"
			font = "cg_16b"
			position = { x = 55 y = 5 }
			maxWidth = 390
			maxHeight = 32
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "species"
			font = "cg_16b"
			position = { x = 55 y = 22 }
			maxWidth = 390
			maxHeight = 32
			format = LEFT
			alwaysTransparent = yes
			text_color_code = "E"
		}

		instantTextBoxType = {
			name = "time"
			font = "cg_16b"
			position = { x = -110 y = 22 }
			orientation = UPPER_RIGHT
			maxWidth = 100
			maxHeight = 16
			format = right
			alwaysTransparent = no
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "cost"
			font = "cg_16b"
			position = { x = -110 y = 5 }
			orientation = UPPER_RIGHT
			maxWidth = 100
			maxHeight = 16
			format = right
			text = "COST"
			alwaysTransparent = no
			text_color_code = "H"
		}
	}

	containerWindowType = {
		name = "planet_view_spaceport_info_panel_entry"
		size = { width = @tile_info_module_width height = 30 }

		background = {
			name = "planet_view_spaceport_info_panel_entry_background"
			quadTextureSprite = "GFX_dark_area_cut"
		}

		instantTextBoxType = {
			name = "header"
			font = "malgun_goth_24"
			position = { x = 5 y = 0 }
			maxWidth = @tile_info_module_width
			maxHeight = 32
			format = left
			alwaysTransparent = yes
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "info"
			font = "cg_16b"
			position = { x = 5 y = 25 }
			maxWidth = @tile_info_module_width
			format = left
			alwaysTransparent = yes
			text_color_code = "E"
		}
	}

	###############################
	# Planet Edicts Entry
	###############################

	containerWindowType = {
		name = "planet_view_edicts_entry"
		position = { x=0 y=0 }
		size = { width = 330 height = 36 }
		moveable = no

		background = {
			name = "background"
			quadTextureSprite = "GFX_tiles_dark_area_cut_8"
		}

		instantTextBoxType={
			name = "edicts_name"
			font = "cg_16b"
			position = { x = 45 y = 10 }
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "cost"
			font = "cg_16b"
			position = { x = 258 y = 10 }
			maxWidth = 60
			fixedSize = yes
			format = right
		}

		instantTextBoxType={
			name = "active"
			font = "cg_16b"
			position = { x = 220 y = 10 }
			maxWidth = 100
			fixedSize = yes
			format = right
			text = "ACTIVE_GREEN"
		}

		buttonType = {
			name = "select_button"
			quadTextureSprite = "GFX_checkbox_20_20_01"
			position = { x = 10 y = 3  }
		}
	}
}