guiTypes = {
	@menu_width = 220

	positionType = {
		name = "locked_content_checkbox_position"
		position = { x = 5 y = -175 }
	}

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

		# Done button for the species preview, but put in this UI to show it only when applicable
		buttonType = {
			name = "species_preview_done_button"
			font = "cg_16b"
			spriteType = "GFX_galactic_object_button"
			buttonText = "DONE"
			position = { x = 345 y = 315 }
			orientation = CENTER
			clicksound = confirm_click
		}

		containerWindowType = {
			name = "menu"
			size = { width = @menu_width height = 100% }
			position = { x = 0 y = 0 }
			orientation = UPPER_LEFT

			background = {
				name = "background"
				spriteType = "GFX_plain_bg_tile"
			}

			smoothListboxType = {
				name = "editors_list"
				position = { x = 0 y = 0 }
				size = { x = 213 y = 570 }
				scrollbarType = "standardlistbox_slider"
				borderSize = { x = 0 y = 0 }
			}

			# This checkbox creates graphicla artefact where it is created.
			# Position is offset to be outside of the screen.
			# The positionType "locked_content_checkbox_position" has the actual position.
			checkboxType = {
				position = { x = -10000 y = -10000 }
				name = "locked_content_checkbox"
				spriteType = "GFX_checkbox_20_20_01"
				orientation = LOWER_LEFT
			}

			instantTextBoxType = {
				name = "locked_content_label"
				font = "cg_16b"
				position = { x = 40 y = -168 }
				maxWidth = 180
				maxHeight = 80
				text = "HIDE_UNOWNED_CONTENT"
				format = left
				orientation = LOWER_LEFT
				alwaysTransparent = no
			}

			buttonType = {
				name = "save"
				font = "malgun_goth_24"
				spriteType = "GFX_standard_button_large_211_40"
				buttonText = "SAVE"
				position = { x = -10 y = -156 }
				orientation = LOWER_LEFT
				clicksound = confirm_click
			}

			buttonType = {
				name = "next"
				font = "malgun_goth_24"
				spriteType = "GFX_standard_button_large_211_40"
				buttonText = "DONE"
				position = { x = -10 y = -108 }
				orientation = LOWER_LEFT
				clicksound = confirm_click
			}

			buttonType = {
				name = "back"
				font = "malgun_goth_24"
				spriteType = "GFX_standard_button_large_211_40"
				buttonText = "BACK"
				position = { x = -10 y = -60 }
				orientation = LOWER_LEFT
				actionShortCut = "cancel"
				clicksound = back_click
			}
		}
	}

	positionType = {
		name = "customize_species_view_menu_margin_bottom"
		position = { x = 0 y = 170 }
	}
	positionType = {
		name = "customize_species_view_menu_width"
		position = { x = 213 y = 0 }
	}

	positionType = {
		name = "customize_species_view_menu_section_size_1_buttons"
		position = { x = @menu_width y = 80 }
	}
	positionType = {
		name = "customize_species_view_menu_section_size_2_buttons"
		position = { x = @menu_width y = 90 }
	}
	positionType = {
		name = "customize_species_view_menu_section_size_3_buttons"
		position = { x = @menu_width y = 130 }
	}
	positionType = {
		name = "customize_species_view_menu_section_size_4_buttons"
		position = { x = @menu_width y = 150 }
	}
	positionType = {
		name = "customize_species_view_menu_section_size_5_buttons"
		position = { x = @menu_width y = 180 }
	}
	positionType = {
		name = "customize_species_view_menu_section_size_6_buttons"
		position = { x = @menu_width y = 198 }
	}
	positionType = {
		name = "customize_species_view_menu_section_size_7_buttons"
		position = { x = @menu_width y = 232 }
	}

	@menu_label_x = 0
	@menu_label_y = 5

	@menu_button_x = -2

	positionType = {
		name = "customize_species_view_menu_button_pos_1"
		position = { x = @menu_button_x y = 33 }
	}
	positionType = {
		name = "customize_species_view_menu_button_pos_2"
		position = { x = @menu_button_x y = 60 }
	}
	positionType = {
		name = "customize_species_view_menu_button_pos_3"
		position = { x = @menu_button_x y = 87 }
	}
	positionType = {
		name = "customize_species_view_menu_button_pos_4"
		position = { x = @menu_button_x y = 114 }
	}
	positionType = {
		name = "customize_species_view_menu_button_pos_5"
		position = { x = @menu_button_x y = 141 }
	}
	positionType = {
		name = "customize_species_view_menu_button_pos_6"
		position = { x = @menu_button_x y = 168 }
	}
	positionType = {
		name = "customize_species_view_menu_button_pos_7"
		position = { x = @menu_button_x y = 195 }
	}

	# Species
	containerWindowType = {
		name = "customize_species_view_menu_entry_background"

		instantTextBoxType = {
			name = "label"
			font = "malgun_goth_24"
			position = { x = @menu_label_x y = @menu_label_y }
			maxWidth = @menu_width
			text = "BACKGROUND"
			format = center
			alwaysTransparent = no
			text_color_code = "E"
		}

		buttonType = {
			name = "species_portrait"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "PORTRAIT"
			pdx_tooltip = "TOOLTIP_SETUP_APPEARANCE"
		}

		buttonType = {
			name = "empire_origin"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "ORIGIN"
			pdx_tooltip = "TOOLTIP_SETUP_ORIGIN"
		}

		buttonType = {
			name = "empire_ethics_and_government"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "ETHICS_AND_GOVERNMENT"
			pdx_tooltip = "TOOLTIP_SETUP_GOVERNMENT"
		}

		buttonType = {
			name = "species_traits"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "TRAITS"
			pdx_tooltip = "TOOLTIP_SETUP_TRAITS"
		}

		buttonType = {
			name = "species_name_list"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "CUSTOMIZE_NAME_LISTS"
			pdx_tooltip = "TOOLTIP_SETUP_EMPIRE_NAMELIST"
		}

		buttonType = {
			name = "species_name"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "SPECIES_NAME"
			pdx_tooltip = "TOOLTIP_SETUP_SPECIES_NAME"
		}
	}

	# Secondary species
	containerWindowType = {
		name = "customize_species_view_menu_entry_secondary_species"

		instantTextBoxType = {
			name = "label"
			font = "malgun_goth_24"
			position = { x = @menu_label_x y = @menu_label_y }
			maxWidth = @menu_width
			text = "SECONDARY_SPECIES"
			format = center
			alwaysTransparent = no
			text_color_code = "E"
		}

		buttonType = {
			name = "secondary_species_portrait"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "SECONDARY_SPECIES_PORTRAIT_short"
			pdx_tooltip = "TOOLTIP_SETUP_SECONDARY_SPECIES_APPEARANCE"
		}

		buttonType = {
			name = "secondary_species_name_list"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "SECONDARY_SPECIES_NAME_LISTS_short"
			pdx_tooltip = "TOOLTIP_SETUP_SECONDARY_SPECIES_NAMELIST"
		}

		buttonType = {
			name = "secondary_species_name"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "SECONDARY_SPECIES_NAME_short"
			pdx_tooltip = "TOOLTIP_SETUP_SECONDARY_SPECIES_NAME"
		}

		buttonType = {
			name = "secondary_species_traits"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "SECONDARY_SPECIES_TRAITS_short"
			pdx_tooltip = "TOOLTIP_SETUP_SECONDARY_SPECIES_TRAITS"
		}
	}

	# Empire
	containerWindowType = {
		name = "customize_species_view_menu_entry_empire"

		instantTextBoxType = {
			name = "label"
			font = "malgun_goth_24"
			position = { x = @menu_label_x y = @menu_label_y }
			maxWidth = @menu_width
			text = "EMPIRE"
			format = center
			alwaysTransparent = no
			text_color_code = "E"
		}

		buttonType = {
			name = "empire_advisor"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "EMPIRE_ADVISOR"
			pdx_tooltip = "TOOLTIP_SETUP_EMPIRE_ADVISOR"
		}

		buttonType = {
			name = "empire_flag"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "EMPIRE_FLAG"
			pdx_tooltip = "TOOLTIP_SETUP_FLAG"
		}

		buttonType = {
			name = "ship_gfx_culture"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "SHIPSET_LABEL"
			pdx_tooltip = "TOOLTIP_SETUP_SHIP_APPEARANCE"
		}
	}

	# Homeworld
	containerWindowType = {
		name = "customize_species_view_menu_entry_homeworld"

		instantTextBoxType = {
			name = "label"
			font = "malgun_goth_24"
			position = { x = @menu_label_x y = 0 }
			maxWidth = @menu_width
			text = "GOVERNMENT_VIEW_CAPITAL_LABEL"
			format = center
			alwaysTransparent = no
			text_color_code = "E"
		}

		buttonType = {
			name = "planet_class"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "NAME_AND_CLASS"
			pdx_tooltip = "TOOLTIP_SETUP_NAME_CLASS"
		}

		buttonType = {
			name = "planet_city_gfx_culture"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "CITY_GRAPHICS"
			pdx_tooltip = "TOOLTIP_SETUP_CITY_APPEARANCE"
		}
	}

	# Ruler
	containerWindowType = {
		name = "customize_species_view_menu_entry_ruler"

		instantTextBoxType = {
			name = "label"
			font = "malgun_goth_24"
			position = { x = @menu_label_x y = @menu_label_y }
			maxWidth = @menu_width
			text = "RULER"
			format = center
			alwaysTransparent = no
			text_color_code = "E"
		}

		buttonType = {
			name = "species_ruler"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "APPEARANCE"
			pdx_tooltip = "TOOLTIP_SETUP_RULER_APPEARANCE"
		}

		buttonType = {
			name = "ruler_traits"
			font = "cg_16b"
			spriteType = "GFX_standard_button_200_24"
			buttonText = "RULER_EDITOR_TRAITS"
			pdx_tooltip = "TOOLTIP_SETUP_RULER_TRAITS"
		}
	}
}
