guiTypes = {
	positionType = {
		name = "standard_dialog_button_center_position"
		position = { x = -87 y = -60 }
	}

	containerWindowType = {
		name = "standard_dialog"
		orientation = center
		origo = center
		moveable = yes
		position = { x = 0 y = -10 }
		size = { width = 480 height = 212 }

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_outliner_bg"
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_center_bg"
			position = { x = -275 y = 0 }
			alwaysTransparent = yes
			Orientation = "CENTER_UP"
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_center"
			position = { x = -12 y = 38 }
			alwaysTransparent = yes
		}

		buttonType = {
			name = "DeclineButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = -195 y = -60 }
			buttonText = "DIALOG_DECLINE"
			buttonFont = "malgun_goth_24"
			shortcut = "ESCAPE"
			actionShortCut = "cancel"
			clicksound = back_click
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = 20 y = -60 }
			buttonText = "DIALOG_AGREE"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			position = { x = 40 y = 20 }
			name = "title"
			font = "malgun_goth_24"
			borderSize = {x = 0 y = 0 }
			maxWidth = 400
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = center
		}

		instantTextBoxType = {
			position = { x = 25 y = 70 }
			name = "description"
			font = "cg_16b"
			borderSize = {x = 5 y = 5 }
			maxWidth = 420
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = centre
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "standard_dialog_ok"
		position = { x=-240 y=-116 }
		size = { width = 480 height = 212 }
		moveable = yes
		Orientation = center

		background = {
			name = "background"
			quadTextureSprite ="GFX_standard_dialog_bg"
			tooltip = ""
			tooltipText =""
			delayedTooltipText = ""
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= 155 y = 128  }
			Orientation = "UPPER_LEFT"
			buttonText = "DIALOG_AGREE"
			buttonFont = "malgun_goth_24"
			shortcut = "RETURN"
			actionShortcut = "accept"
			clicksound = "confirm_click"
		}

		buttonType = {
			name = "DeclineButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= 9999 y = 180  }
			Orientation = "UPPER_LEFT"
			buttonText = "DIALOG_DECLINE"
			buttonFont = "cg_16b"
			shortcut = "ESCAPE"
			actionShortcut = "cancel"
			clicksound = "back_click"
		}

		instantTextBoxType = {
			position = { x = 40 y = 40 }
			name = "title"
			font = "malgun_goth_24"
			borderSize = {x = 0 y = 0 }
			maxWidth = 400
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = centre
		}

		instantTextBoxType = {
			position = { x = 25 y = 80 }
			name = "description"
			font = "cg_16b"
			borderSize = {x = 5 y = 5 }
			maxWidth = 420
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = centre
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "reload_interface_dialog"
		size = { width = 480 height = 212 }
		moveable = yes
		origo = center
		orientation = center

		background = {
			name = "background"
			quadTextureSprite ="GFX_standard_dialog_bg"
		}

		buttonType = {
			name = "DeclineButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= 65 y = 128  }
			Orientation = "UPPER_LEFT"
			buttonText = "CANCEL"
			buttonFont = "malgun_goth_24"
			shortcut = "ESCAPE"
			actionShortcut = "cancel"
			clicksound = "back_click"
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= 249 y = 128  }
			Orientation = "UPPER_LEFT"
			buttonText = "RELOAD"
			buttonFont = "malgun_goth_24"
			shortcut = "RETURN"
			actionShortcut = "accept"
			clicksound = "confirm_click"
		}

		buttonType = {
			name = "OpenButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= 155 y = 75  }
			Orientation = "UPPER_LEFT"
			buttonText = "OPEN"
			buttonFont = "malgun_goth_24"
		}

		instantTextBoxType = {
			position = { x = 40 y = 30 }
			name = "title"
			font = "malgun_goth_24"
			borderSize = {x = 0 y = 0 }
			maxWidth = 400
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = centre
		}

		instantTextBoxType = {
			position = { x = 40 y = 55 }
			name = "description"
			font = "cg_16b"
			borderSize = {x = 5 y = 5 }
			maxWidth = 400
			maxHeight = 20
			text = ""
			orientation = "UPPER_CENTER"
			format = centre
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "message_window_dialog"
		size = { width = 480 height = 212 }
		moveable = yes
		origo = center
		orientation = center

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_outliner_bg"
		}

		buttonType = {
			name = "focus_on"
			orientation = upper_right
			position = { x = -40 y = 10 }
			quadTextureSprite = "GFX_fleetview_lock_focus"
			pdx_tooltip = "FOCUS_ON_TARGET_NOTIFICATION"
			shortcut = "q"
			actionShortcut = "focus_camera"
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_center_bg"
			position = { x = -280 y = -3 }
			alwaysTransparent = yes
			Orientation = "CENTER_UP"
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_center"
			position = { x = -16 y = 42 }
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = -83 y = -60 }
			buttonText = "MESSAGE_OK"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			name = "title"
			orientation = center_up
			position = { x = -200 y = 14 }
			font = "malgun_goth_24"
			text = ""
			format = center
			maxWidth = 400
			maxHeight = 20
			fixedSize = yes
		}

		instantTextBoxType = {
			name = "description"
			format = center
			orientation = center_up
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = 65 }
			font = "cg_16b"
			text = ""
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "diplo_message_dialog"
		size = { width = 480 height = 240 }
		moveable = yes
		origo = center
		orientation = center

		### header gfx ###

		background = {
			name = "background"
			#spriteType = "GFX_standard_dialog_bg"
			spriteType = "GFX_tile_outliner_bg"
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_center_bg"
			position = { x = -280 y = 00 }
			alwaysTransparent = yes
			Orientation = "CENTER_UP"
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_center"
			position = { x = -16 y = 42 }
		}

		### actor ###

		buttonType = {
			name = "actor_flag"
			quadTextureSprite = "GFX_empire_flag_64"
			position = { x = -238 y = 8 }
			orientation = center_up
		}

		instantTextBoxType = {
			name = "actor_name"
			maxWidth = 200
			fixedSize = yes
			maxHeight = 20
			position = { x = 10 y = 80 }
			font = "cg_16b"
			text = "empire name"
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "actor_type"
			maxWidth = 200
			maxHeight = 20
			position = { x = 10 y = 95 }
			font = "cg_16b"
			text = "empire type"
		}

		### recipient ###

		buttonType = {
			name = "recipient_flag"
			quadTextureSprite = "GFX_empire_flag_64"
			position = { x = 168 y = 8 }
			orientation = center_up
		}

		instantTextBoxType = {
			name = "recipient_name"
			format = right
			orientation = upper_right
			maxWidth = 200
			maxHeight = 20
			position = { x = -210 y = 80 }
			font = "cg_16b"
			text = "empire name"
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "recipient_type"
			format = right
			orientation = upper_right
			maxWidth = 200
			maxHeight = 20
			position = { x = -210 y = 95 }
			font = "cg_16b"
			text = "empire type"
		}


		iconType ={
			name ="diplomacy_icon_bg"
			quadTextureSprite = "GFX_diplomacy_icon_bg_ring" # Changed in code
			position = { x = 214 y = 64 }
			orientation = upper_left
			#scale = 0.9
		}

		iconType ={
			name ="diplomacy_icon"
			quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
			position = { x = 222 y = 72 }
			orientation = upper_left
			#scale = 0.9
		}

		###

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = -83 y = -60 }
			buttonText = "MESSAGE_OK"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			name = "title"
			format = center
			orientation = center_up
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = 20 }
			font = "malgun_goth_24"
			text = ""
		}

		instantTextBoxType = {
			name = "description"
			format = center
			orientation = center_up
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = 130 }
			font = "cg_16b"
			text = ""
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "diplo_voted_message_dialog_entry"
		size = { width = 400 height = 50 }

		backGround = {
			name = "background"
			quadTextureSprite = "GFX_advisor_frame"
		}

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

		instantTextBoxType={
			name = "name"
			font = "cg_16b"
			text = "NAME"
			position = { x = 50 y = 15 }
			maxWidth = 380
			maxHeight = 40
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		iconType = {
			name = "status"
			position = { x = -45 y = 5 }
			orientation = UPPER_RIGHT
			spriteType = "GFX_alliance_vote_status"
		}
	}

	containerWindowType = {
		name = "diplo_voted_message_dialog"
		size = { width = 480 height = 440 }
		moveable = yes
		origo = center
		orientation = center

		### header gfx ###

		background = {
			name = "background"
			#spriteType = "GFX_standard_dialog_bg"
			spriteType = "GFX_tile_outliner_bg"
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_center_bg"
			position = { x = -280 y = 00 }
			alwaysTransparent = yes
			Orientation = "CENTER_UP"
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_center"
			position = { x = -16 y = 42 }
		}

		### federation ###

		iconType = {
			name = "federation_flag"
			quadTextureSprite = "GFX_federation_flag_bg"
			position = { x = -233 y = 7 }
			orientation = center_up
			scale = 1
		}

		iconType = {
			name = "type_icon"
			quadTextureSprite = "GFX_default_federation"
			position = { x = -235 y = 12 }
			orientation = center_up
			scale = 1
		}

		instantTextBoxType = {
			name = "federation_name"
			maxWidth = 200
			fixedSize = yes
			maxHeight = 20
			position = { x = 10 y = 80 }
			font = "cg_16b"
			text = "empire name"
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "federation_type"
			maxWidth = 200
			maxHeight = 20
			position = { x = 10 y = 95 }
			font = "cg_16b"
			text = "empire type"
		}

		### actor ###

		buttonType = {
			name = "actor_flag"
			quadTextureSprite = "GFX_empire_flag_64"
			position = { x = 168 y = 8 }
			orientation = center_up
		}

		instantTextBoxType = {
			name = "actor_name"
			format = right
			orientation = upper_right
			maxWidth = 200
			maxHeight = 20
			position = { x = -210 y = 80 }
			font = "cg_16b"
			text = "empire name"
			text_color_code = "H"
		}

		instantTextBoxType = {
			name = "actor_type"
			format = right
			orientation = upper_right
			maxWidth = 200
			maxHeight = 20
			position = { x = -210 y = 95 }
			font = "cg_16b"
			text = "empire type"
		}


		iconType ={
			name ="diplomacy_icon_bg"
			quadTextureSprite = "GFX_diplomacy_icon_bg_ring" # Changed in code
			position = { x = 214 y = 64 }
			orientation = upper_left
			#scale = 0.9
		}

		iconType ={
			name ="diplomacy_icon"
			quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
			position = { x = 222 y = 72 }
			orientation = upper_left
			#scale = 0.9
		}

		###

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = -83 y = -60 }
			buttonText = "MESSAGE_OK"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			name = "title"
			format = center
			orientation = center_up
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = 20 }
			font = "malgun_goth_24"
			text = ""
		}

		instantTextBoxType = {
			name = "description"
			format = center
			orientation = center_up
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = 130 }
			font = "cg_16b"
			text = ""
			text_color_code = "E"
		}

		containerWindowType = {
			name = "votes"
			size = { width = 440 height = 170 }
			position = { x = 20 y = 210 }
			verticalScrollbar = "right_vertical_slider"

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

			gridBoxType = {
				name = "votes_grid"
				position = { x = 8 y = 5 }
				size = { width = 410 height = 160 }
				format = "UPPER_LEFT"
				slotsize = {
					width = 400
					height = 42
				}
				max_slots_horizontal = 1
			}
		}
	}

	positionType = {
		name = "quit_description_offset"
		position = { x = 0 y = -85 }
	}

	containerWindowType = {
		name = "standard_dialog_quit"
		orientation = center
		origo = center
		moveable = no
		size = { width = 100% height = 100% }

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

		buttonType = {
			name = "background"
			spriteType ="GFX_tile_outliner_bg"
			orientation = center
			size = { x = 480 y = 270 }
			position = { x = -240 y = -115 }
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_center_bg"
			orientation = center
			centerPosition = yes
			position = { x = 0 y = -81 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "empire_header_line"
			spriteType = "GFX_line_center"
			orientation = center
			centerPosition = yes
			position = { x = 0 y = -70 }
		}

		instantTextBoxType = {
			name = "info_rating"
			format = center
			orientation = center
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = -50 }
			font = "cg_16b"
			text = "QUIT_INFO_RATING"
			text_color_code = "E"
		}

		instantTextBoxType = {
			name = "thank_you_for_rating"
			format = center
			orientation = center
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = -10 }
			font = "cg_16b"
			text = ""
			text_color_code = "E"
		}

		buttonType = {
			name = "rating0"
			quadTextureSprite = "GFX_icon_rating"
			orientation = center
			position = { x = -158 y = -20 }
			buttonFont = "malgun_goth_24"
			frame = 4
		}

		buttonType = {
			name = "rating1"
			quadTextureSprite = "GFX_icon_rating"
			orientation = center
			position = { x = -74 y = -20 }
			buttonFont = "malgun_goth_24"
			frame = 3
		}

		buttonType = {
			name = "rating2"
			quadTextureSprite = "GFX_icon_rating"
			orientation = center
			position = { x = 10 y = -20 }
			buttonFont = "malgun_goth_24"
			frame = 2
		}

		buttonType = {
			name = "rating3"
			quadTextureSprite = "GFX_icon_rating"
			orientation = center
			position = { x = 94 y = -20 }
			buttonFont = "malgun_goth_24"
			frame = 1
		}

		buttonType = {
			name = "DeclineButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center
			position = { x = -175 y = 85 }
			buttonText = "CANCEL"
			buttonFont = "malgun_goth_24"
			shortcut = "ESCAPE"
			actionShortCut = "cancel"
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center
			position = { x = 9 y = 85 }
			buttonText = "QUIT_TITLE"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			name = "title"
			format = center
			orientation = center
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = -96 }
			font = "malgun_goth_24"
			text = ""
		}

		instantTextBoxType = {
			name = "description"
			format = center
			orientation = center
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = 58 }
			font = "cg_16b"
			text = ""
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "standard_dialog_quit_to_menu"
		orientation = center
		origo = center
		moveable = no
		size = { width = 100% height = 100% }

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

		buttonType = {
			name = "background"
			spriteType ="GFX_tile_outliner_bg"
			orientation = center
			size = { x = 480 y = 212 }
			position = { x = -240 y = -115 }
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_center_bg"
			orientation = center
			centerPosition = yes
			position = { x = 0 y = -81 }
			alwaysTransparent = yes
		}

		iconType = {
			name = "empire_header_line"
			spriteType = "GFX_line_center"
			orientation = center
			centerPosition = yes
			position = { x = 0 y = -70 }
		}

		buttonType = {
			name = "DeclineButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center
			position = { x = -175 y = 30 }
			buttonText = "CANCEL"
			buttonFont = "malgun_goth_24"
			shortcut = "ESCAPE"
			actionShortcut = "cancel"
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center
			position = { x = 9 y = 30 }
			buttonText = "MAIN_RESIGN"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			name = "title"
			format = center
			orientation = center
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = -96 }
			font = "malgun_goth_24"
			text = ""
		}

		instantTextBoxType = {
			name = "description"
			format = center
			orientation = center
			maxWidth = 420
			maxHeight = 20
			position = { x = -210 y = -40 }
			font = "cg_16b"
			text = ""
			text_color_code = "E"
		}
	}

	containerWindowType = {
		name = "sprite_dialog_with_close"
		orientation = center
		origo = center
		moveable = yes
		position = { x = 0 y = -10 }
		size = { width = 340 height = 362 }

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_outliner_bg"
		}

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_bg"
			position = { x = -12 y = -14 }
			alwaysTransparent = yes
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = 298 y = 14 }
			pdx_tooltip = "CLOSE_TITLE"
		}

		buttonType = {
			name = "DeclineButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = -165 y = -60 }
			buttonText = "DIALOG_DECLINE"
			buttonFont = "malgun_goth_24"
			shortcut = "ESCAPE"
			actionShortCut = "cancel"
			clicksound = back_click
		}

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			orientation = center_down
			position = { x = -4 y = -60 }
			buttonText = "DIALOG_AGREE"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}

		instantTextBoxType = {
			position = { x = 14 y = 8 }
			name = "title"
			font = "malgun_goth_24"
			borderSize = { x = 0 y = 0 }
			maxWidth = 400
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = left
		}

		instantTextBoxType = {
			position = { x = -46 y = 220 }
			name = "description"
			font = "cg_16b"
			borderSize = { x = 5 y = 5 }
			maxWidth = 420
			maxHeight = 20
			text = ""
			orientation = "UPPER_LEFT"
			format = centre
			text_color_code = "E"
		}

		iconType = {
			name = "picture"
			spriteType = "GFX_nullobject"
			orientation = center_up
			centerPosition = yes
			position = { x = 0 y = 132 }
		}
	}

	###################
	# LEADER LEVEL UP #
	###################

	containerWindowType = {
		name = "message_window_dialog_leader_level_up"
		size = { width = 480 height = 245 }
		moveable = yes
		origo = center
		orientation = center

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_outliner_bg"
		}

		# title

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_bg"
			position = { x = -100 y = 00 }
			alwaysTransparent = yes
			Orientation = "CENTER_UP"
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_center"
			position = { x = -16 y = 43 }
		}

		instantTextBoxType = {
			name = "title"
			format = center
			orientation = center_up
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = 20 }
			font = "malgun_goth_24"
			text = ""
		}

		#instantTextBoxType = {
		#	name = "description"
		#	format = center
		#	orientation = center_up
		#	maxWidth = 420
		#	maxHeight = 20
		#	position = { x = -210 y = 65 }
		#	font = "cg_16b"
		#	text = ""
		#	text_color_code = "E"
		#}

		buttonType = {
			name = "focus_on"
			orientation = upper_right
			position = { x = -40 y = 10 }
			quadTextureSprite = "GFX_fleetview_lock_focus"
			pdx_tooltip = "FOCUS_ON_LEADER"
			shortCut = "q"
			actionShortcut = "focus_camera"
		}

		# description

		containerWindowType = {
			name = "portrait_window"
			size = { width = 95 height = 111 }
			position = { x = 8 y = 69 }
			orientation = upper_left
			moveable = no
			clipping = yes

			background = {
				name = "portrait_frame"
				spriteType = "GFX_empty_green_frame"
			}

			buttonType = {
				name = "leader_type_bg"
				quadTextureSprite = "GFX_leader_bg_admiral"
				position = { x = 6 y = 7 }
				scale = 0.26
				alwaystransparent = yes
			}

			iconType = {
				name = "portrait"
				position = { x = -25 y = 7 }
				spriteType = "GFX_portrait_character"
				scale = 0.26
				alwaystransparent = yes
			}
		}

		instantTextBoxType = {
			name = "leader_title"
			font = "cg_16b"
			text = "LEADER_TITLE"
			position = { x = 110 y = 72 }
			maxWidth = 180
			maxHeight = 20
			format = left
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "leader_name"
			font = "cg_16b"
			text = "LEADER_NAME"
			position = { x = 110 y = 90 }
			maxWidth = 180
			maxHeight = 40
			format = left
			alwaysTransparent = yes
			text_color_code = "E"
		}

		iconType = {
			name = "leader_skill"
			spriteType = "GFX_leader_skill"
			frame = 3
			position = { x = 106 y = 112 }
		}

		OverlappingElementsBoxType = {
			name = "traits"
			position = { x = 108 y = 144 }
			size = { x = 156 y = 16 }
			format = left
		}

		instantTextBoxType = {
			name = "leader_status"
			font = "cg_16b"
			text = "LEADER_STATUS"
			position = { x = 288 y = 72 }
			maxWidth = 178
			maxHeight = 40
			format = right
			alwaysTransparent = yes
		}

		# agree button

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= -83 y = -60 }
			orientation = center_down
			buttonText = "MESSAGE_OK"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}
	}

	################
	# COMBAT STATS #
	################

	containerWindowType = {
		name = "message_window_dialog_combat_stats"
		size = { width = 480 height = 325 }
		moveable = yes
		origo = center
		orientation = center

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_outliner_bg"
		}

		# title

		iconType = {
			name = "hex_bg"
			spriteType = "GFX_hex_bg"
			position = { x = -100 y = 00 }
			alwaysTransparent = yes
			Orientation = "CENTER_UP"
		}

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_center"
			position = { x = -16 y = 43 }
		}

		instantTextBoxType = {
			name = "title"
			format = center
			orientation = center_up
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = 20 }
			font = "malgun_goth_24"
			text = ""
		}

		#buttonType = {
		#	name = "focus_on"
		#	orientation = upper_right
		#	position = { x = -40 y = 10 }
		#	quadTextureSprite = "GFX_fleetview_lock_focus"
		#	pdx_tooltip = "FOCUS_ON_TARGET_NOTIFICATION"
		#	shortCut = "q"
		#}

		# description

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

		instantTextBoxType = {
			name = "fleet_name"
			font = "cg_16b"
			text = "UIUIUI"
			format = center
			orientation = center_up
			maxWidth = 400
			maxHeight = 20
			position = { x = -200 y = 90 }
			alwaysTransparent = yes
		}

		@combat_stat_w = 64
		@combat_stat_h = 64

		containerWindowType = {
			name = "fleet_stats"
			size = { width = 256 height = 128 }
			position = { x = 0 y = 120 }
			orientation = center_up
			origo = center_up

			background = {
				name = "background"
				spriteType = "GFX_tiles_frame_extra_light"
				size = { x = 264 y = 136 }
			}

			# kinetic damage

			containerWindowType = {
				name = "combat_stat_damage_kinetic"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 0 y = 0 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_kinetic"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# energy damage

			containerWindowType = {
				name = "combat_stat_damage_energy"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 64 y = 0 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_energy"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# explosive damage

			containerWindowType = {
				name = "combat_stat_damage_explosive"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 128 y = 0 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_explosive"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# hit ratio

			containerWindowType = {
				name = "combat_stat_projectiles_hit"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 192 y = 0 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_projectiles_hit"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# missiles and strikecrafts shot down

			containerWindowType = {
				name = "combat_stat_damage_hitpoints"
				#name = "combat_stat_targetables_killed"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 0 y = 64 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_targetables_killed"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# damage to armor

			containerWindowType = {
				name = "combat_stat_damage_armor"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 64 y = 64 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_armor"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# damage to shields

			containerWindowType = {
				name = "combat_stat_damage_shields"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 128 y = 64 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_shields"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}

			# evasion ratio

			containerWindowType = {
				name = "combat_stat_projectiles_evaded"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 192 y = 64 }

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

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_projectiles_evaded"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 24 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "000"
					format = center
					maxWidth = 64
					maxHeight = 20
					position = { x = 0 y = 50 }
					alwaysTransparent = yes
				}
			}
		}

		# agree button

		buttonType = {
			name = "AgreeButton"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= -83 y = -64 }
			orientation = center_down
			buttonText = "MESSAGE_OK"
			buttonFont = "malgun_goth_24"
			clicksound = "confirmation"
			shortcut = "RETURN"
			actionShortcut = "accept"
		}
	}
}
