@tab_height = -42

guiTypes = {
	positionType = {
		name = "pop_category_base_size"
		position = { x = 817 y = 128 }
	}

	positionType = {
		name = "pop_category_base_collapsed_size"
		position = { x = 817 y = 35 }
	}

	positionType = {
		name = "pop_category_job_size"
		position = { x = 799 y = 122 }
	}

	positionType = {
		name = "pop_hidden_resource_entries_offset"
		position = { x = 4 y = 0 }
	}

	positionType = {
		name = "full_workforce_bar_size"
		position = { x = 74 y = 12 }
	}

	positionType = {
		name = "pop_category_popgroups_size"
		position = { x = 55 y = 55 }
	}

	positionType = {
		name = "pop_job_details_start_position"
		# using default value of ( 0, 0 )
	}

	positionType = {
		name = "pop_job_details_spacing"
		position = { x = 0 y = 5 }		# only the y spacing is used
	}

	### 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
		}
	}

	containerWindowType = {
		name = "planet_view"
		orientation = upper_left
		size = { width = 850 height = 720 } # 680 + 40
		moveable = yes
		position = { x = 300 y = 200 }
		clipping = no

		if_scaled_resolution = {
			max_height = 720 # 680 + 40
			size = { width = @view_w height = 720 } # 680 + 40

			show_position = { x = 35 y = 40 }
			hide_position = { x = -800 y = 40 }
			animation_time = 200
			animation_type = decelerated
			show_sound = "select_click"
			moveable = no
		}

		backGround = {
			name = "background"
			quadTextureSprite ="GFX_tiled_window_transparent" # makes window moveable
		}

		containerWindowType = {
			name = "planet_view_bg"
			size = { width = 850 height = 653 } # 613 + 40
			position = { x = 0 y = 9 }

			background = {
				name = "planet_bg"
				spriteType = "GFX_tile_large_bg_plain"
				alwaysTransparent = yes
				position = { x = 0 y = 19 }
			}
		}

		containerWindowType = {
			name = "planet_portrait_window"
			size = { width = 840 height = 250 }
			position = { x = 14 y = 47 }

			containerWindowType = {
				name = "portrait"
				position = { x= -9 y = -37}
				size = { width = 850 height = 240 }
				moveable = no
				clipping = yes

				buttonType = {
					name = "portrait"
					spriteType = "GFX_portrait_planet"
					position = { x = 61 y = -140 }  # Used to Move Planet Background
					scale = 1.40
					alwaystransparent = yes
					orientation = upper_left
				}
			}

			iconType = {
				name = "stripes_1"
				spriteType = "GFX_planetview_big_stripes"
				position = { x = -14 y = -38 }
				orientation = upper_left
				alwaysTransparent = yes
			}

			containerWindowType = {
				name = "planet_view_gradient"
				position = { x = -14 y = -37 }
				size = { width = 189 height = 116 }

			    background = {
					name = "leader_background"
					spriteType = "GFX_planet_view_gradient"
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "governor_title_bg"
				position = { x = -14 y = -37 }
				size = { width = 189 height = 116 }

			    background = {
					name = "leader_background"
					spriteType = "GFX_tiled_window_transparent"
					alwaysTransparent = yes
				}
			}


			containerWindowType = {
				name = "planet_top_bar"
				position = { x = -14 y = -47 }

				background = {
					name = "planet_top_bar"
					spriteType = "GFX_planet_title_banner"
					alwaystransparent = yes
				}
			}

			buttonType = {
				name = "flag"
				quadTextureSprite = "GFX_empire_flag_64"
				position = { x= -11 y = -47 }
			}
		}

		# Header
		buttonType = {
			name = "colony_rename_button"
			quadTextureSprite = "gfx_transparency_button"
			position = { x = 77 y = 3 }
			# size set by code to match name
			oversound = no_sound
		}

		instantTextBoxType = {
			name = "planet_name"
			font = "malgun_goth_24"
			text = ""
			position = { x = 77 y = 3 }
			maxWidth = 163
			maxHeight = 40
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		# Header Buttons
		containerWindowType = {
			name = "header_actions"
			position = { x = 565 y = 12 }
			size = { width = 283 height = 40 }

			buttonType = {
				name = "open_orbital_ring"
				quadTextureSprite = "GFX_button_orbital_ring_solid"
				position = { x = 40 y = 0 }
				clicksound = "click"
				pdx_tooltip = "OPEN_ORBITAL_RING"
			}

			buttonType = {
				name = "previous_planet"
				quadTextureSprite = "GFX_button_left_solid"
				position = { x = 124 y = 0 }
				shortcut = "CTRL+TAB"
				clicksound = "click"
				pdx_tooltip = "PREV"
			}

			buttonType = {
				name = "previous_planet_extra_shortcut"
				quadTextureSprite = "gfx_transparency_button"
				position = { x = 93 y = 4 }
				shortcut = "SHIFT+TAB"
				clicksound = "click"
				alwaysTransparent = yes
			}

			buttonType = {
				name = "next_planet"
				quadTextureSprite = "GFX_button_right_solid"
				position = { x = 160 y = 0 }
				#orientation = upper_left
				shortcut = "TAB"
				clicksound = "click"
				pdx_tooltip = "NEXT"
			}

			buttonType = {
				name = "move_capital"
				quadTextureSprite = "GFX_fleet_action_button_move_capital_solid"
				position = { x = 75 y = 0 }
			}

			buttonType = {
				name = "zoom_to_planet_button"
				quadTextureSprite = "GFX_fleetview_focus_solid"
				position = { x = 208 y = 0 }
				pdx_tooltip = "ZOOM_TO_PLANET"
				shortCut = "q"
				tooltip_mode_enabled = yes
			}

			buttonType = {
				name = "go_to_observation_post"
				quadTextureSprite = "GFX_fleetview_open_observation_post_solid"
				position = { x = 75 y = 0 }
			}

			buttonType = {
				name = "close"
				quadTextureSprite = "GFX_close_solid"
				position = { x = -40 y = 0 }
				shortcut = "ESCAPE"
				clicksound = "back_click"
				actionShortcut = "cancel"
				orientation = UPPER_RIGHT
				pdx_tooltip = "CLOSE_TITLE"
			}
		}

		containerWindowType = {
			name = "terraforming_in_progress"
			position = { x = 667 y = 50 }
			size = { width = 175 height = 50 }

			background = {
				name = "bg"
				spriteType = "GFX_dark_area_cut"
				alpha = 2
			}

			iconType = {
				name = "terraform_current_planet"
				position = { x = 5 y = 10 }
				spriteType = "GFX_planet_type"
				frame = 1
				scale = 0.8
				alwaysTransparent = yes
			}

			iconType = {
				name = "terraform_finished_planet"
				position = { x = 140 y = 10 }
				spriteType = "GFX_planet_type"
				frame = 1
				scale = 0.8
				alwaysTransparent = yes
			}

			iconType = {
				name = "terraform_progress"
				spriteType = "GFX_terraform_progressbar"
				position = { x = 38 y = 27 }
			}

			instantTextBoxType={
				name = "terraforming_text"
				font = "cg_16b"
				text = "TERRAFORMING_TEXT"
				position = { x = 32 y = 7 }
				maxWidth = 110
				maxHeight = 20
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}

		}

		# Colony Type
		containerWindowType = {
			name = "colony_type"
			size = { width = 180 height = 35 }
			position = { x = 82 y = 18 }

			iconType = {
				name = "colony_type_icon"
				quadTextureSprite = "GFX_colony_type"
				position = { x = -6 y = 10 }
				scale = 0.8
			}

			iconType = {
				name = "governance_skill"
				spriteType = "GFX_leader_skill"
				position = { x = 4 y = 22 }
				scale = 0.8
			}

			instantTextBoxType={
				name = "colony_type_text"
				font = "cg_16b"
				text = "Happy World"
				position = { x = 24 y = 15 }
				maxWidth = 140
				maxHeight = 20
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}
		}

		#<-------------------------- GOVERNOR --------------------------->
		containerWindowType = {
			name = "governor_window"
			position = { x = 0 y = 70 }
			size = { width = 250 height = 125 }
			clipping = no
		}

		containerWindowType = {
			name = "sector_governor_window"
			position = { x = 70 y = 70 }
			size = { width = 100 height = 125 }
			clipping = no
		}

		# Planet Devastation
		containerWindowType = {
			name = "planet_devastation"
			size = { width = 175 height = 35 }
			position = { x = 667 y = 105 }

			background = {
				name = "background"
				spriteType = "GFX_dark_area_cut"
				alpha = 1.8
			}

			iconType = {
				name = "devastation_icon"
				position = { x = 140 y = 3 }
				spriteType = "GFX_planet_devastation"
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "devastation_text"
				font = "cg_16b"
				text = "Devastation: 10%"
				position = { x = 0 y = 9 }
				maxWidth = 120
				maxHeight = 20
				fixedSize = yes
				format = right
				alwaysTransparent = no
			}
		}

		# Modifiers
		containerWindowType = {
			name = "modifiers"
			position = { x = 420 y = 152 }
			size = { width = 220 height = 34 }

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

		# containerWindowType = {
		# 	name = "background actions and planet infos"
		# 	size = { width = 840 height = 230 }
		# 	position = { x = 14 y = 47 }

		# 	background = {
		# 		name = "background"
		# 		spriteType = "GFX_species_tiles_dark_area"
		# 	}
		# }


		containerWindowType = {
			name = "planet_habitability_container"
			position = { x = 667 y = 50 }
			size = { width = 175 height = 50 }

			background = {
				name = "bg"
				spriteType = "GFX_dark_area_cut"
				alpha = 1.8
			}

			instantTextBoxType = {
				name = "planet_class_text"
				position = { x = -170 y = 7 }
				font = "cg_16b"
				text = "Type World"
				maxWidth = 115
				truncate = yes
				multiline = no
				format = right
				orientation = UPPER_RIGHT
			}

			instantTextBoxType = {
				name = "habitability"
				position = { x = -185 y = 27 }
				font = "cg_16b"
				text = "Habitability: XXX%"
				maxWidth = 130
				fixedSize = yes
				format = right
				orientation = UPPER_RIGHT
			}

			iconType = {
				name = "planet_class_icon"
				position = { x = -40 y = 7 }
				spriteType = "GFX_planet_type"
				frame = 8
				scale = 1
				orientation = UPPER_RIGHT
			}
		}

		#<------------------------------- Planet Info Panel --------------------------->
		# Actions & Planet Info
		containerWindowType = {
			name = "planet_actions_window"
			position = { x = 0 y = 200 }
			size = { width = 100% height = 30 }

			containerWindowType = {
				name = "planet_actions_window"
				position = { x = 0 y = 12 }
				background = {
					name = "stability_pops_bg"
					spriteType = "GFX_planet_info_background"
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "colonizing_planet_window"
				size = { width = 275 height = 90 }
				position = { x = 300 y = -103 }

				background = {
					name = "colonizing_planet_bg"
					spriteType = "GFX_colonizing_bg"
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "colonizing_planet_label"
					font = "malgun_goth_24"
					text = "COLONIZING_PLANET"
					position = { x = -25 y = 10}
					maxWidth = 275
					maxHeight = 24
					Orientation = "UPPER_LEFT"
					format = center
				}

				iconType = {
					name = "colonization_progress"
					spriteType = "GFX_colonization_progressbar"
					position = { x = 14 y = 40 }
				}
			}

			# Planet Stability
			containerWindowType = {
				name = "planet_stability"
				size = { width = 120 height = 34 }
				position = { x = 45 y = 14 }

				iconType = {
					name = "planet_stability_icon"
					spriteType = "GFX_stability"
					position = { x = 15 y = 2 }
					tooltip_mode_enabled = yes
					scale = 1.15
				}

				instantTextBoxType={
					name = "planet_stability_amount"
					font = "cg_16b"
					position = { x = 46 y = 8 }
					text = "100"
					maxWidth = 40
					maxHeight = 20
					fixedSize = yes
					format = center
				}
			}

			# Planet Pops
			containerWindowType = {
				name = "planet_pops"
				size = { width = 120 height = 34 }
				position = { x = 145 y = 14 }

				iconType = {
					name = "planet_pops_icon"
					spriteType = "GFX_pop"
					position = { x = 15 y = 3 }
					scale = 1.09
					tooltip_mode_enabled = yes
				}

				instantTextBoxType={
					name = "planet_pops_amount"
					font = "cg_16b"
					position = { x = 42 y = 8 }
					text = "12"
					maxWidth = 40
					maxHeight = 20
					fixedSize = yes
					format = center
				}
			}

			### Stability Related Data
			containerWindowType = {
				name = "crime_status_window"
				position = { x = 245 y = 14 }
				size = { width = 250 height = 74 }

				# Planet Crime
				containerWindowType = {
					name = "planet_crime"
					size = { width = 77 height = 34 }
					position = { x = 0 y = 0 }

					iconType = {
						name = "planet_crime_icon"
						spriteType = "GFX_planet_view_crime"
						position = { x = 8 y = 5 }
						tooltip_mode_enabled = yes
						scale = 1.08
					}

					instantTextBoxType={
						name = "planet_crime_amount"
						font = "cg_16b"
						position = { x = 32 y = 8 }
						text = "100"
						maxWidth = 40
						maxHeight = 20
						fixedSize = yes
						format = center
					}
				}

				# Planet Housing
				containerWindowType = {
					name = "planet_housing"
					size = { width = 76 height = 34 }
					position = { x = 90 y = 0 }

					iconType = {
						name = "planet_housing_icon"
						spriteType = "GFX_planet_view_planet_housing"
						position = { x = 7 y = 5 }
						tooltip_mode_enabled = yes
					}

					instantTextBoxType={
						name = "planet_housing_amount"
						font = "cg_16b"
						position = { x = 32 y = 8 }
						text = "10"
						maxWidth = 40
						maxHeight = 20
						fixedSize = yes
						format = center
					}
				}

				# Planet Amenities
				containerWindowType = {
					name = "planet_amenities"
					size = { width = 76 height = 34 }
					position = { x = 175 y = 0 }

					iconType = {
						name = "planet_amenities_icon"
						spriteType = "GFX_planet_view_planet_amenities"
						position = { x = 8 y = 6 }
						tooltip_mode_enabled = yes
					}

					iconType = {
						name = "planet_amenities_no_happiness_icon"
						spriteType = "GFX_planet_view_planet_amenities_no_happiness"
						position = { x = 8 y = 5 }
						tooltip_mode_enabled = yes
					}

					instantTextBoxType={
						name = "planet_amenities_amount"
						font = "cg_16b"
						position = { x = 32 y = 9 }
						text = "10"
						maxWidth = 40
						maxHeight = 20
						fixedSize = yes
						format = center
					}
				}

				# Planet Jobs
				containerWindowType = {
					name = "planet_jobs"
					size = { width = 76 height = 34 }
					position = { x = 265 y = 0 }

					iconType = {
						name = "planet_jobs_icon"
						spriteType = "GFX_pop_job"
						position = { x = 7 y = 3 }
						scale = 1
						tooltip_mode_enabled = yes
					}

					instantTextBoxType={
						name = "planet_jobs_amount"
						font = "cg_16b"
						position = { x = 32 y = 8 }
						text = "2"
						maxWidth = 40
						maxHeight = 20
						fixedSize = yes
						format = center
					}
				}

				# Planet Unemployed
				containerWindowType = {
					name = "planet_unemployed"
					size = { width = 200 height = 34 }
					position = { x = 355 y = 0 }

					iconType = {
						name = "planet_unemployed_icon"
						spriteType = "GFX_unemployed"
						position = { x = 4 y = 2 }
						tooltip_mode_enabled = yes
					}

					instantTextBoxType={
						name = "planet_unemployed_amount"
						font = "cg_16b"
						position = { x = 32 y = 8 }
						text = "0"
						maxWidth = 40
						maxHeight = 20
						fixedSize = yes
						format = center
					}

					OverlappingElementsBoxType = {
						name = "unemployed_stratas"
						position = { x = 32 y = 2 }
						size = { x = 200 y = 30 }
						format = left
					}
				}
			}
		}

		###Planet Summary Content
		containerWindowType = {
			name = "summary_window"
			size = { width = 500 height = 400 }
			position = { x = 0 y = 200 }

			containerWindowType = {
				name = "uncolonizable_planet_window"
				position = { x = 0 y = 45 }
				size = { width = 600 height = 320 }

				containerWindowType = {
					name = "planet_desc_window"
					position = { x = 10 y = 15 }
					size = { width = 400 height = 240 }

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

					instantTextBoxType = {
						name = "planet_desc"
						font = "cg_16b"
						position = { x = 10 y = 10 }
						text = "blah blah blah"
						maxWidth = 380
						maxHeight = 520
						fixedSize = yes
						format = left
						orientation = upper_left
					}
				}

				# Planetary resources
				containerWindowType = {
					name = "planetary_resources"
					size = { width = 270 height = 240 }
					position = { x = 569  y = 15 }

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

					instantTextBoxType = {
						name = "planetary_resources_title"
						font = "malgun_goth_24"
						text = "RESOURCES"
						position = { x = 30 y = 15 }
						maxWidth = 270
						maxHeight = 20
						fixedSize = yes
						format = left
						orientation = upper_left
						alwaysTransparent = yes
					}

					instantTextBoxType={
						name = "planetary_resources_amount"
						font = "cg_16b"
						position = { x = 40  y = 60 }
						text = "10"
						maxWidth = 155
						maxHeight = 60
						fixedSize = yes
						format = left
					}
				}
			}

			containerWindowType = {
				name = "colonizable_planet_window"
					containerWindowType = {
						name = "districts_header_bg"
						size = { width = 424 height = 78 } # 841 - 417 # 38 + 40
						position = { x = 4 y = 53 }

						background = {
							name = "district_background"
							spriteType = "GFX_dark_area"
							alwaysTransparent = yes
						}

						containerWindowType = {
							name = "districts_title"
							size = { width = 274 height = 20 }
							position = { x = -10 y = 0 }

							instantTextBoxType = {
								name = "districts_text"
								font = "malgun_goth_24"
								position = { x = 15 y = 5 }
								text = "DISTRICTS_AND_BUILDINGS_TITLE"
								maxWidth = 200
								maxHeight = 20
								fixedSize = yes
								format = left
								orientation = upper_left
								alwaysTransparent = no
							}
						}

						# Planet Designation
						containerWindowType = {
							name = "designation_button_container"
							position = { x = 155 y = -2 } # 550 - 395

							buttonType = {
								position = { x = 52 y = 5 }
								name = "designation_button"
								quadTextureSprite = "GFX_button_dark_job"
								size = { x = 180 y = 32 } # 200 - 20
							}

							iconType = {
								name = "designation_icon"
								quadTextureSprite = "GFX_colony_type"
								position = { x = 55 y = 6 }
								alwaysTransparent = yes
							}

							instantTextBoxType = {
								name = "designation_name"
								font = "cg_16b"
								text = ""
								position = { x = 87 y = 10 }
								maxWidth = 130
								maxHeight = 20
								fixedSize = yes
								format = left
								orientation = lower_left
								vertical_alignment = center
								alwaysTransparent = yes
							}
							buttonType = {
								name = "automated_development_button"
								position = { x = 203 y = 9 } # 223 - 20
								quadTextureSprite = "GFX_button_automation_small"
							}
						}

						# Available District Cubes Container
						containerWindowType = {
							name = "available_districts_window"
							size = { width = 250 height = 45 }
							position = { x = 215 y = 50 } # 365 - 150 # 10 + 40

							gridBoxType = {
								name = "available_districts_grid_box"
								size = { width = 100 height = 20 }
								position = { x = 0 y = 0 }
								format = "UPPER_RIGHT"
								slotsize = { width = 10 height = 10 }
								max_slots_horizontal = 20
								max_slots_vertical = 2
								add_horizontal = no
							}
						}

						# Districts num
						containerWindowType = {
							name = "planet_num_districts"
							size = { width = 70 height = 45 }
							position = { x = 332 y = 50 } # 482 - 150 # 10 + 40

							instantTextBoxType={
								name = "planet_districts_amount"
								font = "cg_16b"
								position = { x = 0 y = 0 }
								text = "10"
								maxWidth = 30
								maxHeight = 40
								fixedSize = yes
								format = center
							}
						}

						containerWindowType = {
							name = "planet_size_surface"
							size = { width = 70 height = 45 }
							position = { x = 362 y = 50 } # 512 - 150 # 10 + 40

							instantTextBoxType={
								name = "planet_size_surface_text"
								font = "cg_16b"
								position = { x = 0 y = 0 }
								text = "PLANET_SIZE_SHORT_TEXT"
								maxWidth = 65
								maxHeight = 40
								fixedSize = yes
							}
						}

						buttonType = {
							name = "build_queue_button"
							quadTextureSprite = "GFX_button_build_queue"
							position = { x = 390 y = 4 } # 807 - 417
							clicksound = "click"
							pdx_tooltip = "QUEUE_PLANETVIEW"
						}

					}


				#<---------------------------- DISTRICTS ----------------------------->

				### Districts Container Window
				containerWindowType = {
					name = "districts_window"
					size = { width = 841 height = 175 } # 561 + 280
					position = { x = 4 y = 133 } # 93 + 40

					background = {
						position = { x = 0 y = 1 }
						name = "districts_window_background"
						spriteType = "GFX_dark_area"
						alwaysTransparent = yes
					}

					buttonType ={
						name = "selection_highlight"
						spriteType = "GFX_glow_tile_orange_no_padding"
						position = { x = 0 y = 0 }
						size = { x = 841 y = 175 } # 561 + 280
						alwaystransparent = yes
					}

					buttonType = {
						name = "district_button"
						position = { x = 0 y = 0 }
						size = { x = 841 y = 175 } # 561 + 280
						quadTextureSprite = "GFX_district_hover"
						clicksound = "menu_slide_open"
					}

					instantTextBoxType = {
						name = "name"
						font = "cg_16b"
						text = "District Name"
						position = { x = 6 y = 4 }
						maxWidth = 500
						maxHeight = 16
						fixedSize = yes
						truncate = yes
						format = left
						alwaysTransparent = yes
					}

					instantTextBoxType = {
						name = "triggered_name"
						font = "cg_16b"
						text_color_code = "Y"
						text = "Triggered Name"
						position = { x = 5  y = 18 }
						maxWidth = 500
						maxHeight = 16
						fixedSize = yes
						truncate = yes
						format = left
						alwaysTransparent = yes
					}

					buttonType = {
						name = "build_district"
						position = { x = -94 y = -5 }
						spriteType = "GFX_button_animated_75_24"
						buttonFont = "cg_16b"
						text = "BUILD_DISTRICT_BUTTON"
						font = "cg_16b"
						orientation = UPPER_RIGHT
						oversound = mouse_over
						pdx_tooltip = "BUILD_DISTRICT"
						clicksound = "ui_queuing_district"
					}

					buttonType = {
						name = "district_icon_frame"
						quadTextureSprite = "GFX_tiles_frame_extra_light"
						position = { x = 5 y = 47 }
						size = { x = 79 y = 79 }
					}

					iconType = {
						name = "district_icon"
						spriteType = "GFX_district_unknown"
						position = { x = 6 y = 48 }
						alwaysTransparent = yes
					}

					iconType = {
						name = "progressbar"
						spriteType = "GFX_district_progressbar"
						position = { x = 6 y = 117 }
						alwaysTransparent = yes
					}

					instantTextBoxType={
						name = "not_surveyed"
						font = "malgun_goth_24"
						text = "UNKNOWN_SHORT"
						position = { x = 39 y = 115 }
						maxWidth = 20
						maxHeight = 20
						fixedSize = yes
						format = left
					}

					containerWindowType = {
						name = "district_box"
						size = { width = 52 height = 82 }
						position = { x = 56 y = 125 }

						gridBoxType = {
							name = "district_box_grid"
							size = { width = 65 height = 45 }
							position = { x = 0 y = 18 }
							format = "UPPER_LEFT"
							slotsize = { width = 22 height = 10 }
							max_slots_horizontal = 22
							max_slots_vertical = 3
							add_horizontal = yes
						}
					}

					# Passed 15 Cubes, Number Box is shown. Replaces the bottom 6 cubes.
					containerWindowType = {
						name = "planet_district_cap_container"
						size = { width = 44 height = 38 }
						position = { x = 4 y = 148}

						iconType = {
							name = "cap_background"
							spriteType = "GFX_district_any_big"
							position = {x = 2 y = -6 }
						}

						instantTextBoxType = {
							name = "num_districts_text"
							font = "cg_16b"
							position = { x = -1 y = 0 }
							text = "10"
							maxWidth = 52
							maxHeight = 20
							fixedSize = yes
							format = center
						}
					}

					#Primary Zone
					containerWindowType = {
						name = "zone"
						position = { x = 83 y = 36 }
						size = { width = 164 height = 102 }

						buttonType ={
							name = "selection_highlight"
							spriteType = "GFX_glow_tile_orange_no_padding"
							position = { x = 0 y = 0 }
							size = { x = 164 y = 75 }
							alwaystransparent = yes
						}

						#Buildings
						gridBoxType = {
							name = "buildings_box"
							position = { x = 5 y = 0 }
							size = { width = 48 height = 48 }
							format = "UPPER_LEFT"
							slotsize = { width = 52 height = 52 }
							add_horizontal = yes
							max_slots_horizontal = 3
							max_slots_vertical = 2
						}

						buttonType = {
							name = "zone_button"
							position = { x= 80 y= 68 }
							spriteType = "GFX_new_zone"
							clicksound = "menu_slide_open"
						}

						instantTextBoxType = {
							name = "zone_available"
							font = "cg_16b"
							position = { x = 120 y = 67 }
							text = "zone_available"
							maxWidth = 150
							maxHeight = 50
							fixedSize = yes
							format = left
							orientation = upper_left
							vertical_alignment = center
						}

						instantTextBoxType = {
							name = "zone_unavailable"
							font = "cg_16b"
							position = { x = 120 y = 67 }
							text = ""
							maxWidth = 150
							maxHeight = 50
							fixedSize = yes
							format = left
							orientation = upper_left
							vertical_alignment = center
						}
					}

					#Secondary Zones
					gridBoxType = {
						name = "zones_grid_box"
						position = { x = 254 y = 36 } # 264 - 10 # 34 + 2
						size = { width = 271 height = 166 }
						format = "UPPER_LEFT"
						slotsize = { width = 292 height = 53 } # 274 size of zones
						add_horizontal = yes
						max_slots_horizontal = 2
						max_slots_vertical = 3
					}
				}

				containerWindowType = {
					name = "districts_grid_window"
					size = { width = 830 height = 173 }
					position = { x = 10 y = 312 } # 272 + 40

					# Districts Buttons
					gridBoxType = {
						name = "districts_grid_box"
						position = { x = 0 y = 0 }
						size = { width = 830 height = 175 }
						format = "UPPER_LEFT"
						slotsize = { width = 281 height = 155 }
						add_horizontal = yes
						max_slots_horizontal = 3
						max_slots_vertical = 1
					}
				}

				containerWindowType = {
					name = "planet_desc_window"
					size = { width = 270 height = 169 } # 274 - 4 # 174 - 5
					position = { x = 566 y = 137 } # 93 + 44

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

					instantTextBoxType = {
						name = "planet_desc"
						font = "cg_16b"
						position = { x = 10 y = 5 } # 10 # 10
						text = ""
						maxWidth = 254
						maxHeight = 163 # 146
						fixedSize = yes
						format = left
						orientation = upper_left
					}
				}
			}

			containerWindowType = {
				name = "colonize_button_container"
				position = { x = 367 y = -94}
				size = { width = 116 height = 34 }


				buttonType = {
					name = "colonize_button"
					position = { x = -12 y = -12 }
					spriteType = "GFX_button_hex_151_43"
					buttonFont = "cg_16b"
					text = "PLANETVIEW_COLONIZE"
					font = "cg_16b"
					oversound = mouse_over
					shortCut = "I"
				}
			}

			containerWindowType = {
				name = "archaeological_site_window"
				size = { width = 150 height = 50 }
				position = { x = 690 y = -110 }

				background = {
					name = "terraforming_background"
					spriteType = "GFX_dark_area_cut"
					alpha = 2
				}

				buttonType = {
					name = "button"
					position = { x = 5 y = -5 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "VIEW_SITE"
					font = "cg_16b"
					oversound = mouse_over
				}
			}

			containerWindowType = {
				name = "colonized_planet_window"
				size = { width = 500 height = 400 }

				# Primitives
				containerWindowType = {
					name = "planet_primitives_window"
					size = { width = 412 height = 77 } # 274 # 174
					position = { x = 429 y = 54 } # 566 # 93

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

					instantTextBoxType = {
						name = "planet_primitives"
						font = "cg_16b"
						position = { x = 10 y = 6 } # 10 # 10
						text = ""
						maxWidth = 391 # 254
						maxHeight = 67 # 146
						fixedSize = yes
						format = left
						orientation = upper_left
					}
				}

				#<---------------------------- RESOURCES -------------------------------->
				# Planetary Resources
				containerWindowType = {
					name = "planetary_resources"
					size = { width = 414 height = 78 } # 277 # 173
					position = { x = 431 y = 53 } # 568 # 95

					background = {
						name = "output_background"
						spriteType = "GFX_dark_area"
						alwaysTransparent = yes
					}

					buttonType = {
						name = "planet_production_title_background"
						position = { x = 0 y = 0 }
						spriteType = "GFX_dark_area"
						size = { x = 280 y = 28 }
						alwaysTransparent = yes
					}

					iconType = {
						name = "positive_icon"
						spriteType = "GFX_growth_positive"
						position = {x = 44 y = 4 } # 74 - 30 # 7 - 5
					}

					instantTextBoxType = {
						name = "planetary_production_output_title"
						font = "cg_16b"
						text = "PLANETARY_PRODUCTION"
						position = { x = 65 y = 4 } # 95 - 30 # 7 - 5
						maxWidth = 203 # 274
						maxHeight = 20
						fixedSize = yes
						alwaysTransparent = yes
					}

					instantTextBoxType={
						name = "planetary_production_output_amount"
						font = "cg_16b"
						position = { x = 2  y = 30 } # 12 # 35
						text = "" # produced resources set in code
						maxWidth = 203 # 250
						maxHeight = 65 # 60
						format = center
						scrollbartype = "standardtext_slider_small"
					}

					buttonType = {
						name = "planet_comsumption_title_background"
						position = { x = 0 y = 91 }
						spriteType = "GFX_dark_area"
						size = { x = 280 y = 28 }
						alwaysTransparent = yes
					}

					iconType = {
						name = "negative_icon"
						spriteType = "GFX_growth_negative"
						position = {x = 262 y = 5 } # 87 + 175 # 98
					}

					instantTextBoxType = {
						name = "planetary_consumption_output_title"
						font = "cg_16b"
						text = "PLANETARY_DEFICIT"
						position = { x = 284 y = 5 } # 109 + 175 # 96
						maxWidth = 203 # 274
						maxHeight = 20
						fixedSize = no
						alwaysTransparent = yes
					}

					instantTextBoxType={
						name = "planetary_consumption_output_amount"
						font = "cg_16b"
						position = { x = 208  y = 30 } # 12 # 125
						text = "" # consumed resources set in code
						maxWidth = 203 # 250
						maxHeight = 65 # 50
						format = center
						scrollbartype = "standardtext_slider_small"
					}
				}
			}
		}

        #<--------------------- Management Screen --------------------------->

        containerWindowType = {
            name = "management_window"
            size = { width = 500 height = 400 }
            position = { x = 0 y = 200 }

		    #<--------------------- Planet Class --------------------------->

			containerWindowType = {
				name = "planet_summary"
                size = { width = 290 height = 107 }
                position = { x = 10 y = 57 }

				background = {
					name = "background"
					spriteType = "GFX_planet_summary_bg"
					alwaysTransparent = yes
				}

				iconType = {
					name = "management_planet_class_icon"
					position = { x = 190 y = 45 }
					spriteType = "GFX_planet_type"
					frame = 8
					scale = 1.5
					alwaysTransparent = no
				}

				instantTextBoxType={
					name = "terraform_label"
					font = "cg_16b"
					text = "TERRAFORMING_IN_PROGRESS"
					position = { x = 162 y = 60 }
					maxWidth = 116
					maxHeight = 50
					format = center
				}

				buttonType = {
					name = "terraform_button"
					position = { x = 150 y = -4 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "TERRAFORM_TITLE"
					font = "cg_16b"
					oversound = mouse_over
					navLeft = "change"
					shortcut = "T"
				}

				instantTextBoxType={
					name = "header"
					font = "malgun_goth_24"
					text = "PLANET_SUMMARY_TITLE"
					position = { x = 10 y = 5 }
					text_color_code = "E"
				}

				instantTextBoxType = {
					name = "management_planet_class_text"
					font = "cg_16b"
					text = "Type World"
					position = { x = 10 y = 32 }
					text_color_code = "E"
				}

				instantTextBoxType = {
					name = "management_habitability"
					font = "cg_16b"
					text = "Habitability: XXX%"
					position = { x = 10 y = 48 }
				}

				instantTextBoxType = {
					name = "colonization_date"
					font = "cg_16b"
					position = { x = 10 y = 64 }
					text = "Colonized: 01.01.22XX"
				}

				instantTextBoxType =  {
					name = "planet_size"
					font = "cg_16b"
					position = { x = 10 y = 80 }
					text = "Size: XX"
				}
			}

            #<--------------------- Planet Features/Deposits --------------------------->

            containerWindowType = {
                name = "deposits_window"
                position = { x = 10 y = 166 }
                size = { width = 290 height = 310 } # 270 + 40

				containerWindowType = {
                    name = "deposits_summary_window"
                    size = { width = 290 height = 40 }
                    position = { x = 0 y = 0 }

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

                    instantTextBoxType = {
                        name = "header"
                        font = "malgun_goth_24"
                        text = "DEPOSITS_TITLE"
                        position = { x = 10 y = 6 }
                        text_color_code = "E"
                    }

                    containerWindowType = {
                        name = "blocker_deposits_window"
                        size = { width = 100 height = 30 }
                        position = { x = 180 y = 10 }
                        iconType = {
                            name = "blocker_deposit_frame"
                            spriteType = "GFX_blocker_icon"
                            position = { x = -7 y = 0 }
                            scale = 1
                        }

                        instantTextBoxType = {
                            name = "blocker_deposit_num"
                            font = "cg_16b"
                            position = { x = 26 y = 1 }
                            text = "x5"
                            maxWidth = 35
                            maxHeight = 50
                            fixedSize = yes
                            format = left
                            orientation = upper_left
                        }
                    }

                    containerWindowType = {
                        name = "rare_deposits_window"
                        size = { width = 90 height = 30 }
                        position = { x = 225 y = 10 }

                        iconType = {
                            name = "blocker_deposit_frame"
                            spriteType = "GFX_resource_strategic_top_bar"
                            position = { x = 6 y = 0 }
                            scale = 1.1
                        }

                        instantTextBoxType = {
                            name = "blocker_deposit_num"
                            font = "cg_16b"
                            position = { x = 32 y = 1 }
                            text = "x5"
                            maxWidth = 35
                            maxHeight = 50
                            fixedSize = yes
                            format = left
                            orientation = upper_left
                        }
                    }
                }

                background = {
                    name = "designation_info_background"
                    spriteType = "GFX_dark_area"
					alpha = 1.2
					alwaysTransparent = yes
                }

                # Deposits
                smoothListboxType = {
                    name = "deposits_list"
                    position = { x = 10 y = 45 }
                    background = ""
                    size = { x = 270 y = 260 } # 220 + 40
                    scrollbarType = "standardlistbox_slider"
                    borderSize = { x = 0 y = 0 }
                    orientation = "UPPER_LEFT"
                    spacing = 4
                }

				instantTextBoxType = {
					name = "deposits_no_intel"
					font = "cg_16b"
                    position = { x = 20 y = 120 }
					text = "x5"
					maxWidth = 250
					maxHeight = 210
					fixedSize = yes
					format = center
					orientation = upper_left
					text = "DEPOSITS_NO_INTEL"
				}
			}

            #<--------------------- Planet Demographics --------------------------->

            containerWindowType = {
                name = "demographics_window"
                position = { x = 310 y = 57 }
				size = { width = 250 height = 419 } # 379 + 40

				containerWindowType = {
                    name = "demographics_summary_window"
                    size = { width = 248 height = 40 }
                    position = { x = 1 y = 1 }

                    background = {
                        name = "background"
                        spriteType = "GFX_species_tiles_dark_area"
						alwaysTransparent = yes
                    }

                    instantTextBoxType = {
                        name = "header"
                        font = "malgun_goth_24"
                        text = "CURRENT_POPULATION"
                        position = { x = 9 y = 9 }
                        text_color_code = "E"
                    }
                }

                background = {
                    name = "demographics_window_background"
                    spriteType = "GFX_dark_area"
					alpha = 1.2
                }

				#Pop Growth
				containerWindowType = {
					name = "pop_group_growth"
					size = { width = 52 height = 12 }
					position = { x = 185 y = 18 }

					iconType = {
						name = "pop_group_growth_icon"
						spriteType = "GFX_growth_neutral"
						position = { x = 10 y = 0 }
					}

					instantTextBoxType = {
						name = "pop_group_growth"
						font = "cg_16b"
						text = "+03"
						position = { x = 10 y = 0 }
						maxWidth = 40
						maxHeight = 18
						fixedSize = yes
						format = right
					}
				}

                # Demographicss
                smoothListboxType = {
                    name = "demographics_list"
                    background = ""
					position = { x = 10 y = 45 }
                    size = { x = 230 y = 365 } # 325 + 40
                    scrollbarType = "standardlistbox_slider"
                    borderSize = { x = 0 y = 0 }
                    orientation = "UPPER_LEFT"
                    spacing = 5
                }
            }

            #<--------------------- Sector Managment --------------------------->

            containerWindowType = {
                name = "sector_info"
                size = { width = 270 height = 64 }
                position = { x = 570 y = 57 }

				background = {
					name = "sector_info_background"
					spriteType = "GFX_dark_area"
					alpha = 1.2
					alwaysTransparent = yes
				}

                buttonType = {
                    name = "sector_action_button"
                    position = { x = 224 y = 13 }
                    size = { x = 35 y = 35 }
                    quadTextureSprite = "GFX_button_sector_new"
                }

                buttonType = {
                    name = "sector_edit_button"
                    position = { x = 190 y = 13 }
                    size = { x = 35 y = 35 }
                    quadTextureSprite = "GFX_edit_sectors"
                    pdx_tooltip = "EDIT_SECTOR_BUTTON"
                }

                instantTextBoxType = {
                    name = "sector_name"
                    font = "malgun_goth_24"
                    text = "SECTOR NAME"
                    position = { x = 28 y = 10 }
                    maxWidth = 170
                    maxHeight = 30
                    fixedSize = yes
                    format = left
                    orientation = upper_left
                    alwaysTransparent = yes
                    text_color_code = "E"
                }

                instantTextBoxType = {
                    name = "sector_type"
                    font = "cg_16b"
                    text = "SECTOR TYPE"
                    position = { x = 30 y = 36 }
                    maxWidth = 100
                    maxHeight = 30
                    fixedSize = yes
                    format = left
                    orientation = upper_left
                    alwaysTransparent = yes
                }

                buttonType = {
                    name = "open_sector_view"
                    spriteType = "GFX_sector_cap_icon"
                    position = { x = 4 y = 22 }
                    scale = 0.8
                    pdx_tooltip = "OPEN_EMPIRE_VIEW_SECTOR"
                }
            }

			#<--------------------- Planetary Ascension --------------------------->

			containerWindowType = {
				name = "ascension_info"
				size = { width = 270 height = 353 } # 313 + 40
				position = { x = 570 y = 123 }

				background = {
					name = "ascension_info_background"
					spriteType = "GFX_planetary_ascension_bg"
					alwaysTransparent = yes
				}

				buttonType = {
					name = "upgrade_ascension_tier_button"
					position = { x = 224 y = 8 }
					quadTextureSprite = "GFX_button_upgrade_ascension_tier"
				}

				iconType = {
					name = "ascension_tier_icon"
					quadTextureSprite = "GFX_ascension_tier"
					position = { x = 12 y = 17 }
					frame = 6
				}

				instantTextBoxType = {
					name = "ascension_tier"
					font = "malgun_goth_24"
					text = ""
					position = { x = 40 y = 15 }
					maxWidth = 180
					maxHeight = 30
					fixedSize = yes
					format = left
				}

				instantTextBoxType = {
					name = "ascension_text"
					font = "cg_16b"
					text = "PLANET_ASCENSION_TEXT_NONE"
					position = { x = 10 y = 50 }
					maxWidth = 250
					maxHeight = 165
					fixedSize = yes
					format = left
				}

				iconType = {
					name = "empire_header_line"
					quadTextureSprite = "GFX_line_horizontal"
					position = { x = 10 y = 260 } # 220 + 40
					alwaysTransparent = yes
				}

				buttonType = {
					name = "decisions_button"
					position = { x = 65 y = 280 } # 240 + 40
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "DECISIONS_TITLE"
					font = "cg_16b"
					#orientation = UPPER_RIGHT
					oversound = mouse_over
					navLeft = "change"
					shortCut = "N"
					pdx_tooltip = "DECISIONS_TOOLTIP"
				}
			}
		}

		#<----------------------------- Population Screen -------------------------------->

		containerWindowType = {
			name = "population_window"
			size = { width = 811 height = 440 } # 400 + 40
			position = { x = 1 y = 206 }

			#Jobs Art BG Box  ------ 5 px all around for art pading
			containerWindowType = {
				name = "Jobs_BG"
				size = {width = 838 height = 429} # 389 + 40
				position = { x = 5 y = 45 }

				background = {
					name = "jobs_bg_art"
					quadTextureSprite = "GFX_planet_bg_tile_frame"
				}
			}

			containerWindowType = {
				name = "title"
				size = { width = 350 height = 220 }
				position = { x = 0 y = 30 }

				iconType = {
					name = "planet_jobs_icon"
					spriteType = "GFX_pop_job"
					position = { x = 20 y = 30 }
					scale = 1
					tooltip_mode_enabled = yes
				}

				#iconType = {
				#	name = "title_hex"
				#	quadTextureSprite = "GFX_hex_bg"
				#	position = { x = -11 y = 10 }
				#}

				instantTextBoxType = {
					name = "title_text"
					font = "malgun_goth_24"
					position = { x = 50 y = 30 }
					text = "JOBS_TITLE"
					maxWidth = 320
					maxHeight = 20
					fixedSize = yes
					format = left
					orientation = upper_left
				}
				instantTextBoxType = {
					name = "job_desc_text"
					font = "cg_16b"
					position = { x = 160 y = 40 }
					text = "FAVORITE_JOB_DESC"
					maxWidth = 320
					maxHeight = 20
					fixedSize = yes
					format = right
					orientation = upper_left
					text_color_code = "E"
				}
			}

			buttonType = {
				name = "resettle_button"
				position = { x = 530 y = 49 }
				spriteType = "GFX_standard_button_116_34"
				buttonFont = "cg_16b"
				text = "POP_ACTION_RESETTLE"
				font = "cg_16b"
				#orientation = UPPER_RIGHT
				oversound = mouse_over
				shortCut = "I"
			}

			buttonType = {
				name = "restore_jobs_button"
				position = { x = 665 y = 60 }
				size = { x = 160 y = 35 }
				quadTextureSprite = "GFX_button_light"
				buttonText = "Restore Jobs ( 10 )"
				buttonFont = "cg_16b"
				shortCut = "J"
			}

			# Strata Scroll List
			smoothListboxType = {
				name = "pop_categories_list" # Uses planet_pop_category_entry
				position = { x = 20 y = 100 }
				background = ""
				size = { x = 811 y = 366 } # 326 + 40
				scrollbarType = "standardlistbox_slider"
				borderSize = { x = 0 y = 0 }
				orientation = "UPPER_LEFT"
				spacing = 6
			}

			# Planet Amenities
			#containerWindowType = {
			#	name = "pops_tab_amenities_window"
			#	size = { width = 76 height = 34 }
			#	position = { x = 9 y = 350 }

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

			#	iconType = {
			#		name = "planet_amenities_icon"
			#		spriteType = "GFX_planet_view_planet_amenities"
			#		position = { x = 8 y = 5 }
			#		tooltip_mode_enabled = yes
			#	}

			#	iconType = {
			#		name = "planet_amenities_no_happiness_icon"
			#		spriteType = "GFX_planet_view_planet_amenities_no_happiness"
			#		position = { x = 8 y = 5 }
			#		tooltip_mode_enabled = yes
			#	}

			#	instantTextBoxType={
			#		name = "planet_amenities_amount"
			#		font = "cg_16b"
			#		position = { x = 32 y = 9 }
			#		text = "10"
			#		maxWidth = 40
			#		maxHeight = 20
			#		fixedSize = yes
			#		format = center
			#	}
			#}

			# Planet Pops
			#containerWindowType = {
			#	name = "pops_tab_pops_window"
			#	size = { width = 76 height = 34 }
			#	position = { x = 88 y = 313 }

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

			#	iconType = {
			#		name = "planet_pops_icon"
			#		spriteType = "GFX_pop"
			#		position = { x = 8 y = 1 }
			#		scale = 1
			#		tooltip_mode_enabled = yes
			#	}

			#	instantTextBoxType={
			#		name = "planet_pops_amount"
			#		font = "cg_16b"
			#		position = { x = 32 y = 8 }
			#		text = "12"
			#		maxWidth = 40
			#		maxHeight = 20
			#		fixedSize = yes
			#		format = center
			#	}
			#}

			# Planet Housing
			#containerWindowType = {
			#	name = "pops_tab_housing_window"
			#	size = { width = 76 height = 34 }
			#	position = { x = 88 y = 350 }

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

			#	iconType = {
			#		name = "planet_housing_icon"
			#		spriteType = "GFX_planet_view_planet_housing"
			#		position = { x = 7 y = 5 }
			#		tooltip_mode_enabled = yes
			#	}

			#	instantTextBoxType={
			#		name = "planet_housing_amount"
			#		font = "cg_16b"
			#		position = { x = 32 y = 8 }
			#		text = "10"
			#		maxWidth = 40
			#		maxHeight = 20
			#		fixedSize = yes
			#		format = center
			#	}
			#}
		}


		# Armies -------------------- COMBAT SCREEN ------------------------->
		containerWindowType = {
			name = "armies_window"
			size = { width = 500 height = 440 } # 400 + 40
			position = { x = 0 y = 200 }

			containerWindowType = {
				name = "ground_combat_window"
				size = { width = 500 height = 440 } # 400 + 40
				position = { x = 65 y = 0 }

				# Defender
				instantTextBoxType = {
					name = "defender_power"
					font = "cg_16b"
					text = "Defender Power: 15"
					position = { x = 240 y = 155 }
					maxWidth = 200
					maxHeight = 20
					fixedSize = yes
					format = left
					orientation = upper_left
					alwaysTransparent = yes
				}

				containerWindowType = {
					name = "defender_general"
					size = { width = 275 height = 100 }
					position = { x = -50 y = 50 }
					clipping = yes

					background = {
						name = "leader_background"
						spriteType = "GFX_dark_area"
						alwaysTransparent = yes
					}
				}

				gridBoxType = {
					name = "defender_frontline"
					size = { width = 70 height = 280 }
					position = { x = 285 y = 175 }
					format = "UPPER_LEFT"
					slotsize = { width = 35 height = 35 }
					max_slots_horizontal = 2
					max_slots_vertical = 7
					add_horizontal = yes
				}

				iconType = {
					name = "defender_frontline_divider"
					quadTextureSprite = "GFX_vertical_line"
					position = { x = 275 y = 180 }
					scale = 0.5
					alwaysTransparent = yes
				}

				gridBoxType = {
					name = "defender_armies"
					size = { width = 140 height = 280 }
					position = { x = 130 y = 185 }
					format = "UPPER_LEFT"
					slotsize = { width = 35 height = 35 }
					max_slots_horizontal = 4
					max_slots_vertical = 7
					add_horizontal = yes
				}

				gridBoxType = {
					name = "defender_disengaged"
					size = { width = 100 height = 210 }
					position = { x = 20 y = 185 }
					format = "UPPER_LEFT"
					slotsize = { width = 35 height = 35 }
					max_slots_horizontal = 3
					max_slots_vertical = 7
					add_horizontal = yes
				}

				instantTextBoxType = {
					name = "defender_disengaged_text"
					font = "cg_16b"
					text = "ARMY_IS_DISENGAGED"
					position = { x = 20 y = 165 }
					maxWidth = 100
					maxHeight = 20
					fixedSize = yes
					format = left
					orientation = upper_left
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "defender_reserves"
					font = "cg_16b"
					text = "GROUND_COMBAT_RESERVES"
					position = { x = 100 y = 165 }
					maxWidth = 200
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				# Attacker
				instantTextBoxType = {
					name = "attacker_power"
					font = "cg_16b"
					text = "Attacker Power: 15"
					position = { x = 335 y = 155 }
					maxWidth = 200
					maxHeight = 20
					fixedSize = yes
					format = right
					orientation = upper_left
					alwaysTransparent = yes
				}

				containerWindowType = {
					name = "attacker_general"
					size = { width = 275 height = 100 }
					position = { x = 500 y = 50 }
					clipping = yes

					background = {
						name = "leader_background"
						spriteType = "GFX_dark_area"
						alwaysTransparent = yes
					}
				}

				gridBoxType = {
					name = "attacker_frontline"
					size = { width = 70 height = 280 }
					position = { x = 360 y = 175 }
					format = "UPPER_LEFT"
					slotsize = { width = 35 height = 35 }
					max_slots_horizontal = 2
					max_slots_vertical = 7
					add_horizontal = yes
				}

				iconType = {
					name = "attacker_frontline_divider"
					quadTextureSprite = "GFX_vertical_line"
					position = { x = 435 y = 180 }
					scale = 0.5
					alwaysTransparent = yes
				}

				gridBoxType = {
					name = "attacker_armies"
					size = { width = 140 height = 280 }
					position = { x = 445 y = 185 }
					format = "UPPER_LEFT"
					slotsize = { width = 35 height = 35 }
					max_slots_horizontal = 4
					max_slots_vertical = 7
					add_horizontal = yes
				}

				gridBoxType = {
					name = "attacker_disengaged"
					size = { width = 100 height = 210 }
					position = { x = 600 y = 185 }
					format = "UPPER_LEFT"
					slotsize = { width = 35 height = 35 }
					max_slots_horizontal = 3
					max_slots_vertical = 7
					add_horizontal = yes
				}

				instantTextBoxType = {
					name = "attacker_disengaged_text"
					font = "cg_16b"
					text = "ARMY_IS_DISENGAGED"
					position = { x = 600 y = 170 }
					maxWidth = 100
					maxHeight = 20
					fixedSize = yes
					format = right
					orientation = upper_left
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "attacker_reserves"
					font = "cg_16b"
					text = "GROUND_COMBAT_RESERVES"
					position = { x = 415 y = 170 }
					maxWidth = 200
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				buttonType = {
					name = "retreat_button"
					position = { x = -215 y = -330 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "PLANET_VIEW_RETREAT"
					font = "cg_16b"
					orientation = LOWER_RIGHT
					oversound = mouse_over
					navLeft = "change"
				}

				instantTextBoxType = {
					name = "combat_width"
					font = "cg_16b"
					text = "Combat Width: 16"
					position = { x = -245 y = -245 }
					maxWidth = 200
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = LOWER_RIGHT
				}

				instantTextBoxType = {
					name = "frontline"
					font = "cg_16b"
					text = "GROUND_COMBAT_FRONTLINE"
					position = { x = 255 y = 140 }
					maxWidth = 200
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "defenses_window"
				size = { width = 500 height = 440 } # 400 + 40
				position = { x = 0 y = 0 }

				#Devastation Box
				containerWindowType = {
				name = "defenses_window"
				size = { width = 204 height = 90 } #5 px padding for art
				position = {x = 355 y = 50}

					background = {
						name = "devastation_bg"
						quadTextureSprite = "GFX_planet_bg_tile_frame"
					}

					# Needs Code --- Arrow moves left to right according to percent of Devastation
					#iconType = {
					#	name = "devastation_progress_arrow"
					#	spriteType = "GFX_devastation_arrow"
					#	position = { x = 24 y = 68}
					#	scale = 1
					#}

					instantTextBoxType = {
						name = "title_text"
						font = "malgun_goth_24"
						position = { x = 75 y = 18 }
						text = "DEVASTATION"
						maxWidth = 210
						maxHeight = 20
						fixedSize = yes
						format = left
						orientation = upper_left

					}

					# Needs Code ---- Should display proper version of icon.
					iconType = {
						name = "devastation_icon_armies"
						position = { x = 40 y = 19}
						spriteType = "GFX_planet_devastation"
						alwaysTransparent = yes
						scale = 0.9
					}

				}

				# Devastation Icon
				iconType = {
					name = "planet_devastation"
					spriteType = "GFX_devastation_bar"
					position = { x = 373 y = 90 }
					frame = 1
				}


				#Armies Art BG Box  ------ 5 px all around for art pading
				containerWindowType = {
					name = "Armies_BG"
					size = {width = 350 height = 430} # 390 + 40
					position = { x = 5 y = 50 }

					background = {
						name = "armies_bg_art"
						quadTextureSprite = "GFX_planet_bg_tile_frame"
					}
				}

				#Armies Title Text
				containerWindowType = {
					name = "title_armies"
					size = { width = 350 height = 220 }
					position = { x = 0 y = 30 }

					#iconType = {
					#	name = "title_hex"
					#	quadTextureSprite = "GFX_hex_bg"
					#	position = { x = -11 y = 14 }
					#}

					iconType = {
						name = "title_line"
						quadTextureSprite = "GFX_line_short"
						position = { x = 14 y = 50 }
					}

					instantTextBoxType = {
						name = "title_text"
						font = "malgun_goth_24"
						position = { x = 21 y = 32 }
						text = "ARMIES"
						maxWidth = 168
						maxHeight = 20
						fixedSize = yes
						format = left
						orientation = upper_left
					}
				}

				#Armies Buttons
				buttonType = {
					name = "recruit_button"
					position = { x = 212 y = 49 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "RECRUIT"
					pdx_tooltip = "RECRUIT_INFO"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
					shortcut = "B"
				}

				buttonType = {
					name = "embark_all_button"
					position = { x = 212 y = 88 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "PLANET_VIEW_EMBARK_ALL"
					pdx_tooltip = "PLANET_VIEW_EMBARK_INFO"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
				}

				#Broken
				#Armies Strength Garrison & Assault
				instantTextBoxType = {
					name = "garrison_header"
					font = "cg_16b"
					text = "PLANET_VIEW_GARRISON"
					position = { x = 20 y = 100 }
					maxWidth = 110
					maxHeight = 40
					fixedSize = yes
					format = left
					orientation = upper_left
					#alwaysTransparent = yes
					pdx_tooltip = "GARRISON_ARMY"
				}
				instantTextBoxType = {
					name = "garrison_power"
					font = "cg_16b"
					text = "15"
					position = { x = 20 y = 120 }
					maxWidth = 110
					maxHeight = 40
					fixedSize = yes
					format = left
					orientation = upper_left
					#alwaysTransparent = yes
					pdx_tooltip = "GARRISON_ARMY"
				}
				instantTextBoxType = {
					name = "garrison_assault_header"
					font = "cg_16b"
					text = "PLANET_VIEW_ASSAULT"
					position = { x = 127 y = 100 }
					maxWidth = 110
					maxHeight = 40
					fixedSize = yes
					format = left
					orientation = upper_left
					#alwaysTransparent = yes
					pdx_tooltip = "ASSAULT_ARMY"
				}

				instantTextBoxType = {
					name = "garrison_assault_power"
					font = "cg_16b"
					text = "15"
					position = { x = 127 y = 120 }
					maxWidth = 110
					maxHeight = 40
					fixedSize = yes
					format = left
					orientation = upper_left
					#alwaysTransparent = yes
					pdx_tooltip = "ASSAULT_ARMY"
				}

				instantTextBoxType = {
					name = "deploy_in_orbit_text"
					font = "cg_16b"
					text = "DEPLOY_IN_ORBIT"
					position = { x = 10 y = 140 }
					maxWidth = 300
					maxHeight = 40
					format = right
					orientation = upper_left
					pdx_tooltip = "DEPLOY_IN_ORBIT_DESC"
				}

				checkboxType = {
					name = "deploy_in_orbit_checkbox"
					quadTextureSprite = "GFX_checkbox_20_20_01"
					position = { x = 315 y = 133 }
					pdx_tooltip = "DEPLOY_IN_ORBIT_DESC"
				}

				instantTextBoxType = {
					name = "include_in_army_builder_text"
					font = "cg_16b"
					text = "ARMY_BUILDER_CHECKBOX"
					position = { x = 10 y = 168 }
					maxWidth = 300
					maxHeight = 40
					format = right
					orientation = upper_left
					pdx_tooltip = "INCLUDE_IN_SECTOR_BUILDER_DESC"
				}

				checkboxType = {
					name = "army_builder_checkbox"
					quadTextureSprite = "GFX_checkbox_20_20_01"
					position = { x = 315 y = 162 }
					pdx_tooltip = "INCLUDE_IN_SECTOR_BUILDER_DESC"
				}

				#Armies List
				containerWindowType = {
					name = "planet_armies"
					size = { width = 320 height = 275 } # 235 + 40
					position = { x = 20 y = 193 }

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

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

					smoothListBoxType = {
						name = "armies_list"
						position = { x = 4 y = 5 }
						size = { x = 312.5 y = 265 } # 225 + 40
						spacing = 4
						scrollbartype = "standardlistbox_slider"
						autohide_scrollbar = yes
					}
				}

				# General
				containerWindowType = {
					name = "title_general"
					size = { width = 180 height = 180 }
					position = { x = 564 y = 30 }


					iconType = {
						name = "title_hex"
						quadTextureSprite = "GFX_hex_bg"
						position = { x = -13 y = 10 }
					}

					iconType = {
						name = "title_line"
						quadTextureSprite = "GFX_line_short"
						position = { x = 0 y = 45 }
					}

					instantTextBoxType = {
						name = "title_text"
						font = "malgun_goth_24"
						position = { x = 05 y = 28 }
						text = "GENERAL_TITLE"
						maxWidth = 168
						maxHeight = 20
						fixedSize = yes
						format = left
						orientation = upper_left
					}
				}

				containerWindowType = {
					name = "general_portrait_container"
					position = { x = 569 y = 92 }
					size = { width = 270 height = 100 }

					background = {
						name = "leader_background"
						spriteType = "GFX_dark_area"
						alwaysTransparent = yes
					}
				}

				# Army Build Queue
				containerWindowType = {
					name = "army_build_queue"
					size = { width = 270 height = 269 } # 229 + 40
					position = { x = 569 y = 200 }

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

					instantTextBoxType = {
						name = "no_constructions"
						font = "malgun_goth_24"
						text = "QUEUE"
						position = { x = 0 y = 10 }
						maxWidth = 270
						maxHeight = 20
						fixedSize = yes
						format = center
						orientation = upper_left
						alwaysTransparent = yes
					}

					smoothListBoxType = {
						name = "build_queue"
						position = { x = 3 y = 4 }
						orientation = upper_left
						size = { x = 263 y = 260 } # 220 + 40
						borderSize = { x = 0 y = 0 }
						scrollbartype = "standardlistbox_slider"
					}
				}

				# Orbiting Army
				containerWindowType = {
					name = "orbiting_armies"
					size = { width = 200 height = 330 } # 290 + 40
					position = { x = 360 y = 140 }

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

					instantTextBoxType = {
						name = "orbiting_title"
						font = "malgun_goth_24"
						text = "ORBITING_ARMIES"
						position = { x = 0 y = 10 }
						maxWidth = 200
						maxHeight = 20
						fixedSize = yes
						format = center
						orientation = upper_left
						alwaysTransparent = yes
					}

					iconType = {
						name = "orbiting_icon"
						spriteType = "GFX_tr_unyielding_bulwark_of_harmony"
						position = { x = 15 y = 70 }
					}

					instantTextBoxType = {
						name = "orbiting_army_name"
						font = "cg_16b"
						text = "2nd Invasion Army"
						position = { x = 70 y = 73 }
						maxWidth = 300
						maxHeight = 20
						fixedSize = yes
						format = left
						orientation = upper_left
						alwaysTransparent = yes
					}

					instantTextBoxType = {
						name = "orbiting_power"
						font = "cg_16b"
						text = "Strength: ico 159"
						position = { x = 70 y = 93 }
						maxWidth = 300
						maxHeight = 20
						fixedSize = yes
						format = left
						orientation = upper_left
						alwaysTransparent = yes
					}

					buttonType = {
						name = "land_armies"
						position = { x = 30 y = 200 }
						spriteType = "GFX_standard_button_116_34"
						buttonFont = "cg_16b"
						text = "FLEETORDER_LAND_ARMIES_TITLE"
						font = "cg_16b"
						orientation = UPPER_LEFT
						oversound = mouse_over
					}
				}
			}
		}

		# Holdings tab / Corporate tab
		containerWindowType = {
			name = "corporate_window"
			size = { width = 500 height = 440 } # 400 + 40
			position = { x = -10 y = 195 }

			containerWindowType = {
				name = "holdings_container"
				size = { width = 553 height = 380 }
				position = { x = 20 y = 60 }
				verticalScrollbar = "right_vertical_slider_s"

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

				smoothListBoxType = {
					name = "holding_type_box"
					orientation = upper_left
					spacing = 2
					size = { x = 540 y = 370 }
					scrollbartype = "standardlistbox_slider"
				}
			}

			containerWindowType = {
				name = "holdings_planet_owner_resources"
				size = { width = 270 height = 170 }
				position = { x = 580 y = 60 }

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

				buttonType = {
					name = "country_flag"
					quadTextureSprite = "GFX_empire_flag_48"
					position = { x = 5 y = 10  }
				}

				instantTextBoxType = {
					name = "holdings_planet_owner_production_output_title"
					font = "cg_16b"
					text = "PRODUCTION"
					position = { x = 66 y = 8 }
					maxWidth = 80
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "holdings_planet_owner_production_output_amount"
					font = "cg_16b"
					position = { x = 66  y = 36 }
					text = "10"
					maxWidth = 80
					maxHeight = 60
					fixedSize = yes
					format = left
				}

				instantTextBoxType = {
					name = "holdings_planet_owner_consumption_output_title"
					font = "cg_16b"
					text = "DEFICIT"
					position = { x = 156 y = 8 }
					maxWidth = 86
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "holdings_planet_owner_consumption_output_amount"
					font = "cg_16b"
					position = { x = 156 y = 36 }
					text = "10"
					maxWidth = 86
					maxHeight = 60
					fixedSize = yes
					format = left
				}
			}

			containerWindowType = {
				name = "holdings_build_queue"
				size = { width = 270 height = 240 } # 200 + 40
				position = { x = 580 y = 240 }

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

				instantTextBoxType = {
					name = "no_constructions"
					font = "malgun_goth_24"
					text = "QUEUE"
					position = { x = 0 y = 6 }
					maxWidth = 270
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				smoothListBoxType = {
					name = "build_queue"
					position = { x = 3 y = 4 }
					orientation = upper_left
					size = { x = 263 y = 229 } # 189 + 40
					borderSize = { x = 0 y = 0 }
					scrollbartype = "standardlistbox_slider"
				}
			}
		}

		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 }
			oversound = no_sound
		}

		# Planet Tab
		buttonType = {
			name = "summary_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"
			oversound = no_sound
			pdx_tooltip = "PLANET_SUMMARY_BUTTON"
		}

		buttonType = {
			name = "summary_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"
			oversound = no_sound
			pdx_tooltip = "PLANET_SUMMARY_BUTTON"
		}

		# Management Tab
		buttonType = {
			name = "management_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 109 y = @tab_height }
			orientation = lower_left
			buttonText = "MANAGEMENT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "x"
			oversound = no_sound
			pdx_tooltip = "MANAGEMENT_BUTTON"
		}

		buttonType = {
			name = "management_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 109 y = @tab_height }
			orientation = lower_left
			buttonText = "MANAGEMENT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "x"
			oversound = no_sound
			pdx_tooltip = "MANAGEMENT_BUTTON"
		}

		# Population Tab
		buttonType = {
			name = "population_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 245 y = @tab_height }
			orientation = lower_left
			buttonText = "POPULATION_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "c"
			oversound = no_sound
			pdx_tooltip = "POPULATION_BUTTON"
		}

		buttonType = {
			name = "population_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 245 y = @tab_height }
			orientation = lower_left
			buttonText = "POPULATION_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "c"
			oversound = no_sound
			pdx_tooltip = "POPULATION_BUTTON"
		}

		# Ground Combat Tab
		buttonType = {
			name = "armies_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 381 y = @tab_height }
			orientation = lower_left
			buttonText = "GROUND_COMBAT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "v"
			oversound = no_sound
			pdx_tooltip = "ARMIES_BUTTON"
		}

		buttonType = {
			name = "armies_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 381 y = @tab_height }
			orientation = lower_left
			buttonText = "GROUND_COMBAT_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "v"
			oversound = no_sound
			pdx_tooltip = "ARMIES_BUTTON"
		}

		# Corporate Tab
		buttonType = {
			name = "corporate_tab"
			quadTextureSprite = "GFX_tab_2_inactive"
			position = { x= 517 y = @tab_height }
			orientation = lower_left
			buttonText = "CORPORATE_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "b"
			oversound = no_sound
			pdx_tooltip = "CORPORATE_BUTTON"
		}

		buttonType = {
			name = "corporate_tab_active"
			quadTextureSprite = "GFX_tab_2_active"
			position = { x= 517 y = @tab_height }
			orientation = lower_left
			buttonText = "CORPORATE_TAB"
			buttonFont = "cg_16b"
			clicksound = "tab_click"
			shortcut = "b"
			oversound = no_sound
			pdx_tooltip = "CORPORATE_BUTTON"
		}

		containerWindowType = {
			name = "side_bar_window"
			size = { width = 312 height = 671 } # 631 + 40

			origo = center
			orientation = center
			show_position = { x = 584 y = -15 }
			hide_position = { x = 596 y = -16 }
			animation_time = 0
			animation_type = decelerated

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

			# Close Button
			buttonType = {
				name = "close"
				quadTextureSprite = "GFX_close"
				position = { x = -40 y = 2 }
				orientation = upper_right
				pdx_tooltip = "CLOSE_TITLE"
				shortcut = "ESCAPE"
				clicksound = "back_click"
			}

			# Building category tabs
			gridBoxType = {
				name = "category_tabs"
				position = { x = -103  y = 40 }
				size = { width = 280 height = 52 }
				slotsize = { width = 52 height = 18 }
				max_slots_horizontal = 5
				max_slots_vertical = 2
				add_horizontal = yes
			}

			containerWindowType = {
				name = "building_details_window"
				position = { x= 0 y= 0 }
				size = { width = 291 height = 583 }

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "BUILDING_DETAILS_TITLE"
					position = { x = 42 y = 12 }
					maxWidth = 216
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				buttonType = {
					name = "replace_building"
					position = { x = 4 y = 85 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "REPLACE"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
					shortcut = "P"
				}

				buttonType = {
					name = "destroy_building"
					position = { x = 156 y = 40 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "DESTROY"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = "mouse_over"
					navLeft = "change"
					shortcut = "del"
				}

				buttonType = {
					name = "enable_disable_building"
					position = { x = 4 y = 40 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "DISABLE"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
				}

				buttonType = {
					name = "repair_building"
					position = { x = 156 y = 85 }
					spriteType = "GFX_standard_button_116_34"
					buttonFont = "cg_16b"
					text = "REPAIR"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
				}

				containerWindowType = {
					name = "building_info"
					size = { width = 270 height = 124 }
					position = { x = 15 y = 142 }

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

					containerWindowType = {
						name = "entry_bg_gradient"
						size = { width = 268 height = 99 }
						position = { x = 1 y = 24 }

						background = {
							name = "background"
							spriteType = "GFX_diplomacy_textbox_positive"
							alwaysTransparent = yes
							alpha = 0.3
						}
					}

					containerWindowType = {
						name = "building_icon"
						size = { width = 78 height = 78	}
						position = { x = 0 y = 18 }
						clipping = yes

						iconType = {
							name = "building_bg"
							position = { x = 1 y = 4 }
							spriteType = "GFX_building_bg"
							alwaysTransparent = yes
							scale = 0.87
						}

						iconType = {
							name = "building_icon"
							position = { x = -25 y = 0 }
							spriteType = "GFX_building_unknown"
							alwaysTransparent = yes
						}

						iconType = {
							name = "ruined_building_icon"
							position = { x = -25 y = -5 }
							spriteType = "GFX_building_ruined"
							alwaysTransparent = yes
						}
					}

					containerWindowType = {
						name = "building_frame"
						size = { width = 78 height = 76 }
						position = { x = 0 y = 21 }

						background = {
							name = "building_frame"
							spriteType = "GFX_tiles_frame_extra_light"
						}
					}


					containerWindowType = {
						name = "building_name"
						size = { width = 270 height = 22 }
						position = { x = 0 y = 0 }

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

						instantTextBoxType = {
							name = "building_name"
							font = "cg_16b"
							text = "Building Name"
							position = { x = 6 y = 3 }
							maxWidth = 259
							maxHeight = 20
							fixedSize = yes
							format = left
							alwaysTransparent = yes
						}
					}

					instantTextBoxType = {
						name = "building_effects"
						font = "cg_16b"
						text = "Building effects go here"
						position = { x = 85 y = 25 }
						maxWidth = 160
						maxHeight = 90
						fixedSize = yes
						format = left
						alwaysTransparent = yes
					}
				}

				containerWindowType = {
					name = "upgrades"
					size = { width = 291 height = 370 } # 330 + 40
					position = { x = 0 y = 266 }

					instantTextBoxType = {
						name = "upgrades_to_header"
						font = "malgun_goth_24"
						text = "UPGRADES_TO"
						position = { x = 0 y = 0 }
						maxWidth = 291
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = CENTER
					}

					smoothListboxType = {
						name = "upgrades_list"
						position = { x = 15 y = 30 }
						background = ""
						size = { x = 270 y = 370 } # 330 + 40
						scrollbarType = "standardlistbox_slider"
						borderSize = { x = 0 y = 0 }
						orientation = "UPPER_LEFT"
						spacing = 4
					}
				}
			}

			containerWindowType = {
				name = "district_details_window"
				position = { x= 0 y= 0 }
				size = { width = 291 height = 623 } # 583 + 40

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "DISTRICT_DETAILS_TITLE"
					position = { x = 49 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				containerWindowType = {
					name = "district_info"
					size = { width = 272 height = 101 }
					position = { x = 16 y = 42 }

					background = {
						name = "background"
						spriteType = "GFX_tiles_frame"
						position = { x = -1 y = 0 }
					}

					containerWindowType = {
						name = "entry_bg_gradient"
						size = { width = 272 height = 78 }
						position = { x = 0 y = 22 }

						background = {
							name = "background"
							spriteType = "GFX_diplomacy_textbox_positive"
							alwaysTransparent = yes
							alpha = 0.3
						}
					}
					containerWindowType = {
						name = "district_icon"
						size = { width = 78 height = 79	}
						position = { x = 0 y = 21 }

						iconType = {
							name = "district_icon"
							position = { x = 1  y = 1 }
							spriteType = "GFX_district_unknown"
							alwaysTransparent = yes
						}

					}
					containerWindowType = {
						name = "district_name"
						size = { width = 270 height = 22 }
						position = { x = 0 y = 0 }

						background = {
							name = "background"
							spriteType = "GFX_tiles_frame"
							alwaysTransparent = yes
						}

						instantTextBoxType = {
							name = "district_name"
							font = "cg_16b"
							text = "District Name"
							position = { x = 6 y = 3 }
							maxWidth = 250
							maxHeight = 20
							fixedSize = yes
							format = left
							alwaysTransparent = yes
						}
					}

					instantTextBoxType = {
						name = "district_effects"
						font = "cg_16b"
						text = "District effects go here"
						position = { x = 84 y = 25 }
						maxWidth = 190
						maxHeight = 80
						fixedSize = yes
						format = left
						alwaysTransparent = yes
					}
				}

				buttonType = {
					name = "build_district"
					position = { x = 3 y = 140 }
					spriteType = "GFX_button_116_24"
					buttonFont = "cg_16b"
					text = "BUILD"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
					clicksound = "ui_queuing_district"
					shortcut = "b"
				}

				buttonType = {
					name = "destroy_district"
					position = { x = 159 y = 140 }
					spriteType = "GFX_button_116_24"
					buttonFont = "cg_16b"
					text = "DOWNGRADE"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
					shortcut = "del"
				}

				buttonType = {
					name = "replace_district"
					position = { x = 3 y = 173 }
					spriteType = "GFX_button_116_24"
					buttonFont = "cg_16b"
					text = "REPLACE"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
					shortcut = "P"
				}

				buttonType = {
					name = "quick_clear_blocker"
					position = { x = 159 y = 173 }
					spriteType = "GFX_button_116_24"
					buttonFont = "cg_16b"
					text = "CLEAR_BLOCKER"
					font = "cg_16b"
					orientation = UPPER_LEFT
					oversound = mouse_over
					navLeft = "change"
					clicksound = "ui_demolish_building_district"
				}

				smoothListboxType = {
					name = "zones_list"
					position = { x = 10 y = 226 }
					background = ""
					size = { x = 282 y = 471 } # 431 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}
			}

			containerWindowType = {
				name = "pop_details_window"
				position = { x= 0 y= 0 }
				size = { width = 295 height = 623 } # 583 + 40

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "POP_GROUP_DETAILS_TITLE"
					position = { x = 30 y = 12 }
					maxWidth = 230
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				containerWindowType = {
					name = "pop_species_info"
					position = { x = 8 y = 40 }
					size = { width = 294 height = 350 } # 330 + 20

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

					instantTextBoxType = {
						name = "species"
						font = "malgun_goth_24"
						text = "Species: Hooman"
						position = { x = 105 y = 0 }
						maxWidth = 160
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "habitability"
						font = "cg_16b"
						text = "Habitability: 12%"
						position = { x = 105 y = 25 }
						maxWidth = 160
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					OverlappingElementsBoxType = {
						name = "traits"
						position = { x = 103 y = 45 }
						size = { x = 152 y = 16 }
						format = left
					}

					OverlappingElementsBoxType = {
						name = "ethics"
						position = { x = 103 y = 80 }
						size = { x = 152 y = 16 }
						format = left
					}

					containerWindowType = {
						name = "leader_frame_box"
						position = { x = 6 y = 6 }
						size = { width = 93 height = 107 }

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

					containerWindowType = {
						name = "portrait"
						position = { x = 12 y = 12 }
						size = { width = 85 height = 96 }
						clipping = yes

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

						buttonType = {
							name = "portrait"
							spriteType = "GFX_portrait_character"
							position = { x = -60 y = -25 }
							scale = 0.33
							alwaysTransparent = yes
						}

						instantTextBoxType = {
							name = "pop_count"
							font = "malgun_goth_24"
							text = "9999"
							position = { x = 0 y = 64 }
							maxWidth = 68
							maxHeight = 20
							fixedSize = yes
							orientation = "UPPER_LEFT"
							format = right
						}
					}
					buttonType = {
						name = "view_species_button"
						position = { x = -3 y = 105 }
						spriteType = "GFX_standard_button_116_34"
						buttonFont = "cg_16b"
						text = "VIEW_SPECIES"
						font = "cg_16b"
						orientation = UPPER_LEFT
						oversound = mouse_over
						navLeft = "change"
						shortcut = "K"
					}

					buttonType = {
						name = "species_rights_or_policy_button"
						position = { x = 136 y = 105 }
						spriteType = "GFX_standard_button_116_34"
						buttonFont = "cg_16b"
						font = "cg_16b"
						orientation = UPPER_LEFT
						oversound = mouse_over
						navLeft = "change"
						shortcut = "T"
					}

					instantTextBoxType = {
						name = "species_rights"
						font = "cg_16b"
						text = "species rights go here"
						position = { x = 5 y = 162 }
						maxWidth = 278
						maxHeight = 190 # 170 + 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}
				}

				containerWindowType = {
					name = "pop_job_info"
					position = { x = 8 y = 496 } # 376 + 20
					size = { width = 294 height = 268 } # 248 + 20

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

					instantTextBoxType = {
						name = "job_type"
						font = "cg_16b"
						text = "Job: Ice Cream Truck Driver"
						position = { x = 5 y = 0 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "pop_category"
						font = "cg_16b"
						text = "Strata: Prole"
						position = { x = 5 y = 18 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "pop_faction"
						font = "cg_16b"
						text = "Faction: Peaceful Progress Network"
						position = { x = 5 y = 36 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "happiness"
						font = "cg_16b"
						text = "Happiness: 50%"
						position = { x = 5 y = 54 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "political_power"
						font = "cg_16b"
						text = "Political Power: 0.5"
						position = { x = 5 y = 71 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "crime"
						font = "cg_16b"
						text = "Crime: 1.7"
						position = { x = 5 y = 89 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "empire_sprawl"
						font = "cg_16b"
						text = "Empire Sprawl: 1"
						position = { x = 5 y = 107 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "housing_needs"
						font = "cg_16b"
						text = "Housing Needs: 2"
						position = { x = 5 y = 125 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "amenities_usage"
						font = "cg_16b"
						text = "Amenities Usage: 2"
						position = { x = 5 y = 143 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "production"
						font = "cg_16b"
						text = "12 minerals"
						position = { x = 5 y = 161 }
						maxWidth = 260
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
						truncate = yes
					}

					instantTextBoxType = {
						name = "upkeep"
						font = "cg_16b"
						text = "5 energy"
						position = { x = 5 y = 179 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "overlord_production"
						font = "cg_16b"
						text = "12 minerals"
						position = { x = 5 y = 198 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}

					instantTextBoxType = {
						name = "overlord_upkeep"
						font = "cg_16b"
						text = "5 energy"
						position = { x = 5 y = 215 }
						maxWidth = 282
						maxHeight = 20
						fixedSize = yes
						orientation = "UPPER_LEFT"
						format = left
					}
				}
			}

			containerWindowType = {
				name = "terraform_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "TERRAFORM_TITLE"
					position = { x = 45 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}



				# Terraform Links
				smoothListboxType = {
					name = "terraform_list"
					position = { x = 15 y = 60 }
					background = ""
					size = { x = 270 y = 598 } # 558 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}

				containerWindowType = {
					name = "terraforming_ongoing_window"
					position = { x = 20 y = 50 }
					moveable = no
					size = { width = 270 height = 98 }

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

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

					iconType = {
						name = "planet_class_from_icon"
						position = { x = 5 y = 25 }
						spriteType = "GFX_planet_type"
						frame = 1
						alwaysTransparent = yes
					}

					iconType = {
						name = "leads_to_arrows"
						spriteType = "GFX_leads_to_arrows"
						position = { x = 40 y = 32 }
						alwaysTransparent = yes
					}

					iconType = {
						name = "planet_class_to_icon"
						position = { x = 65 y = 25 }
						spriteType = "GFX_planet_type"
						frame = 1
						alwaysTransparent = yes
					}

					containerWindowType = {
						name = "planet_class_name"
						size = { width = 270 height = 22 }
						position = { x = 0 y = 0 }

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

						instantTextBoxType = {
							name = "planet_class_name"
							font = "cg_16b"
							text = "Continental World"
							position = { x = 0 y = 3 }
							maxWidth = 250
							maxHeight = 20
							fixedSize = yes
							format = center
							alwaysTransparent = yes
						}
					}

					instantTextBoxType={
						name = "terraforming_time"
						font = "cg_16b"
						text = "500 energy credits"
						position = { x = 5 y = 65 }
						maxWidth = 100
						maxHeight = 80
						fixedSize = yes
						format = center
						alwaysTransparent = yes
					}

					buttonType = {
						name = "abort"
						quadTextureSprite = "GFX_standard_button_116_34"
						position = { x = 125 y = 25 }
						Orientation = "UPPER_LEFT"
						buttonFont = "cg_16b"
						text = "CANCEL"
						font = "cg_16b"
						clicksound = "back_click"
					}
				}
			}

			containerWindowType = {
				name = "automation_settings_window"
				smoothListboxType = {
					name = "automation_settings_list"
					position = { x = 10 y = 40 }
					background = ""
					size = { x = 280 y = 630 } # 590 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}
			}

			containerWindowType = {
				name = "decisions_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "DECISIONS_TITLE"
					position = { x = 45 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}


				# Decisions
				smoothListboxType = {
					name = "decisions_list"
					position = { x = 5 y = 60 }
					background = ""
					size = { x = 285 y = 600 } # 560 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}

				containerWindowType = {
					 name = "decision_scroll_horizontal_fade"
					 size = { width = 280 height = 32 }
					 position = { x = 4 y = 630 } # 590 + 40

				 	background = {
						name = "decision_horizontal_fade"
						spriteType = "GFX_horizontal_fade"
						alwaysTransparent = yes
					}
				}
			}

			containerWindowType ={
				name = "job_summary_window"
				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "DECISIONS_TITLE"
					position = { x = 45 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}
				smoothListboxType = {
					name = "pops_list"
					position = { x = 5 y = 60 }
					size = { x = 295 y = 600 } # 560 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}
			}

			# Colony Designations Selection Window --------------
			containerWindowType = {
				name = "designation_selection_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "DESIGNATIONS_TITLE"
					position = { x = 45 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				# Decisions
				smoothListboxType = {
					name = "designations_list"
					position = { x = 5 y = 60 }
					background = ""
					size = { x = 280 y = 600 } # 560 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}

				containerWindowType = {
					 name = "designation_scroll_horizontal_fade"
					 size = { width = 280 height = 32}
					 position = { x = 4 y = 630} # 590 + 40

				 	background = {
						name = "designation_horizontal_fade"
						spriteType = "GFX_horizontal_fade"
						alwaysTransparent = yes
					}
				}
			}


			containerWindowType = {
				name = "construction_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "CONSTRUCTION_TITLE"
					position = { x = 40 y = 12 }
					maxWidth = 220
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				# Buildings
				smoothListboxType = {
					name = "constructions_list"
					position = { x = 15 y = 75 }
					background = ""
					size = { x = 270 y = 580 } # 540 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}
			}

			containerWindowType = {
				name = "district_construction_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "DISTRICT_CONSTRUCTION_TITLE"
					position = { x = 45 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				# Districts
				smoothListboxType = {
					name = "district_constructions_list"
					position = { x = 15 y = 60 }
					background = ""
					size = { x = 272 y = 540 } # 500 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}
			}

			containerWindowType = {
				name = "zone_construction_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "zone_construction_title"
					position = { x = 45 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				# Zones
				smoothListboxType = {
					name = "zone_constructions_list"
					position = { x = 15 y = 60 }
					background = ""
					size = { x = 272 y = 600 } # 560 + 40
					scrollbarType = "standardlistbox_slider"
					borderSize = { x = 0 y = 0 }
					orientation = "UPPER_LEFT"
					spacing = 4
				}
			}

			containerWindowType = {
				name = "recruitment_window"

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "RECRUITMENT"
					position = { x = 45 y = 10 }
					maxWidth = 195
					maxHeight = 30
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				# Armies
				smoothListboxType = {
					name = "recruitment_list"
					position = { x = 10 y = 50 }
					background = "GFX_tiles_dark_area_cut_8"
					size = { x = 287 y = 610 } # 570 + 40
					scrollbarType = "standardlistbox_slider"
					spacing = 6
				}
			}

			#<--------------------- Build Queue --------------------------->

			containerWindowType = {
				name = "build_queue_window"
				size = { width = 270 height = 210 }
				position = { x = 0 y = 0 }

				instantTextBoxType = {
					name = "header"
					font = "malgun_goth_24"
					text = "QUEUE"
					position = { x = 49 y = 12 }
					maxWidth = 195
					maxHeight = 20
					fixedSize = yes
					orientation = "UPPER_LEFT"
					text_color_code = "E"
					format = CENTER
				}

				containerWindowType = {
					name = "build_queue_subwindow"
					size = { width = 300 height = 620 } # 580 + 40
					position = { x = 5 y = 45 }

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

					smoothListBoxType = {
						name = "build_queue"
						position = { x = 3 y = 4 }
						orientation = upper_left
						size = { x = 300 y = 620 } # 580 + 40
						borderSize = { x = 0 y = 0 }
						scrollbartype = "standardlistbox_slider"
					}
				}
			}
		}
	}

	# Special Resources Icon
	containerWindowType = {
		name = "rare_deposits_grid_box_entry"
		size = { width = 20 height = 20 }
		position = { x = 0 y = 0 }

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

	containerWindowType = {
		name = "planet_view_workforce_entry" # Used by workforce_box
		size = { width = 24 height = 24 }
		position = { x = 0 y = 0 }

		buttonType = {
			name = "button"
			spriteType = "GFX_workforce_box_district_icon"
			position = {x = 1 y = -1}
			scale = 1
			orientation = "CENTER"
		}
	}

	# District Cubes
	containerWindowType = {
		name = "planet_district_grid_box_entry"
		size = { width = 10 height = 10 }
		position = { x = 0 y = 0 }

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

	# District Rectangles
	containerWindowType = {
		name = "rectangle_district_grid_box_entry"
		size = { width = 20 height = 8 }
		position = { x = 0 y = 0 }

		background = {
			name = "rectangle"
			spriteType = "GFX_district_box_icon_rectangle"
			alwaysTransparent = yes
		}
	}

	# Available District Cubes
	containerWindowType = {
		name = "available_planet_district_grid_box_entry"
		size = { width = 8 height = 8 }
		position = { x = 22 y = 0 }

		iconType = {
			name = "icon"
			spriteType = "GFX_district_box_icon_small"
			position = {x = 0 y = 0 }
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_district_entry"
		position = { x = -6 y = 0 }
		size = { width = 279 height = 165 }
		#moveable = no

		background = {
			position = { x = 0 y = 0 }
			name = "districts_window_background"
			spriteType = "GFX_dark_area"
			alwaysTransparent = yes
		}

		buttonType ={
			name = "selection_highlight"
			spriteType = "GFX_glow_tile_orange_no_padding"
			position = { x = 0 y = 0 }
			size = { x = 279 y = 165 }
			alwaystransparent = yes
		}

		buttonType = {
			name = "district_button"
			position = { x = 0 y = 0 }
			size = { x= 279 y = 165 }
			quadTextureSprite = "GFX_district_hover"
			clicksound = "menu_slide_open"
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "District Name"
			position = { x = 5 y = 5 }
			maxWidth = 220
			maxHeight = 16
			fixedSize = yes
			truncate = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "triggered_name"
			font = "cg_16b"
			text_color_code = "Y"
			text = "Triggered Name"
			position = { x = 5 y = 20 }
			maxWidth = 220
			maxHeight = 16
			fixedSize = yes
			truncate = yes
			format = left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "build_district"
			position = { x = -93 y = -5 }
			spriteType = "GFX_button_animated_75_24"
			buttonFont = "cg_16b"
			text = "BUILD_DISTRICT_BUTTON"
			font = "cg_16b"
			orientation = UPPER_RIGHT
			oversound = mouse_over
			pdx_tooltip = "BUILD_DISTRICT"
			clicksound = "ui_queuing_district"
		}

		buttonType = {
			name = "district_icon_frame"
			quadTextureSprite = "GFX_tiles_frame_extra_light"
			position = { x = 5 y = 42 }
			size = { x = 79 y = 79 }
		}

		iconType = {
			name = "district_icon"
			spriteType = "GFX_district_unknown"
			position = { x= 6 y=43 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_district_progressbar"
			position = { x = 6 y = 112 }
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "not_surveyed"
			font = "malgun_goth_24"
			text = "UNKNOWN_SHORT"
			position = { x = 39 y = 120 }
			maxWidth = 20
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		containerWindowType = {
			name = "district_box"
			size = { width = 62 height = 82 }
			position = { x = 56 y = 112 }

			gridBoxType = {
				name = "district_box_grid"
				size = { width = 64 height = 45 }
				position = { x = 0 y = 20 }
				format = "UPPER_LEFT"
				slotsize = { width = 22 height = 10 }
				max_slots_horizontal = 10
				max_slots_vertical = 3
				add_horizontal = yes
			}
		}

		# Passed 30 Cubes, Number Box is shown. Replaces the bottom 6 cubes.
		containerWindowType = {
			name = "planet_district_cap_container"
			size = { width = 44 height = 28 }
			position = { x = 2 y = 138 }

			iconType = {
				name = "cap_background"
				spriteType = "GFX_district_any_big"
				position = {x = 3 y = -6 }
			}

			instantTextBoxType = {
				name = "num_districts_text"
				font = "cg_16b"
				position = { x = -1 y = 0 }
				text = "10"
				maxWidth = 52
				maxHeight = 20
				fixedSize = yes
				format = center
			}
		}

		#Zone
		containerWindowType = {
			name = "zone"
			size = { width = 198 height = 79 }
			position = { x = 70 y = 41 }



			buttonType = {
				name = "zone_info_button"
				position = { x = 15 y = 2 }
				size = { x = 190 y = 78 }
				quadTextureSprite = "GFX_district_hover"
				clicksound = "menu_slide_open"
			}

			#Buildings
			gridBoxType = {
				name = "buildings_box"
				position = { x = 33 y = 16 } # 20 + 13 # 13 + 3
				size = { width = 205 height = 205 }
				format = "UPPER_LEFT"
				slotsize = { width = 52 height = 60 }
				add_horizontal = yes
				max_slots_horizontal = 6
				max_slots_vertical = 2
			}

			iconType = {
				name = "progressbar"
				spriteType = "GFX_zone_smaller_progressbar"
				position = { x = 33 y = 67 } # 20 + 13 # 64 + 3
				alwaysTransparent = yes
			}

			buttonType = {
				name = "selection_highlight"
				spriteType = "GFX_glow_tile_orange_no_padding"
				position = { x = 14 y = 2 }
				size = { x = 190 y = 78 }
				alwaystransparent = yes
			}

			buttonType = {
				name = "zone_button"
				position = { x = 32 y = 25 } # 29 + 3 # 22 + 3
				spriteType = "GFX_new_zone"
				clicksound = "menu_slide_open"
			}

			instantTextBoxType = {
				name = "zone_available"
				font = "cg_16b"
				position = { x = 56 y = 14 } # 53 + 3 # 10 + 4
				text = "zone_available"
				maxWidth = 142
				maxHeight = 55
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
				vertical_alignment = center
			}

			instantTextBoxType = {
				name = "zone_unavailable"
				font = "cg_16b"
				position = { x = 16 y = 7 } # 13 + 3 # 4 + 3
				text = ""
				maxWidth = 185
				maxHeight = 78
				fixedSize = yes
				format = center
				orientation = upper_left
				alwaysTransparent = yes
				vertical_alignment = center
			}

		}
	}

	#Zone
	containerWindowType = {
		name = "zone_entry"
		position = { x = 4 y = 0 }
		size = { width = 289 height = 50 }

		background = {
			name = "background"
			spriteType = "GFX_dark_area"
			alpha = 0.7
		}

		buttonType = {
			name = "zone_info_button"
			position = { x = 0 y = 0 }
			size = { x = 288 y = 50 }
			quadTextureSprite = "GFX_district_hover"
			clicksound = "menu_slide_open"
		}

		buttonType ={
			name = "selection_highlight"
			spriteType = "GFX_glow_tile_orange_no_padding"
			position = { x = 0 y = 0 }
			size = { x = 289 y = 50 } # 291
			alwaystransparent = yes
		}

		instantTextBoxType = {
			name = "zone_title"
			font = "cg_16b"
			position = { x = 30 y = 0 }
			text = "zone_early_industry"
			maxWidth = 100
			maxHeight = 50
			fixedSize = yes
			format = left
			vertical_alignment = center
			alwaysTransparent = yes
		}

		iconType = {
			name = "zone_icon"
			spriteType = "GFX_district_unknown"
			position = { x = 4 y = 13 }
			alwaysTransparent = yes
			scale = 0.8
		}

		#Buildings
		gridBoxType = {
			name = "buildings_box"
			position = { x = 134 y = 0 }
			size = { width = 156 height = 205 }
			format = "UPPER_LEFT"
			slotsize = { width = 52 height = 50 }
			add_horizontal = yes
			max_slots_horizontal = 6
			max_slots_vertical = 2
		}

		buttonType = {
			name = "zone_button"
			position = { x = 15 y = 8 }
			spriteType = "GFX_new_zone"
			clicksound = "menu_slide_open"
		}

		instantTextBoxType = {
			name = "zone_available"
			font = "cg_16b"
			position = { x = 42 y = -2 }
			text = "zone_available"
			maxWidth = 220
			maxHeight = 50
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = yes
			vertical_alignment = center
		}

		instantTextBoxType = {
			name = "zone_unavailable"
			font = "cg_16b"
			position = { x = 51 y = 7 }
			text = ""
			maxWidth = 220
			maxHeight = 50
			fixedSize = yes
			format = center
			orientation = upper_left
			alwaysTransparent = yes
			vertical_alignment = center
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_zone_progressbar"
			position = { x = 2 y = 42 }
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_demographics_entry"
		position = { x=0 y=82 }
		moveable = no
		size = { width = 230 height = 59 }

		background = {
			name = "background"
			spriteType = "GFX_button_light"
		}

		containerWindowType = {
			name = "portrait"
			size = { width = 55 height = 55 }
			position = { x = 2 y = 2 }
			clipping = yes

			background = {
				name = "pop_background"
				spriteType = "GFX_no_highlight_tile"
				position = { x = 0 y = 0 }
				oversound = "no_sound"
				alwaysTransparent = yes
			}

			iconType = {
				name = "portrait"
				quadTextureSprite = "GFX_portrait_character"
				position = { x = -20 y = -4 }
				scale = 0.15
				alwaysTransparent = yes
			}

			instantTextBoxType= {
				name = "amount"
				font = "cg_16b"
				text = "5"
				position = { x = 8 y = 34 }
				maxWidth = 40
				maxHeight = 20
				fixedSize = yes
				format = right
				text = "100"
				alwaysTransparent = yes
			}
		}
		instantTextBoxType = {
			name = "pop_group_name"
			font = "cg_16b"
			text = "Pop group 1"
			position = { x = 60 y = 22 }
			maxWidth = 120
			maxHeight = 35
			fixedSize = yes
			truncate = yes
			format = left
		}

		containerWindowType = {
			name = "pop_group_growth"
			size = { width = 52 height = 12 }
			position = { x = 175 y = 23 }

			iconType = {
				name = "pop_group_growth_icon"
				spriteType = "GFX_growth_neutral"
				position = { x = 10 y = 0 }
			}

			instantTextBoxType = {
				name = "pop_group_growth"
				font = "cg_16b"
				text = "+03"
				position = { x = 10 y = 0 }
				maxWidth = 40
				maxHeight = 18
				fixedSize = yes
				format = right
			}
		}
	}

	containerWindowType = {
		name = "planet_deposit_entry"
		position = { x=0 y=82 }
		moveable = no
		size = { width = 270 height = 90 }

		background = {
			name = "background"
			spriteType = "GFX_planet_construction_button"
		}

		containerWindowType = {
			name = "deposit_name"
			size = { width = 250 height = 22 }
			position = { x = 0 y = -2 }

			instantTextBoxType = {
				name = "deposit_name"
				font = "cg_16b"
				text = "Deposit Name"
				position = { x = 6 y = 4 }
				maxWidth = 250
				maxHeight = 20
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}
		}

		instantTextBoxType={
			name = "deposit_effects"
			font = "cg_16b"
			text = "Deposit effects go here"
			position = { x = 85 y = 25 }
			maxWidth = 170
			maxHeight = 80
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		iconType = {
			name = "deposit_icon"
			spriteType = "GFX_deposit_unknown"
			position = { x=4 y= 26 }
			alwaysTransparent = yes
			scale = 0.75
		}

		iconType = {
			name = "blocker_frame"
			spriteType = "GFX_planet_background_frame_blocker"
			position = { x=4 y= 26 }
			alwaysTransparent = yes
			scale = 0.77
		}

		iconType = {
			name = "rare_deposit_frame"
			spriteType = "GFX_planet_background_frame_rare"
			position = { x=4 y= 26 }
			alwaysTransparent = yes
			scale = 0.76
		}

		instantTextBoxType={
			name = "clear_blocker_cost"
			font = "cg_16b"
			text = "cost cost"
			position = { x = 60 y = 68 }
			maxWidth = 170
			maxHeight = 20
			fixedSize = yes
			format = right
			alwaysTransparent = yes
		}

		iconType = {
			name = "clear_blocker_deposit_icon"
			spriteType = "GFX_deposit_unknown"
			position = { x=85 y=46 }
			scale = 0.5
		}

		buttonType = {
			name = "clear_blocker_button"
			spriteType = "GFX_clear_blocker_button"
			position = { x=233 y=53 }
			scale = 0.65
			clicksound = ui_demolish_building_district
			oversound = mouse_over
		}

		buttonType = {
			name = "background"
			quadTextureSprite = "GFX_list_hover"
			position = { x = -4 y = -4 }
			#size = { width = 258 height = 64 }
			clicksound = "click_outliner"
			oversound = no_sound
		}
	}

	containerWindowType = {
		name = "planet_decision_entry"
		position = { x = 0 y = 82 }
		moveable = no
		size = { width = 286 height = 166 }

		background = {
			name = "background"
			spriteType = "GFX_tiles_frame"
			clicksound = "confirm_click"
			oversound = "mouse_over"
		}

		containerWindowType = {
			name = "entry_bg_gradient"
			size = { width = 283 height = 153 }
			position = { x = 1 y = 23 }

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

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

		containerWindowType = {
			name = "decision_name"
			size = { width = 286 height = 22 }
			position = { x = 0 y = 0 }

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

			instantTextBoxType = {
				name = "decision_name"
				font = "cg_16b"
				text = "Decision Name"
				text_color_code = "H"
				position = { x = 6 y = 1 }
				maxWidth = 284
				maxHeight = 20
				fixedSize = yes
				format = left
				vertical_alignment = center
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "decision_effects"
			size = { width = 224 height = 140 }
			position = { x = 56 y = 21 }

			instantTextBoxType={
				name = "decision_effects"
				font = "cg_16b"
				text = "Decision effects go here"
				position = { x = 5 y = 5 }
				maxWidth = 220
				maxHeight = 150
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}
		}
		containerWindowType = {
			name = "decision_icon_and_cost_bg"
			size = { width = 57 height = 145 }
			position = { x = 0 y = 21 }

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

		iconType = {
			name = "decision_icon"
			spriteType = "GFX_decision_unknown"
			position = { x=6 y= 27 }
			alwaysTransparent = yes
		}
		instantTextBoxType = {
			name = "decision_cost"
			font = "cg_16b"
			text = "5 minerals 1 apple"
			position = { x = -3 y = 78 }
			maxWidth = 60
			maxHeight = 60
			fixedSize = yes
			format = center
			alwaysTransparent = yes
		}

		buttonType = {
			name = "button_decision"
			quadTextureSprite = "GFX_button_light"
			position = { x = -2 y = -1 }
			clicksound = "queuing_building"
			size = { x = 288 y = 168 }
		}
	}

	containerWindowType = {
		name = "planet_automation_settings_entry"
		position = { x=0 y=0 }
		moveable = no
		size = { width = 280 height = 35 }

		background = {
			name = "background"
			spriteType = "GFX_tiles_frame"
			clicksound = "confirm_click"
			oversound = "mouse_over"
		}

		instantTextBoxType = {
			name = "automation_settings_name"
			font = "cg_16b"
			text = "Automation Name"
			position = { x = 10 y = 8 }
			maxWidth = 280
			maxHeight = 20
			fixedSize = yes
			format = left
			orientation = "UPPER_LEFT"
		}

		checkboxType = {
			name = "automation_settings_checkbox"
			quadTextureSprite = "GFX_checkbox_20_20_01"
			position = { x= 230 y = 2 }
		}
	}

	containerWindowType = {
		name = "planet_automation_settings_main_title"
		position = { x=0 y=0 }
		moveable = no
		size = { width = 280 height = 35 }
		instantTextBoxType = {
			name = "automation_settings_name"
			font = "malgun_goth_24"
			text = "AUTOMATION_SETTINGS_TITLE"
			position = { x = 0 y = 5 }
			maxWidth = 215
			maxHeight = 20
			fixedSize = yes
			orientation = "UPPER_LEFT"
			text_color_code = "E"
			format = LEFT
		}
		buttonType = {
			name = "automated_development_button"
			position = { x = 245 y = 0 }
			spriteType = "GFX_button_manual"
			pdx_tooltip = "SELECT_COLONY_AUTOMATIC_DEVELOPMENT"
		}
	}

	containerWindowType = {
		name = "planet_automation_settings_title"
		position = { x=0 y=0 }
		moveable = no
		size = { width = 280 height = 35 }
		instantTextBoxType = {
			name = "automation_settings_name"
			font = "malgun_goth_24"
			text = "AUTOMATION_SETTINGS_TITLE"
			position = { x = 10 y = 5 }
			maxWidth = 215
			maxHeight = 20
			fixedSize = yes
			orientation = "UPPER_LEFT"
			text_color_code = "E"
			format = LEFT
		}
	}

	containerWindowType = {
		name = "planet_automation_usage_entry"
		position = { x=0 y=0 }
		moveable = no
		size = { width = 280 height = 35 }

		gridboxType = {
			name = "automated_resource_usage"
			position = { x = 5 y = 0 }
			orientation = "UPPER_LEFT"
			format = "UPPER_LEFT"
			slotsize = { width = 68 height = 36 }
			max_slots_horizontal = 4
			add_horizontal = yes
		}
	}

	containerWindowType = {
		name = "planet_automation_usage_entry_item"
		size = { width = 64 height = 32 }
		position = { x = 0 y = 0 }
		background = {
			name = "background"
			spriteType = "GFX_tiles_frame"
			clicksound = "confirm_click"
			oversound = "mouse_over"
		}
		iconType = {
			name = "icon"
			spriteType = "GFX_resource_energy_large"
			position = { x = 0 y = 0 }
		}
		checkboxType = {
			name = "button"
			quadTextureSprite = "GFX_checkbox_20_20_01"
			position = { x= 32 y = 0 }
		}
	}

	containerWindowType = {
		name = "planet_designation_entry"
		position = { x=0 y=82 }
		moveable = no
		size = { width = 280 height = 114 }

		background = {
			name = "designation_list_button_background"
			spriteType = "GFX_planet_designation_button"
			clicksound = "confirm_click"
			oversound = "mouse_over"
		}

		containerWindowType = {
			name = "designation_name"
			size = { width = 280 height = 22 }
			position = { x = 0 y = 0 }

			instantTextBoxType = {
				name = "designation_name"
				font = "cg_16b"
				text = "Designation Name"
				position = { x = 0 y = 3 }
				maxWidth = 280
				maxHeight = 20
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "designation_effects"
			size = { width = 224 height = 90 }
			position = { x = 56 y = 21 }

			instantTextBoxType={
				name = "designation_effects"
				font = "cg_16b"
				text = "Decision effects go here"
				position = { x = 5 y = 5 }
				maxWidth = 216
				maxHeight = 128
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "designation_icon_bg_container"
			size = {width = 55 height = 55}
			position = {x = 1 y = 23}

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

		iconType = {
			name = "designation_icon"
			spriteType = "GFX_colony_type"
			position = { x=11 y= 33 }
			alwaysTransparent = yes
			scale = 1.1
		}

		buttonType = {
			name = "button_designation"
			quadTextureSprite = "GFX_button_light"
			position = { x = -1 y = 0 }
			clicksound = "queuing_building"
			size = { x = 282 y = 114 }
		}
	}

	containerWindowType = {
		name = "planet_terraforming_entry"
		position = { x = 0 y = 82 }
		moveable = no
		size = { width = 270 height = 70 }

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

		iconType = {
			name = "planet_class_from_icon"
			position = { x = 5 y = 25 }
			spriteType = "GFX_planet_type"
			frame = 1
			alwaysTransparent = yes
		}

		iconType = {
			name = "leads_to_arrows"
			spriteType = "GFX_leads_to_arrows"
			position = { x = 42 y = 32 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "planet_class_to_icon"
			position = { x = 69 y = 25 }
			spriteType = "GFX_planet_type"
			frame = 1
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "planet_class_name"
			size = { width = 270 height = 22 }
			position = { x = 0 y = 0 }

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

			instantTextBoxType = {
				name = "habitability"
				font = "cg_16b"
				text = "82%"
				position = { x = 7 y = 3 }
				maxWidth = 160
				maxHeight = 20
				fixedSize = yes
				orientation = "UPPER_LEFT"
				format = left
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "planet_class_name"
				font = "cg_16b"
				text = "Continental World"
				position = { x = 4 y = 3 }
				maxWidth = 270
				maxHeight = 20
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}
		}

		instantTextBoxType={
			name = "terraforming_cost"
			font = "cg_16b"
			text = "500 energy credits"
			position = { x = 108 y = 25 }
			maxWidth = 150
			maxHeight = 80
			fixedSize = yes
			format = right
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "terraforming_time"
			font = "cg_16b"
			text = "500 energy credits"
			position = { x = 158 y = 45 }
			maxWidth = 100
			maxHeight = 80
			fixedSize = yes
			format = right
			alwaysTransparent = yes
		}

		buttonType = {
			name = "terraform_button"
			position = { x = -1 y = -1 }
			size = { x = 272 y = 72 }
			quadTextureSprite = "GFX_button_light"
			clicksound = "ui_queuing_terraforming"
		}
	}

	containerWindowType = {
		name = "planet_pop_category_entry" # Used by pop_categories_list
		position = { x=0 y= 0 }
		size = { } #Uses pop_category_base_size
		clipping = yes

		containerWindowType = {
			name = "pop_category_info"
			size = { width = 811 height = 133 }

			background = {
				name = "pop_background"
				spriteType = "GFX_dark_area_button"
				clicksound = "outliner_click_tab"
			}

			overlappingElementsBoxType = {
				name = "job_types_box" # Uses planet_job_type_entry
				position = { x = 65 y = 42 }
				size = { x = 580 y = 60 }
				format = left
			}
		}

		containerWindowType = {
			name = "pop_category_collapsed_production_info"
			size = { width = 160 height = 100 }
			position = { x = 645 y = 30 }

			background = {
				name = "production_background"
				spriteType = "GFX_invisible"
				clicksound = "outliner_click_tab"
			}

			containerWindowType = {
				name = "collapsed_upkeep_frame"
				size = { width = 160 height = 49 }
				position = { x = 0 y = 0 }

				background = {
					name = "upkeep_back"
					spriteType = "GFX_button_job_tile"
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "collapsed_upkeep"
					position = { x = 4 y = 4 }
					font = "cg_16b"
					maxWidth = 150
					maxHeight = 45
					format = center
					vertical_alignment = center
					fixedSize = yes
				}
			}

			containerWindowType = {
				name = "collapsed_production_frame"
				size = { width = 160 height = 49 }
				position = { x = 0 y = 48 }

				background = {
					name = "production_back"
					spriteType = "GFX_button_job_tile"
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "collapsed_production"
					position = { x = 4 y = 4 }
					font = "cg_16b"
					maxWidth = 150
					maxHeight = 45
					format = center
					vertical_alignment = center
					fixedSize = yes
				}
			}

			iconType = {
				name = "leads_to_arrows_test"
				spriteType = "GFX_strata_arrow"
				position = { x = -12 y = -16 }
				orientation = "CENTER"
				alwaysTransparent = yes
			}
		}

		#Strata Button Header
		containerWindowType = {
			size = { width = 811 height = 30 }
			name = "pop_category_collapsed_info"

			background = {
				name = "collapsed_background"
				spriteType = "GFX_strata_header_button"
				clicksound = "outliner_click_tab"
			}

			instantTextBoxType={
				name = "pop_category_name"
				font = "malgun_goth_24"
				text = "Upper Class"
				position = { x = 68 y = 2 }
				maxWidth = 200
				maxHeight = 20
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}

			buttonType = {
				name = "strata_header_arrow"
				spriteType = "GFX_strata_header_arrow"
				position = { x = 780 y = 8 }
			}
		}

		#<-------------------------------Strata Icon & Total Container --->
		containerWindowType = {
			size = { width = 61 height = 128 }
			position = {x = 2 y = 2 }
			name = "pop_strata_icon_total_container"

			background = {
				name = "unemployed_background"
				spriteType = "GFX_strata_unemployed_box"
				clicksound = "outliner_click_tab"
				position = { x = -2 y = -2 }
			}

			iconType = {
				name = "category_icon"
				quadTextureSprite = "GFX_pop_category_unknown"
				position = { x = 9 y = 5 }
				scale = 1.25
			}

			instantTextBoxType={
				name = "category_amount"
				font = "cg_16b"
				position = { x = 5 y = 42 }
				text = "12"
				maxWidth = 44
				maxHeight = 20
				fixedSize = yes
				format = center
			}
		}

		containerWindowType = {
			size = { width = 60 height = 26 }
			position = { x = 2 y = 2 }
			name = "pop_strata_icon_collapsed_container"

			#needs new art
			background = {
				name = "collapsed_strata_background"
				spriteType = "GFX_dark_area_button"
				clicksound = "outliner_click_tab"
			}

			iconType = {
				name = "collapsed_category_icon"
				quadTextureSprite = "GFX_pop_category_unknown"
				position = { x = 2 y = 2 }
				scale = 0.8
			}

			instantTextBoxType={
				name = "collapsed_category_pops_amount"
				font = "cg_16b"
				position = { x = 18 y = 5 }
				text = "12"
				maxWidth = 44
				maxHeight = 20
				fixedSize = yes
				format = center
			}
		}

		#Unemployed Container
		containerWindowType = {
			name = "unemployed_container"
			size = { width = 53 height = 48 }
			position = { x = 4 y = 62 }
			clipping = no

			#needs new art
			background = {
				name = "unemployed_background"
				spriteType = "GFX_dark_area_button"
				clicksound = "outliner_click_tab"
				position = { x = 0 y = 10 }
			}

			iconType = {
					name = "category_unemployed_icon"
					spriteType = "GFX_unemployed"
					position = { x = 16 y = 13 }
					scale = 0.75
					tooltip_mode_enabled = yes
				}

				instantTextBoxType={
					name = "category_unemployed_amount"
					font = "cg_16b"
					position = { x = 4 y = 38 }
					text = "222"
					maxWidth = 45
					maxHeight = 20
					fixedSize = yes
					format = center
				}
		}

		#<----------------------------- Expanded Strata ------------------------------>
		containerWindowType = {
			name = "pop_category_jobs"
			position = { x=10 y=30 }
			size = { width = 514 height = 210 }

			# Jobs Expanded
			smoothListboxType = {
				name = "jobs_list" # Uses planet_job_entry
				position = { x = 0 y = 3 }
				background = ""
				size = { x = 799 y = 210 }
				scrollbarType = "standardlistbox_slider"
				borderSize = { x = 0 y = 0 }
				orientation = "UPPER_LEFT"
				spacing = 2
				alwaysTransparent = yes
			}
		}
	}

	containerWindowType = {
		name = "planet_job_entry" # Used by jobs_list
		position = { x = 0 y = 84 }
		size = { width = 799 height = 120 }  #Should approximate pop_category_job_size
		clipping = yes

		background = {
			name = "background"
			spriteType = "GFX_dark_area_button"
			alwaysTransparent = yes
		}

		# Header Container
		containerWindowType = {
			size = { width = 549 height = 25 }
			position = { x = 86 y = 0 }
			name = "planet_job_collapsed_info"

			background = {
				name = "background"
				spriteType = "GFX_dark_area_button"
				alwaysTransparent = yes
			}

			#iconType = {
			#	name = "num_jobs_icon"
			#	spriteType = "GFX_pop_job"
			#	position = { x=-1 y= -1 }
			#	scale = 0.8
			#}

			iconType = {
				name = "small_job_icon"
				quadTextureSprite = "GFX_job_unknown"
				position = { x = 7 y = 2 }
				scale = 0.7
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "job_text"
				font = "cg_16b"
				text = "Laborers"
				position = { x = 33 y = 4 }
				maxWidth = 200
				maxHeight = 20
				fixedSize = yes
				format = left
			}
		}

		containerWindowType = {
			size = { width = 735 height = 120 }
			name = "planet_job_expanded_info"

			containerWindowType = {
				size = { width = 88 height = 118 }
				position = { x = 0 y = -1 }
				name = "planet_job_icon_container"

				iconType = {
					name = "bg_icon"
					quadTextureSprite = "GFX_planet_building_bg"
					position = { x = 2 y = 2 }
					alwaysTransparent = yes
				}

				background = {
					name = "background"
					quadTextureSprite = "GFX_button_light"
				}

				iconType = {
					name = "job_icon"
					quadTextureSprite = "GFX_building_unknown"
					position = { x = -17 y = 25 }
					alwaysTransparent = yes
				}


				iconType = {
					name = "favorite_icon"
					quadTextureSprite = "GFX_job_favorite"
					position = { x = 4 y = 0 }
					alwaysTransparent = yes
				}


				iconType = {
					name = "downprio_icon"
					quadTextureSprite = "GFX_job_depreciate"
					position = { x = 68 y = 0 }
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "planet_job_production_info"
				size = { width = 160 height = 120 }
				position = { x = 635 y = 0 }

				background = {
					name = "background"
					spriteType = "GFX_invisible"
				}

				containerWindowType = {
					name = "upkeep_frame"
					size = { width = 160 height = 58 }
					position = { x = 0 y = 3 }

					background = {
						name = "upkeep_back"
						spriteType = "GFX_button_job_tile"
						alwaysTransparent = yes
					}

					instantTextBoxType = {
						name = "upkeep"
						position = { x = 4 y = 4 }
						font = "cg_16b"
						maxWidth = 150
						maxHeight = 45
						format = center
						vertical_alignment = center
						fixedSize = yes
					}
				}

				containerWindowType = {
					name = "production_frame"
					size = { width = 160 height = 58 }
					position = { x = 0 y = 60 }

					background = {
						name = "production_back"
						spriteType = "GFX_button_job_tile"
						alwaysTransparent = yes
					}

					instantTextBoxType = {
						name = "production"
						position = { x = 4 y = 4 }
						font = "cg_16b"
						maxWidth = 150
						maxHeight = 45
						format = center
						vertical_alignment = center
						fixedSize = yes
					}
				}

				iconType = {
					name = "leads_to_arrows"
					spriteType = "GFX_strata_arrow"
					position = { x = -12 y = -13 }
					orientation = "CENTER"
					alwaysTransparent = yes
				}
			}

			#Workforce area
			containerWindowType = {
				size = { width = 544 height = 30 }
				position = { x = 90 y = 28 }
				name = "planet_job_workforce"
				clipping = no

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

				gridBoxType = {
					name = "workforce_box" # Uses planet_view_workforce_entry
					position = { x = 4 y = -8 }
					size = { width = 1 height = 18 }
					slotsize = { width = 24 height = 24 }
					max_slots_horizontal = 20 # Use this to tweak number of boxes.
					max_slots_vertical = 1
					add_horizontal = yes
				}

				# Offset clone of workforce box merely to offer a clickable grid
				gridBoxType = {
					name = "invisible_workforce_box" # Uses planet_view_workforce_entry
					position = { x = -8 y = -64 }
					size = { width = 1 height = 18 }
					slotsize = { width = 24 height = 80 }
					max_slots_horizontal = 21 # Should be workforce_box + 1
					max_slots_vertical = 1
					add_horizontal = yes
				}

				#Placeholder for the slider "tip"
				buttonType = {
					name = "job_workforce_slider_setting"
					spriteType = "GFX_district_workforce_slider"
					position = { x = 5 y = 14 } # Used as the position of the leftmost slot.
					centerPosition = yes
				}

				buttonType = {
					name = "job_workforce_increase"
					quadTextureSprite = "GFX_job_prio_increase"
					position = { x = 516 y = 5 }
					oversound = "no_sound"
				}

				buttonType = {
					name = "job_workforce_decrease"
					quadTextureSprite = "GFX_job_prio_decrease"
					position = { x = 493 y = 5 }
					oversound = "no_sound"
				}

				instantTextBoxType = {
					name = "job_amount"
					font = "cg_16b"
					text = "9999/9999"
					position = { x = 434 y = -20 }
					maxWidth = 100
					maxHeight = 20
					fixedSize = yes
					format = right
				}
			}

			containerWindowType = {
				size = { width = 539 height = 30 }
				position = { x = 96 y = 61 }
				name = "planet_job_popgroups"

				gridBoxType = {
					name = "popgroups_box" # Uses planet_pop_entry
					position = { x = 0 y = 0 }
					slotSize = { width = 55 height = 55 }
					max_slots_horizontal = 9
					max_slots_vertical = 1
					add_horizontal = yes
					format = "UPPER_LEFT"
				}

				instantTextBoxType = {
					name = "hidden_popgroups_amount"
					font = "cg_16b"
					text = "XXX"
					position = { x = 495 y = 20 }
					maxWidth = 45
					maxHeight = 20
					format = center
				}

				buttonType = {
					name = "expand_popgroups_arrow"
					spriteType = "GFX_strata_header_arrow"
					position = { x = 507 y = 40 }
				}
			}

			containerWindowType = {
				size = { width = 539 height = 30 }
				position = { x = 96 y = 116 }
				name = "planet_job_extended_popgroups"

				clipping = no
				respect_parent_boundaries = no

				gridBoxType = {
					name = "extended_popgroups_box" # Uses planet_pop_entry
					position = { x = 0 y = 0 }
					slotSize = { width = 55 height = 55 }
					max_slots_horizontal = 9
					add_horizontal = yes
					format = "UPPER_LEFT"
				}
			}
		}
	}

	containerWindowType = {
		name = "planet_unemployed_strata_entry"
		position = { x=0 y=0 }
		size = { width = 50 height = 30 }

		instantTextBoxType={
			name = "amount"
			font = "cg_16b"
			text = "DASH"
			position = { x = 26 y = 7 }
			maxWidth = 33
			maxHeight = 18
			fixedSize = yes
			format = left
		}

		iconType = {
			name = "icon"
			spriteType = "GFX_pop_category_unknown"
			scale = 0.85
			position = { x = 2 y = 3}
		}
	}

	containerWindowType = {
		name = "planet_species_entry"
		position = { x=0 y=0 }
		size = { width = 55 height = 55 }

		containerWindowType = {
			name = "portrait"
			size = { width = 55 height = 55 }
			position = { x = 0 y = 0 }
			clipping = yes

			iconType = {
				name = "species_background"
				spriteType = "GFX_planet_background"
				position = { x = 2 y = 3 }
				scale = 0.55
			}

			iconType = {
				name = "species_background_frame"
				spriteType = "GFX_planet_background_frame"
				scale = 0.55
				alwaysTransparent = yes
			}

			iconType = {
				name = "portrait"
				quadTextureSprite = "GFX_portrait_character"
				position = { x = -23 y = -2 }
				scale = 0.15
				alwaysTransparent = yes
			}
		}

		iconType = {
			name = "species_num_frame"
			spriteType = "GFX_deposit_num_frame"
			position = { x= 34 y= 1 }
		}

		instantTextBoxType={
			name = "amount"
			font = "cg_16b"
			text = "5"
			position = { x= 23 y= 2 }
			maxWidth = 40
			maxHeight = 20
			fixedSize = yes
			text_color_code = "Y"
			format = center
		}
	}

	# Planet Job Type Entry - used to favorite certain jobs etc.
	containerWindowType = {
		name = "planet_job_type_entry" # Used by job_types_box
		position = { x = 0 y = 0 }
		size = { width = 64 height = 74 }

		background = {
			name = "job_background"
			quadTextureSprite = "GFX_button_dark_job"
			clicksound = "select_click"
		}

		iconType = {
			name = "job_icon"
			quadTextureSprite = "GFX_job_unknown"
			position = { x = 17 y = 7 }
			scale = 1.0
			alwaysTransparent = yes
		}

		iconType = {
			name = "favorite_icon"
			spriteType = "GFX_job_favorite"
			position = { x = 4 y = 0 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "downprio_icon"
			spriteType = "GFX_job_depreciate"
			position = { x = 46 y = 2 }
			scale = 0.9
			alwaysTransparent = yes
		}

		instantTextBoxType={
			name = "amount"
			font = "cg_16b"
			text = "500"
			position = { x= 0 y= 40 }
			maxWidth = 64
			maxHeight = 20
			fixedSize = yes
			format = center
		}

		containerWindowType = {
			name = "workforce_bar"
			position = { x = 6 y = 57 }
			size = { width = 52 height = 10 }

			background = {
				name = "bar_back"
				spriteType = "GFX_workforce_bar_empty"
			}

			iconType = {
				name = "bar_icon"
				spriteType = "GFX_workforce_bar_collapsed"
				position = { x = 0 y = 0 }
				alwaysTransparent = yes
			}
		}
	}

	containerWindowType = {
		name = "planet_pop_entry" # Used by popgroups_box
		position = { x = 0 y = 0 }
		size = { width = 55 height = 55 }

		containerWindowType = {
			name = "portrait"
			size = { width = 55 height = 55 }
			position = { x = 0 y = 0 }
			clipping = yes

			background = {
				name = "pop_background"
				spriteType = "GFX_button_light"
				position = { x = 1 y = 1 }
				oversound = "no_sound"
			}

			iconType = {
				name = "portrait"
				quadTextureSprite = "GFX_portrait_character"
				position = { x = -20 y = -3 }
				scale = 0.15
				alwaysTransparent = yes
			}

			iconType = {
				name = "pop_status"
				spriteType = "GFX_pop_status"
				position = { x = 1 y = 30 }
				scale = 0.8
				alwaysTransparent = yes
			}

			iconType = {
				name = "pop_mod"
				spriteType = "GFX_pop_mod"
				position = { x = 0 y = 0 }
				scale = 0.71
				alwaysTransparent = yes
			}

			instantTextBoxType= {
				name = "amount"
				font = "cg_16b"
				text = "5"
				position = { x = 8 y = 34 }
				maxWidth = 40
				maxHeight = 20
				fixedSize = yes
				format = right
				alwaysTransparent = yes
			}

			iconType = {
				name = "promotion"
				orientation = UPPER_RIGHT
				position = { x = -15 y = 5 }
				spriteType = "GFX_growth_negative"
			}
		}

		iconType = {
			name = "selected_pop_icon"
			spriteType = "GFX_selected_building"
			position = { x= 1 y= 1 }
			scale = 0.54
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_building_entry"
		position = { x = 0 y = 0 }
		size = { width = 48 height = 48 }
		clipping = yes

		containerWindowType = {
			name = "building_slot_icons"
			position = { x = 3 y = 3 }
			size = { width = 48 height = 48 }
			clipping = yes

			buttonType = {
				name = "locked_building_button"
				position = { x = 0 y = 0 }
				spriteType = "GFX_building_module_locked_slot"
				scale = 1
				clicksound = "menu_slide_open"
			}
			iconType = {
				name = "building_bg"
				position = { x=0 y=0 }
				spriteType = "GFX_building_bg"
				scale = 0.5
				alwaysTransparent = yes
			}

			iconType = {
				name = "building_icon"
				position = { x=-16 y= 0 }
				scale = 0.6
				spriteType = "GFX_building_unknown"
				alwaysTransparent = yes
			}


			iconType = {
				name = "add_building_bg"
				spriteType = "GFX_building_slot_bg"
				position = { x = -1 y = -1}
				alwaysTransparent = yes
			}

			iconType = {
				name = "ruined_building_icon"
				position = { x=-16 y= 0 }
				scale = 0.6
				spriteType = "GFX_building_ruined"
				alwaysTransparent = yes
			}
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_building_smaller_progressbar"
			position = { x = 3 y = 38 }
			alwaysTransparent = yes
		}

		buttonType = {
			name = "open_building_button"
			position = { x=1 y=1 }
			size = { x=48 y=48 }
			quadTextureSprite = "GFX_button_light"
			clicksound = "menu_slide_open"
		}

		iconType = {
			name = "selected_building_icon"
			spriteType = "GFX_selected_building"
			position = { x=1 y=2 }
			scale = 0.46
			alwaysTransparent = no
		}

		buttonType = {
			name = "upgrade_building"
			quadTextureSprite = "GFX_district_upgrade_overlay"
			position = { x=3 y=3 }
			clicksound = "queuing_building"
			scale = 0.80
		}

		iconType = {
			name = "disabled_building"
			spriteType = "GFX_disabled_building"
			position = { x=23 y=23 }
			scale = 0.8
		}
	}

	containerWindowType = {
		name = "planet_holding_building_entry"
		position = { x=0 y=0 }
		size = { width = 58 height = 58 }


		buttonType = {
			name = "locked_building_button"
			position = { x= 0 y=1 }
			spriteType = "GFX_building_module_locked_slot"
			scale = 1
			clicksound = "menu_slide_open"
		}

		iconType = {
			name = "building_bg"
			position = { x=1 y=0 }
			spriteType = "GFX_building_bg"
			scale = 0.64
			alwaysTransparent = yes
		}

		iconType = {
			name = "add_building_bg"
			spriteType = "GFX_spaceport_module_slot"
			position = { x = 0 y = 0}
		}

		iconType = {
			name = "building_icon"
			position = { x=-14 y= 2 }
			scale = 0.68
			spriteType = "GFX_building_unknown"
			alwaysTransparent = yes
		}

		iconType = {
			name = "ruined_building_icon"
			position = { x=-14 y= 4 }
			scale = 0.68
			spriteType = "GFX_building_ruined"
			alwaysTransparent = yes
		}

		iconType = {
			name = "progressbar"
			spriteType = "GFX_building_progressbar"
			position = { x = 3 y = 48 }
			alwaysTransparent = yes
		}

		buttonType = {
			name = "open_building_button"
			position = { x=0 y=0 }
			size = { x=58 y=58 }
			quadTextureSprite = "GFX_button_light"
			clicksound = "menu_slide_open"
		}

		iconType = {
			name = "selected_building_icon"
			spriteType = "GFX_selected_building"
			position = { x=1 y=1 }
			scale = 0.55
			alwaysTransparent = no
		}

		buttonType = {
			name = "upgrade_building"
			quadTextureSprite = "GFX_district_upgrade_overlay"
			position = { x=1 y=1 }
			clicksound = "queuing_building"
			scale = 0.80
		}

		iconType = {
			name = "disabled_building"
			spriteType = "GFX_disabled_building"
			position = { x=31 y=31 }
			scale = 0.8
		}
	}

	containerWindowType = {
		name = "planet_construction_entry"
		position = { x= 0 y= 0 }
		size = { width = 270 height = 124 }

		background = {
			name = "background"
			spriteType = "GFX_no_highlight_tile"
		}

		containerWindowType = {
			name = "entry_bg_gradient"
			size = { width = 280 height = 98 }
			position = { x = 1 y = 25 }

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

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

		containerWindowType = {
			name = "building_icon"
			size = { width = 79 height = 79	}
			position = { x = 0 y = 23 }
			clipping = yes

			iconType = {
				name = "building_bg"
				position = { x=1 y=1 }
				spriteType = "GFX_building_bg"
				alwaysTransparent = yes
				scale = 0.87
			}

			iconType = {
				name = "building_icon"
				position = { x = -25 y = 0 }
				scale = 1
				spriteType = "GFX_building_unknown"
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "building_name"
			size = { width = 270 height = 24 }
			position = { x = 0 y = 0 }

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

			instantTextBoxType = {
				name = "building_name"
				font = "cg_16b"
				text = "Building Name"
				position = { x = 6 y = 2 }
				maxWidth = 270
				maxHeight = 20
				fixedSize = yes
				format = left
				vertical_alignment = center
				alwaysTransparent = yes
			}
		}

		instantTextBoxType = {
			name = "building_effects"
			font = "cg_16b"
			text = "Building effects go here"
			position = { x = 83 y = 28 }
			maxWidth = 190
			maxHeight = 70
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "building_cost"
			font = "cg_16b"
			text = "50"
			position = { x = -3 y = 103 }
			maxWidth = 259
			maxHeight = 20
			fixedSize = yes
			format = right
			alwaysTransparent = yes
			text_color_code = "Y"
		}

		buttonType = {
			name = "button_build"
			quadTextureSprite = "GFX_button_light"
			position = { x = -1 y = -1 }
			clicksound = "queuing_building"
			size = { x = 272 y = 128 }
		}
	}

	containerWindowType = {
		name = "planet_district_construction_entry"
		position = { x= 0 y= 0 }
		size = { width = 272 height = 101 }

		background = {
			name = "background"
			quadTextureSprite = "GFX_button_light"
			clicksound = "queuing_building"
		}

		containerWindowType = {
			name = "district_icon"
			size = { width = 78 height = 79	}
			position = { x = 1 y = 21 }

			iconType = {
				name = "district_icon"
				position = { x = 1  y = 1 }
				spriteType = "GFX_district_unknown"
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "district_name"
			size = { width = 270 height = 22 }
			position = { x = 1 y = 0 }

			background = {
				name = "background"
				spriteType = "GFX_tiles_frame"
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "district_name"
				font = "cg_16b"
				text = "District Name"
				position = { x = 0 y = 3 }
				maxWidth = 272
				maxHeight = 20
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}
		}

		instantTextBoxType = {
			name = "district_effects"
			font = "cg_16b"
			text = "District effects go here"
			position = { x = 85 y = 25 }
			maxWidth = 192
			maxHeight = 80
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "district_cost"
			font = "cg_16b"
			text = "50"
			position = { x = 85 y = 78 }
			maxWidth = 180
			maxHeight = 80
			fixedSize = yes
			format = right
			alwaysTransparent = yes
			text_color_code = "Y"
		}


		buttonType = {
			name = "background"
			quadTextureSprite = "GFX_list_hover"
			position = { x = -4 y = -4 }
			clicksound = "click_outliner"
			oversound = no_sound
		}
	}

	containerWindowType = {
		name = "planet_zone_construction_entry"
		position = { x= 0 y= 0 }
		size = { width = 270 height = 98 }

		background = {
			name = "background"
			quadTextureSprite = "GFX_light_frame_area"
		}

		containerWindowType = {
			name = "zone_icon"
			size = { width = 75 height = 75	}
			position = { x = 1 y = 22 }

			iconType = {
				name = "zone_icon"
				position = { x = 15  y = 15 }
				spriteType = "GFX_district_unknown"
				alwaysTransparent = yes
				scale = 1.5
			}

			background = {
				name = "icon_background"
				spriteType = "GFX_tiles_frame"
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "zone_name"
			size = { width = 268 height = 22 }
			position = { x = 1 y = 1 }

			background = {
				name = "background"
				spriteType = "GFX_tiles_frame"
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "zone_name"
				font = "cg_16b"
				text = "Zone Name"
				position = { x = 0 y = 3 }
				maxWidth = 272
				maxHeight = 20
				fixedSize = yes
				format = center
				alwaysTransparent = yes
			}
		}

		instantTextBoxType = {
			name = "zone_effects"
			font = "cg_16b"
			text = "Zone effects goes here"
			position = { x = 85 y = 25 }
			maxWidth = 180
			maxHeight = 80
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "zone_cost"
			font = "cg_16b"
			text = "50"
			position = { x = 85 y = 78 }
			maxWidth = 180
			maxHeight = 80
			fixedSize = yes
			format = right
			alwaysTransparent = yes
			text_color_code = "Y"
		}

		buttonType = {
			name = "button_build"
			quadTextureSprite = "GFX_button_light"
			position = { x = 0 y = 0 }
			clicksound = "queuing_building"
			size = { x = 270 y = 128 }
		}
	}

	containerWindowType = {
		name = "zone_details_entry"
		position = { x= 0 y= 130 }
		size = { width = 284 height = 135 }

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

		instantTextBoxType = {
			name = "zone_details_text"
			font = "cg_16b"
			text = "zone_details_text"
			position = { x = 10 y = 5 }
			maxWidth = 240
			maxHeight = 25
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "replace_zone"
			position = { x = 252 y = 2 }
			spriteType = "GFX_button_update"
			buttonFont = "cg_16b"
			font = "cg_16b"
			oversound = mouse_over
			scale = 0.7
		}

		containerWindowType = {
			name = "zone_details"
			size = { width = 272 height = 98 }
			position = { x = 5 y = 30 }

			background = {
				name = "background"
				quadTextureSprite = "GFX_light_frame_area"
			}

			containerWindowType = {
				name = "entry_bg_gradient"
				size = { width = 272 height = 76 }
				position = { x = 0 y = 22 }

				background = {
					name = "background"
					spriteType = "GFX_diplomacy_textbox_positive"
					alwaysTransparent = yes
					alpha = 0.3
				}
			}

			containerWindowType = {
				name = "zone_name"
				size = { width = 270 height = 22 }
				position = { x = 1 y = 1 }

				background = {
					name = "background"
					spriteType = "GFX_tiles_frame"
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "zone_name"
					font = "cg_16b"
					text = "Zone Name"
					position = { x = 6 y = 3 }
					maxWidth = 272
					maxHeight = 20
					fixedSize = yes
					alwaysTransparent = yes
				}
			}

			containerWindowType = {
				name = "zone_icon"
				size = { width = 75 height = 75	}
				position = { x = 1 y = 22 }

				iconType = {
					name = "zone_icon"
					position = { x = 15  y = 15 }
					spriteType = "GFX_district_unknown"
					alwaysTransparent = yes
					scale = 1.5
				}

				background = {
					name = "icon_background"
					spriteType = "GFX_tiles_frame"
					alwaysTransparent = yes
				}
			}

			instantTextBoxType = {
				name = "zone_effects"
				font = "cg_16b"
				text = "Zone effects goes here"
				position = { x = 85 y = 25 }
				maxWidth = 180
				maxHeight = 80
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}
		}
	}

	containerWindowType = {
		name = "planet_recruitment_entry"
		position = { x = 0 y = 8 }
		size = { width = 287 height = 65 }

		background = {
			name = "background"
			spriteType = "GFX_dark_area_cut"
			clicksound = "queuing_army"
		}

		buttonType = {
			name = "recruit_button"
			position = { x = -1 y = -1 }
			size = { x = 287 y = 67 }
			quadTextureSprite = "GFX_button_light"
			clicksound = "back_click"
		}

		iconType = {
			name = "army_icon"
			position = { x=0 y=0 }
			spriteType = "GFX_army_icons"
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "army_name"
			font = "malgun_goth_24"
			text = "Army Name"
			position = { x = 30 y = 4 }
			maxWidth = 200
			maxHeight = 20
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "army_species"
			font = "cg_16b"
			text = "Army Species"
			position = { x = 30 y = 32 }
			maxWidth = 200
			maxHeight = 20
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "army_cost"
			font = "cg_16b"
			text = "50"
			position = { x = 95 y = 40 }
			maxWidth = 180
			maxHeight = 20
			fixedSize = yes
			text = "1 mineral"
			format = right
			text_color_code = "Y"
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_army_entry"
		size = { width = 310 height = 70 }

		background = {
			name = "background"
			spriteType = "GFX_dark_area_cut"
			clicksound = "back_click"
		}

		iconType = {
			name = "army_icon"
			position = { x = 0 y = -5 }
			spriteType = "GFX_army_icons"
		}

		instantTextBoxType = {
			name = "army_name"
			position = { x = 30 y = 0 }
			font = "malgun_goth_24"
			text = "Army Name"
			maxWidth = 265
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		instantTextBoxType = {
			name = "army_species"
			font = "cg_16b"
			text = "Army Species"
			position = { x = 30 y = 26 }
			maxWidth = 230
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		instantTextBoxType = {
			name = "army_power"
			position = { x = 28 y = 46 }
			font = "cg_16b"
			text = "power 15"
			maxWidth = 50
			maxHeight = 20
			fixedSize = yes
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "army_health"
			position = { x = 90 y = 46 }
			font = "cg_16b"
			text = "H 1800"
			maxWidth = 120
			maxHeight = 20
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		buttonType = {
			name = "inspect_army"
			position = { x= 265 y = 25 }
			quadTextureSprite = "GFX_fleetview_inspect_army"
			buttonFont = "cg_16b"
			clicksound = click_army_select
		}
	}

	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 = 20 y = -10 }
		}

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

	containerWindowType = {
		name = "planet_army_ground_combat_entry"
		position = { x=0 y=0 }
		size = { width = 35 height = 35 }

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

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

		iconType = {
			name = "army_hp"
			spriteType = "GFX_ship_life_radial_progress"
			position = { x = 36 y = -42 }
			orientation = "UPPER_LEFT"
			rotation = 3.14159
			frame = 100
			alwaystransparent = yes
		}
	}

	containerWindowType = {
		name = "planet_side_panel_build_queue_item_entry"
		position = { x= 0 y= 0 }
		size = { width = 300 height = 55 }

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

		iconType = {
			name = "progressbar"
			spriteType = "GFX_queue_progressbar_260"
			position = { x = 5 y = 39 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "title"
			font = "cg_16b"
			position = { x = 4 y = 3 }
			maxWidth = 300
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		instantTextBoxType = {
			name = "time"
			font = "cg_16b"
			text = "Time left: 1 day"
			position = { x = 5 y = 22 }
			maxWidth = 80
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			position = { x = 36 y = 18 }
			maxWidth = 164
			maxHeight = 20
			fixedSize = yes
			format = left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		buttonType = {
			name = "background"
			quadTextureSprite = "GFX_list_hover"
			position = { x = -4 y = -4 }
			clicksound = "click_outliner"
			oversound = no_sound
		}
		buttonType = {
			name = "cancel_button"
			position = { x=-1 y=-1 }
			size = { x = 295 y = 56 }
			quadTextureSprite = "GFX_button_light"
			clicksound = "back_click"
		}

		buttonType = {
			name = "priority_upwards"
			quadTextureSprite = "GFX_button_up"
			position = { x= 265 y = 0 }
			buttonFont = "cg_16b"
			clicksound = "increment_click"
		}

		buttonType = {
			name = "priority_downwards"
			quadTextureSprite = "GFX_button_down"
			position = { x= 265 y = 26 }
			buttonFont = "cg_16b"
			clicksound = "decrement_click"
		}
	}

	containerWindowType = {
		name = "planet_build_queue_item_entry"
		position = { x= 0 y= 0 }
		size = { width = 265 height = 55 }

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

		iconType = {
			name = "progressbar"
			spriteType = "GFX_queue_progressbar_230"
			position = { x = 5 y = 39 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "title"
			font = "cg_16b"
			position = { x = 4 y = 3 }
			maxWidth = 263
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		instantTextBoxType = {
			name = "time"
			font = "cg_16b"
			text = "Time left: 1 day"
			position = { x = 5 y = 22 }
			maxWidth = 80
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			position = { x = 36 y = 18 }
			maxWidth = 164
			maxHeight = 20
			fixedSize = yes
			format = left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		buttonType = {
			name = "background"
			quadTextureSprite = "GFX_list_hover"
			position = { x = -4 y = -4 }
			clicksound = "click_outliner"
			oversound = no_sound
		}
		buttonType = {
			name = "cancel_button"
			position = { x=-1 y=-1 }
			size = { x = 265 y = 57 }
			quadTextureSprite = "GFX_button_light"
			clicksound = "back_click"
		}

		buttonType = {
			name = "priority_upwards"
			quadTextureSprite = "GFX_button_up"
			position = { x= 235 y = 0 }
			buttonFont = "cg_16b"
			clicksound = "increment_click"
		}

		buttonType = {
			name = "priority_downwards"
			quadTextureSprite = "GFX_button_down"
			position = { x= 235 y = 26 }
			buttonFont = "cg_16b"
			clicksound = "decrement_click"
		}
	}

	containerWindowType = {
		name = "category_tab"
		position = { x = 4 y = 0 }
		size = { width = 52 height = 26 }

		buttonType = {
			name = "button"
			quadTextureSprite = "GFX_channel_select"
			position = { x= 0 y = 0 }
			scale = 0.5
		}

		iconType = {
			name = "icon"
			quadTextureSprite = "GFX_job_default"
			position = { x= 17 y = -3 }
			scale = 0.6
			alwaysTransparent = yes
		}
	}

	# Template for a type of Holding in the list (such as Corporate, Subject Holding...)
	containerWindowType = {
		name = "holding_type_entry"
		size = { width = 540 height = 90 }
		position = { x = 0 y = 0 }
		margin = { bottom = 20 }

		instantTextBoxType = {
			name = "holding_type_title"
			font = "cg_16b"
			text = ""
			position = { x = 4 y = 3 }
			maxWidth = 200
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		containerWindowType = {
			name = "holdings_per_country_container"
			size = { width = 540 height = 70 }
			position = { x = 0 y = 20 }

			gridBoxType = {
				name = "holdings_per_country_box"
				position = { x = 0 y = 0 }
				format = "UPPER_LEFT"
				slotsize = { width = 550 height = 70 }
				add_horizontal = no
				max_slots_horizontal = 1
			}
		}

		containerWindowType = {
			name = "empty_text_container"
			size = { width = 200 height = 20 }
			position = { x = 140 y = 18 }

			instantTextBoxType = {
				name = "empty_text"
				font = "cg_16b"
				text = "Some text" # Changed in code
				position = { x = 0 y = 0 }
				maxWidth = 270
				maxHeight = 20
				fixedSize = yes
				format = center
			}
		}
	}

	# Template for a collection of buildings for a certain country
	containerWindowType = {
		name = "holding_per_country_entry"
		size = { width = 540 height = 100 }
		position = { x = 9 y = 7 }

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

		containerWindowType = {
			name = "contents"
			size = { width = 540 height = 70 }
			position = { x = 0 y = 13 }

			buttonType = {
				name = "country_flag"
				quadTextureSprite = "GFX_empire_flag_48"
				position = { x = 5 y = 10  }
			}

			containerWindowType = {
				name = "buildings_container"
				size = { width = 245 height = 65 }
				position = { x = 55 y = 5 }

				gridBoxType = {
					name = "buildings_box"
					position = { x = 0 y = 0 }
					size = { width = 245 height = 65 }
					format = "UPPER_LEFT"
					slotsize = { width = 60 height = 60 }
					add_horizontal = yes
					max_slots_horizontal = 4
					max_slots_vertical = 1
				}
			}

			containerWindowType = {
				name = "holdings_value_container"
				size = { width = 270 height = 48 }
				position = { x = 455 y = -14 }

				iconType = {
					name = "holdings_value_icon"
					spriteType = "GFX_pink_box"
					position = { x = 0 y = 0 }
				}

				instantTextBoxType = {
					name = "holdings_value_amount"
					font = "malgun_goth_24"
					position = { x = 20 y = 2 }
					text = "5"
					maxWidth = 50
					maxHeight = 20
					fixedSize = yes
					format = right
					orientation = upper_left
				}
			}

			# Branch office output
			containerWindowType = {
				name = "holdings_resources"
				size = { width = 160 height = 84 }
				position = { x = 301 y = -8 }

				instantTextBoxType = {
					name = "holdings_production_output_title"
					font = "cg_16b"
					text = "PRODUCTION"
					position = { x = 0 y = 0 }
					maxWidth = 78
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				instantTextBoxType={
					name = "holdings_production_output_amount"
					font = "cg_16b"
					position = { x = 0  y = 25 }
					text = "10"
					maxWidth = 72
					maxHeight = 50
					fixedSize = yes
					format = center
				}

				instantTextBoxType = {
					name = "holdings_consumption_output_title"
					font = "cg_16b"
					text = "DEFICIT"
					position = { x = 80 y = 0 }
					maxWidth = 78
					maxHeight = 20
					fixedSize = yes
					format = center
					orientation = upper_left
					alwaysTransparent = yes
				}

				instantTextBoxType={
					name = "holdings_consumption_output_amount"
					font = "cg_16b"
					position = { x = 82 y = 25 }
					text = "10"
					maxWidth = 72
					maxHeight = 50
					fixedSize = yes
					format = center
				}
			}

			buttonType = {
				name = "close_branch_office_button"
				quadTextureSprite = "GFX_button_close_branch_office"
				position = { x = -50 y = 44 }
				orientation = upper_right
			}
		}

		buttonType = {
			name = "establish_branch_office"
			position = { x = 150 y = 10 }
			quadTextureSprite = "GFX_standard_button_200_34_button"
			buttonFont = "cg_16b"
			text = "ESTABLISH_BRANCH_OFFICE"
			font = "cg_16b"
			orientation = UPPER_LEFT
			oversound = mouse_over
			navLeft = "change"
			shortcut = "B"
		}
	}

	containerWindowType = {
		name = "job_summary_entry"
		size = { width = 300  height = 150 }
		instantTextBoxType = {
			name = "title"
			font = "malgun_goth_24"
			position = { x = 0 y = 0 }
			fixedSize = no
			maxWidth = 290
			text_color_code = "H"
		}
		instantTextBoxType = {
			name = "production"
			font = "cg_16b"
			position = { x = 0 y = 25 }
			fixedSize = no
			maxWidth = 290
		}
		instantTextBoxType = {
			name = "upkeep"
			font = "cg_16b"
			position = { x = 0 y = 50 }
			fixedSize = no
			maxWidth = 290
		}
	}
}
