guiTypes = {

	containerWindowType = {
		name = "diplomacy_view_country_entry"
		position = { x=0 y=0 }
		size = { width=295 height=38 }

		background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
				alwaysTransparent = yes
			}

		buttonType ={
			name ="flag_button"
			quadTextureSprite = "GFX_empire_flag_32"
			position = { x= 2 y = 3 }
		}

		instantTextBoxType={
			name = "empire_name"
			font = "cg_16b"
			position = { x = 40 y = 10 }
			format = left
		}

		instantTextBoxType={
			name = "empire_score"
			font = "cg_16b"
			position = { x = -210 y = 10 }
			format = right
			text_color_code = "E"
			orientation = "UPPER_RIGHT"
		}
	}

	### INCOMING DIPLOMACY DEFAULT VIEW ###

	containerWindowType = {
		name = "incoming_diplomacy_view"
		orientation = center
		origo = center
		moveable = yes
		size = { width = 730 height = 545 }

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_large_bg"
		}

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

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_long"
			position = { x = 6 y = 22 }
		}

		instantTextBoxType = {
			name = "heading"
			font = "malgun_goth_24"
			position = { x = 20 y = 5 }
			maxWidth = 563
			maxHeight = 22
			fixedSize = yes
			alwaysTransparent = yes
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			orientation = "UPPER_RIGHT"
			position = { x = -42 y = 12 }
			shortcut = "ESCAPE"
			clicksound = "back_click"
			actionShortcut = "accept"
		}

		buttonType = {
			name = "focus_on"
			orientation = "UPPER_RIGHT"
			position = { x = -78 y = 12 }
			spriteType ="GFX_fleetview_focus"
			pdx_tooltip = "FOCUS_ON_SYSTEM"
		}

		### PORTRAIT ###

		containerWindowType = {
			name = "portrait_container"
			position = { x = 17 y = 45 }
			size = { width = 700 height = 255}
			clipping = yes

			iconType = {
				name = "portrait_room"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_empty_room"
				alwaysTransparent = yes
				scale = .73666
				position = { x = 0 y = 5}
			}
			
			iconType = {
				name = "portrait_character"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_character_without_room"
				alwaysTransparent = yes
				scale = .73666
				position = { x = 0 y = 5}
			}

			iconType = {
				name = "black_frame"
				spriteType = "GFX_diplomacy_portrait_shadow_frame"
				position = { x = -4 y = 0}
				alwaysTransparent = yes
				scale = .73666
			}

			iconType = {
				name = "stripes_1"
				spriteType = "GFX_diplomacy_stripes_2"
				alwaysTransparent = yes
				scale = .73666
			}

			iconType = {
				name = "city_frame"
				spriteType = "GFX_diplomacy_portrait_frame"
				position = { x = -6 y = -0 }
				alwaysTransparent = yes
				scale = .73666
			}
		}

		### EMPIRE INFO ###

		containerWindowType = {
			name = "empire_info"

			iconType = {
				name = "empire_info_bg"
				spriteType = "GFX_diplomacy_dark_fade_bg"
				position = { x = 30 y = 64 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "empire_name"
				font = "malgun_goth_24"
				text = "Kammarian Galactic Concordat"
				position = { x = 42 y = 70 }
				maxWidth = 450
				maxHeight = 16
				format = LEFT
				text_color_code = "E"
				fixedsize = yes
			}

			instantTextBoxType={
				name = "empire_government_type"
				font = "cg_16b"
				text = "Autocracy"
				position = { x = 42 y = 95	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
				text_color_code = "Y"
			}

			instantTextBoxType={
				name = "empire_personality_type"
				font = "cg_16b"
				text = "Despicable Neutrals"
				position = { x = 42 y = 112	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
			}

			OverlappingElementsBoxType = {
				name = "empire_ethics_icons"
				position = { x = 42 y = 138 }
				size = { x = 240 y = 30 }
				spacing = 2.0
				format = left
			}

			buttonType = {
				name = "empire_flag"
				quadTextureSprite = "GFX_empire_flag_128"
				position = { x = 25 y = 210 }
				orientation = UPPER_LEFT
				scale = .75
			}
		}



		### CONTENT ##

		containerWindowType = {
			name = "alliance_members"
			position = { x = 6 y = 470 }
			size = { width = 555 height = 200 }
			orientation = upper_left

			instantTextBoxType={
				name = "members"
				font = "cg_16b"
				position = { x = 0 y = 0 }
				format = left
				text = "ALLIANCE_MEMBERS"
			}

			smoothListBoxType = {
				name = "members_list"
				position = { x = 0 y = 30 }
				size = { x=500 y=100 }
				spacing = 4
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = yes
			}
		}

		containerWindowType = {
			name = "description_frame"
			position = { x = 16 y = 315 }
			size = { width = 700 height = 170 }
			orientation = upper_left

			background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "action_title"
				font = "malgun_goth_24"
				position = { x = 100 y = 15 }
				maxWidth = 500
				maxHeight = 20
				text = "TITLE"
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = left
				#alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "effects_text"
				font = "cg_16b"
				position = { x = 39 y = 105 }
				maxWidth = 60
				maxHeight = 100
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = right
				text = "EFFECTS"
				#alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "offer_description"
				font = "cg_16b"
				position = { x = 106 y = 105 }
				maxWidth = 544
				maxHeight = 150
				scrollbartype = "standardtext_slider"
			}

			buttonType = {
				name = "tts_button"
				position = { x = 671 y = 141 }
				spriteType = "GFX_button_tts_start"
				buttonFont = "cg_16b"
				shortCut = "t"
			}

			iconType ={
				name ="diplomacy_icon"
				quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
				position = { x = 55 y = 10 }
				#scale = 0.9
			}
		}

		instantTextBoxType={
			name = "alien_message"
			font = "cg_16b"
			position = { x = 70 y = 365 }
			maxWidth = 600
			maxHeight = 178
			fixedSize = yes
			format = left
			alwaysTransparent = no
			text_color_code = "L"

		}

		buttonType = {
			name = "confirm_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= -168 y = -60  }
			Orientation = "LOWER_RIGHT"
			font = "cg_16b"
		}

		buttonType = {
			name = "cancel_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 2 y = -60  }
			Orientation = "LOWER_LEFT"
			font = "cg_16b"
		}

		instantTextBoxType={
			name = "decline_cost"
			font = "cg_16b"
			format = left
			maxWidth = 540
			maxHeight = 178
			position = { x = 95 y = 655 }
			alwaysTransparent = yes
		}

		### STATS
		containerWindowType = {
			name = "country_diplomacy_stats"
			position = { x = 304 y = 74 }

			containerWindowType = {
				name = "relation_bg_large"
				size = { width = 155 height = 68 }

				position = { x = 245 y = 140 }

					background = {
						name = "leader_frame"
						spriteType = "GFX_tiles_dark_area_cut_8"
						# "GFX_planetview_topright_bg_small"
						
						alwaysTransparent = yes
					}
				}

			# attitude
			containerWindowType = {
				name = "attitude"
				position = { x = 250 y = 138 }
				size = { width = 220 height = 42 }
				clipping = no

				containerWindowType = {
				name = "relation_bg"
				size = { width = 210 height = 100% }

				position = { x = 0 y = 0 }

					#background = {
					#	name = "leader_frame"
					#	spriteType = "GFX_tiles_dark_area_cut_8"
					#	alwaysTransparent = yes
					#}
				}

				iconType = {
					name = "icon"
					quadTextureSprite = "GFX_diplomacy_opinion"
					scale = .9
					position = { x= 10 y = 9  }
				}

				#iconType = {
				#	name = "background"
				#	spriteType = "GFX_info_background_148"
				#	position = { x = 5 y = 5}
				#}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}

			containerWindowType = {
				name = "power"
				position = { x = 250 y = 168 }
				size = { width = 154 height = 42 }

				containerWindowType = {
				name = "relation_bg"
				size = { width = 210 height = 100% }

				position = { x = 0 y = 0 }

					#background = {
					#	name = "leader_frame"
					#	spriteType = "GFX_tiles_dark_area_cut_8"
					#	alwaysTransparent = yes
					#}
				}

				#iconType = {
				#	name = "background"
				#	spriteType = "GFX_info_background_148"
				#	position = { x = 5 y = 5}
				#}

				iconType = {
					name = "icon"
					spriteType = "GFX_relative_power_icon"
					position = { x= 12 y = 9  }
					alwaysTransparent = yes
					scale = .9
				}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}
		}
	}

	### INCOMING DECLARE WAR AND OFFER PEACE VIEW ###

	containerWindowType = {
		name = "incoming_diplomacy_view_action_war_peace"
		orientation = center
		origo = center
		moveable = yes
		size = { width = 749 height = 688 }

		background = {
			name = "background"
			quadTextureSprite = "GFX_tile_large_bg"
		}

		@left_column_x = 18
		@left_column_x_inner = 30
		@left_column_width = 400
		@left_column_width_inner = 370

		@right_column_x = -326
		@right_column_x_inner = -314
		@right_column_width = 308
		@right_column_width_inner = 280

		@column_y = 375
		@column_height = 255
		@column_header_y = 330
		@column_header_height = 40

		@response_button_y = -58
		@response_button_left_x = 6

		containerWindowType = {
			name = "country_diplomacy_stats"
			position = { x = 304 y = 74 }
		}

		### PORTRAIT ###

		@declare_war_portrait_scale = 0.75

		containerWindowType = {
			name = "portrait_container"
			position = { x = 18 y = 60 }
			size = { width = 714 height = 341 }
			moveable = no
			clipping = yes

			iconType = {
				name = "portrait_room"
				position = { x = 0 y = 0 }
				quadTextureSprite = "GFX_portrait_gamesetup_mask_empty_room"
				scale = @declare_war_portrait_scale
			}
			
			iconType = {
				name = "portrait_character"
				position = { x = 0 y = 0 }
				quadTextureSprite = "GFX_portrait_gamesetup_mask_character_without_room"
				scale = @declare_war_portrait_scale
			}

			iconType = {
				name = "black_frame"
				spriteType = "GFX_diplomacy_portrait_shadow_frame"
				position = { x = -4 y = 0 }
				alwaysTransparent = yes
				scale = @declare_war_portrait_scale
			}

			iconType = {
				name = "stripes_1"
				spriteType = "GFX_diplomacy_stripes_2"
				alwaysTransparent = yes
				scale = @declare_war_portrait_scale
			}

			iconType = {
				name = "city_frame"
				spriteType = "GFX_diplomacy_portrait_frame"
				position = { x = -6 y = 0 }
				alwaysTransparent = yes
				scale = @declare_war_portrait_scale
			}
		}

		### EMPIRE INFO ###

		containerWindowType = {
			name = "empire_info"
			position = { x = 0 y = 20 }

			iconType = {
				name = "empire_info_bg"
				spriteType = "GFX_diplomacy_dark_fade_bg"
				position = { x = 33 y = 64 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "empire_name"
				font = "malgun_goth_24"
				text = "Kammarian Galactic Concordat"
				position = { x = 45 y = 70 }
				maxWidth = 450
				maxHeight = 16
				format = LEFT
				text_color_code = "E"
				fixedsize = yes
			}

			instantTextBoxType={
				name = "empire_government_type"
				font = "cg_16b"
				text = "Autocracy"
				position = { x = 45 y = 95	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
				text_color_code = "Y"
			}

			instantTextBoxType={
				name = "empire_personality_type"
				font = "cg_16b"
				text = "Despicable Neutrals"
				position = { x = 45 y = 112	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
			}

			OverlappingElementsBoxType = {
				name = "empire_ethics_icons"
				position = { x = 45 y = 138 }
				size = { x = 240 y = 30 }
				spacing = 2.0
				format = left
			}

			buttonType = {
				name = "empire_flag"
				quadTextureSprite = "GFX_empire_flag_64"
				position = { x = 25 y = 210 }
				orientation = UPPER_LEFT
			}
		}

		buttonType = {
			name = "close"
			orientation = "UPPER_RIGHT"
			position = { x = -45 y = 15 }
			quadTextureSprite = "GFX_close"
			clicksound = "back_click"
			shortcut = "ESCAPE"
		}

		buttonType = {
			name = "focus_on"
			orientation = "UPPER_RIGHT"
			position = { x = -80 y = 15 }
			spriteType ="GFX_fleetview_focus"
			pdx_tooltip = "FOCUS_ON_SYSTEM"
		}

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

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_long"
			position = { x = 12 y = 29 }
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "description_frame"
			position = { x = -999 y = 480 }
			size = { width = 555 height = 200 }
			orientation = upper_left

			background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
				#alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "action_title"
				font = "malgun_goth_24"
				position = { x = 100 y = 15 }
				maxWidth = 500
				maxHeight = 20
				text = "TITLE"
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = left
			}

			instantTextBoxType = {
				name = "offer_description"
				font = "cg_16b"
				position = { x = 10 y = 10 }
				maxWidth = 520
				maxHeight = 200
				alwaysTransparent = yes
				scrollbartype = "standardtext_slider"
			}

			iconType = {
				name = "diplomacy_icon"
				quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
				position = { x = 55 y = 10 }
			}
		}

		# Not used for this window
		containerWindowType = {
			name = "alliance_members"
			position = { x = 6 y = 470 }
			size = { width = 555 height = 200 }
			orientation = upper_left

			instantTextBoxType={
				name = "members"
				font = "cg_16b"
				position = { x = 0 y = 0 }
				format = left
				text = "ALLIANCE_MEMBERS"
			}

			smoothListBoxType = {
				name = "members_list"
				position = { x = 0 y = 30 }
				size = { x=500 y=100 }
				spacing = 4
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = yes
			}
		}

		instantTextBoxType={
			name = "heading"
			font = "malgun_goth_24"
			position = { x = 20 y = 10 }
			maxWidth = 563
			maxHeight = 22
			fixedSize = yes
			format = left
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "background_window"
			size = { width = @left_column_width height = @column_header_height }
			position = { x = @left_column_x y = @column_header_y }

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

		instantTextBoxType={
			name = "header"
			font = "malgun_goth_24"
			position = { x = @left_column_x_inner y = @column_header_y }
			maxWidth = @left_column_width_inner
			maxHeight = @column_header_height
			fixedSize = yes
			vertical_alignment = center
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "alien_message_background"
			size = { width = @left_column_width height = @column_height }
			position = { x = @left_column_x y = @column_y }

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

		instantTextBoxType={
			name = "alien_message"
			font = "cg_16b"
			position = { x = @left_column_x_inner y = 390 }
			maxWidth = @left_column_width_inner
			maxHeight = 230
			format = left
			scrollbartype = "standardtext_slider"
		}

		buttonType = {
			name = "confirm_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = -173 y = @response_button_y  }
			orientation = lower_right
			font = "cg_16b"
		}

		buttonType = {
			name = "cancel_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = @response_button_left_x y = @response_button_y  }
			Orientation = "UPPER_LEFT"
			font = "cg_16b"
			orientation = lower_left
		}

		buttonType = {
			name = "set_war_goal"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = @response_button_left_x y = @response_button_y  }
			Orientation = "UPPER_LEFT"
			font = "cg_16b"
			orientation = lower_left
			buttontext = "SET_WAR_GOAL"
		}

		instantTextBoxType={
			name = "decline_cost"
			font = "cg_16b"
			format = left
			maxWidth = 540
			maxHeight = 178
			position = { x = 180 y = 650 }
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "war_goal_background"
			size = { width = @right_column_width height = @column_header_height }
			position = { x = @right_column_x y = @column_header_y }
			orientation = upper_right

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

		instantTextBoxType={
			name = "war_goal_label"
			font = "malgun_goth_24"
			format = left
			maxWidth = @right_column_width_inner
			maxHeight = @column_header_height
			position = { x = @right_column_x_inner y = @column_header_y }
			text = "WAR_GOAL"
			text_color_code = "Y"
			alwaysTransparent = yes
			orientation = upper_right
			vertical_alignment = center
		}

		# Duplicated in diplomacy_voting_view_action_declare_war
		containerWindowType = {
			name = "war_goal"
			orientation = upper_right
			position = { x = @right_column_x y = @column_y }
			size = { width = @right_column_width height = @column_height }

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

			instantTextBoxType={
				name = "war_goal_name"
				position = { x = 43 y = 0 }
				maxWidth = 221
				maxHeight = 42
				fixedSize = yes
				font = "malgun_goth_24"
				multiline = no
				vertical_alignment = center
				format = center
			}

			iconType = {
				name = "war_goal_icon"
				position = { x = 25 y = 25 }
				centerPosition = yes
				spriteType = "GFX_alliance_vote_status"
			}

			instantTextBoxType={
				name = "war_goal_desc"
				position = { x = 10 y = 50 }
				maxWidth = @right_column_width_inner
				maxHeight = 190
				font = "cg_16b"
				scrollbartype = "standardtext_slider"
			}
		}
	}

	containerWindowType = {
		name = "incoming_diplomacy_view_action_trade_offer"
		orientation = center
		origo = center
		moveable = yes
		size = { width = 990 height = 680 }

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_large_bg"
		}

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

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_long"
			position = { x = 6 y = 22 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "heading"
			font = "malgun_goth_24"
			position = { x = 20 y = 5 }
			maxWidth = 563
			maxHeight = 22
			fixedSize = yes
			alwaysTransparent = yes
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			orientation = "UPPER_RIGHT"
			position = { x = -42 y = 12 }
			shortcut = "ESCAPE"
			clicksound = "back_click"
			actionShortcut = "cancel"
		}

		buttonType = {
			name = "focus_on"
			orientation = "UPPER_RIGHT"
			position = { x = -78 y = 12 }
			spriteType ="GFX_fleetview_focus"
			pdx_tooltip = "FOCUS_ON_SYSTEM"
		}

		### PORTRAIT ###

		containerWindowType = {
			name = "portrait_container"
			position = { x = 17 y = 45 }
			size = { width = 964 height = 350 }
			clipping = yes

			iconType = {
				name = "portrait_room"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_empty_room"
				alwaysTransparent = yes
			}

			iconType = {
				name = "portrait_character"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_character_without_room"
				alwaysTransparent = yes
			}

			iconType = {
				name = "black_frame"
				spriteType = "GFX_diplomacy_portrait_shadow_frame"
				position = { x = -4 y = -5}
				alwaysTransparent = yes
			}

			iconType = {
				name = "stripes_1"
				spriteType = "GFX_diplomacy_stripes_2"
				alwaysTransparent = yes
			}

			iconType = {
				name = "city_frame"
				spriteType = "GFX_diplomacy_portrait_frame"
				position = { x = -6 y = -5 }
				alwaysTransparent = yes
			}
		}

		### EMPIRE INFO ###

		containerWindowType = {
			name = "empire_info"

			iconType = {
				name = "empire_info_bg"
				spriteType = "GFX_diplomacy_dark_fade_bg"
				position = { x = 33 y = 64 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "empire_name"
				font = "malgun_goth_24"
				text = "Kammarian Galactic Concordat"
				position = { x = 45 y = 70 }
				maxWidth = 450
				maxHeight = 16
				format = LEFT
				text_color_code = "E"
				fixedsize = yes
			}

			instantTextBoxType={
				name = "empire_government_type"
				font = "cg_16b"
				text = "Autocracy"
				position = { x = 45 y = 95	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
				text_color_code = "Y"
			}

			instantTextBoxType={
				name = "empire_personality_type"
				font = "cg_16b"
				text = "Despicable Neutrals"
				position = { x = 45 y = 112	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
			}

			OverlappingElementsBoxType = {
				name = "empire_ethics_icons"
				position = { x = 45 y = 138 }
				size = { x = 240 y = 30 }
				spacing = 2.0
				format = left
			}

			buttonType = {
				name = "empire_flag"
				quadTextureSprite = "GFX_empire_flag_128"
				position = { x = 25 y = 235 }
				orientation = UPPER_LEFT
			}
		}

		### STATS
		containerWindowType = {
			name = "country_diplomacy_stats"
			position = { x = 554 y = 154 }

			containerWindowType = {
				name = "relation_bg_large"
				size = { width = 155 height = 68 }

				position = { x = 245 y = 140 }

					background = {
						name = "leader_frame"
						spriteType = "GFX_tiles_dark_area_cut_8"
						# "GFX_planetview_topright_bg_small"

						alwaysTransparent = yes
					}
				}

			# attitude
			containerWindowType = {
				name = "attitude"
				position = { x = 250 y = 138 }
				size = { width = 220 height = 42 }
				clipping = no

				containerWindowType = {
					name = "relation_bg"
					size = { width = 210 height = 100% }
					position = { x = 0 y = 0 }
				}

				iconType = {
					name = "icon"
					quadTextureSprite = "GFX_diplomacy_opinion"
					scale = .9
					position = { x= 10 y = 9  }
				}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}

			# relative power
			containerWindowType = {
				name = "power"
				position = { x = 250 y = 168 }
				size = { width = 154 height = 42 }

				containerWindowType = {
					name = "relation_bg"
					size = { width = 210 height = 100% }

					position = { x = 0 y = 0 }
				}

				iconType = {
					name = "icon"
					spriteType = "GFX_relative_power_icon"
					position = { x= 12 y = 9  }
					alwaysTransparent = yes
					scale = .9
				}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}
		}

		### CONTENT ###

		containerWindowType = {
			name = "description_frame"
			position = { x = 16 y = 460 }
			size = { width = 555 height = 160 }
			orientation = upper_left

			background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
				#alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "offer_description"
				font = "cg_16b"
				position = { x = 10 y = 10 }
				maxWidth = 520
				maxHeight = 150
				alwaysTransparent = yes
				scrollbartype = "standardtext_slider"
			}

			instantTextBoxType={
				name = "action_title"
				font = "malgun_goth_24"
				position = { x = 70 y = 20 }
				maxWidth = 500
				maxHeight = 20
				text = "TITLE"
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = left
			}

			iconType = {
				name ="diplomacy_icon"
				quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
				position = { x = 24 y = 15 }
			}
		}

		containerWindowType = {
			name = "trade_side_0"
			position = { x = 16 y = 440 }
			size = { width = 474 height = 160 }
			orientation = upper_left

			containerWindowType = {
				name = "trade_side_title_background_window"
				position = { x = 0 y = 0 }
				size = { width = 474 height = 20 }

				background = {
					name = "trade_side_title_background"
					quadTextureSprite = "GFX_tiles_dark_area_cut_8"
					alwaysTransparent = yes
				}
			}

			instantTextBoxType={
				name = "title"
				font = "cg_16b"
				position = { x = 10 y = 2 }
				maxWidth = 464
				maxHeight = 20
				alwaysTransparent = yes
				scrollbartype = "standardtext_slider"
				format = center
			}

			containerWindowType = {
				name = "trade_side_items_background_window"
				position = { x = 0 y = 25 }
				size = { width = 474 height = 155 }

				background = {
					name = "trade_side_items_background"
					quadTextureSprite = "GFX_tiles_dark_area_cut_8"
					alwaysTransparent = yes
				}
			}

			smoothListBoxType = {
				name = "items"
				position = { x = 5 y = 30 }
				size = { x = 454 y = 145 }
				spacing = 4
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = no
			}
		}

		containerWindowType = {
			name = "trade_side_1"
			position = { x = 500 y = 440 }
			size = { width = 474 height = 160 }
			orientation = upper_left

			containerWindowType = {
				name = "trade_side_title_window"
				position = { x = 0 y = 0 }
				size = { width = 474 height = 20 }

				background = {
					name = "alien_message_background"
					quadTextureSprite = "GFX_tiles_dark_area_cut_8"
					alwaysTransparent = yes
				}
			}

			instantTextBoxType={
				name = "title"
				font = "cg_16b"
				position = { x = 10 y = 2 }
				maxWidth = 464
				maxHeight = 150
				alwaysTransparent = yes
				scrollbartype = "standardtext_slider"
				format = center
			}

			containerWindowType = {
				name = "trade_side_items_background_window"
				position = { x = 0 y = 25 }
				size = { width = 474 height = 155 }

				background = {
					name = "trade_side_items_background"
					quadTextureSprite = "GFX_tiles_dark_area_cut_8"
					alwaysTransparent = yes
				}
			}

			smoothListBoxType = {
				name = "items"
				position = { x = 5 y = 30 }
				size = { x = 454 y = 145 }
				spacing = 4
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = no
			}
		}

		containerWindowType = {
			name = "alliance_members"
			position = { x = 6 y = 470 }
			size = { width = 555 height = 200 }
			orientation = upper_left

			instantTextBoxType={
				name = "members"
				font = "cg_16b"
				position = { x = 0 y = 0 }
				format = left
				text = "ALLIANCE_MEMBERS"
			}

			smoothListBoxType = {
				name = "members_list"
				position = { x = 0 y = 30 }
				size = { x=500 y=100 }
				spacing = 4
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = yes
			}
		}

		containerWindowType = {
			name = "alien_message_background_window"
			position = { x = 16 y = 395 }
			size = { width = 958 height = 40 }

			background = {
				name = "alien_message_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				alwaysTransparent = yes
			}
		}

		instantTextBoxType={
			name = "alien_message"
			font = "cg_16b"
			position = { x = 21 y = 400 }
			maxWidth = 948
			maxHeight = 33
			fixedSize = yes
			format = center
			vertical_alignment = center
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "trade_deal_length_background_window"
			position = { x = 216 y = 630 }
			size = { width = 570 height = 40 }

			background = {
				name = "trade_deal_length_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				alwaysTransparent = yes
			}
		}

		instantTextBoxType={
			name = "deal_length"
			font = "cg_16b"
			position = { x = 21 y = 635 }
			maxWidth = 948
			maxHeight = 30
			fixedSize = yes
			format = center
			vertical_alignment = center
			alwaysTransparent = yes
			text = "TRADE_DEAL_LENGTH"
		}

		buttonType = {
			name = "confirm_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= -170 y = -60  }
			Orientation = "LOWER_RIGHT"
			font = "cg_16b"
			actionShortcut = "accept"
		}

		buttonType = {
			name = "cancel_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 2 y = -60  }
			Orientation = "LOWER_LEFT"
			font = "cg_16b"
		}

		instantTextBoxType={
			name = "decline_cost"
			font = "cg_16b"
			format = left
			maxWidth = 540
			maxHeight = 178
			position = { x = 95 y = 655 }
			alwaysTransparent = yes
		}
	}

	containerWindowType = {
		name = "incoming_diplomacy_view_action_agreement_proposal"
		orientation = center
		origo = center
		moveable = yes
		size = { width = 990 height = 680 }

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_large_bg"
		}

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

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_long"
			position = { x = 6 y = 22 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "heading"
			font = "malgun_goth_24"
			position = { x = 20 y = 5 }
			maxWidth = 563
			maxHeight = 22
			fixedSize = yes
			alwaysTransparent = yes
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			orientation = "UPPER_RIGHT"
			position = { x = -42 y = 12 }
			shortcut = "ESCAPE"
			clicksound = "back_click"
			actionShortcut = "cancel"
		}

		buttonType = {
			name = "focus_on"
			orientation = "UPPER_RIGHT"
			position = { x = -78 y = 12 }
			spriteType ="GFX_fleetview_focus"
			pdx_tooltip = "FOCUS_ON_SYSTEM"
		}

		### PORTRAIT ###

		containerWindowType = {
			name = "portrait_container"
			position = { x = 14 y = 50 }
			size = { width = 960 height = 350 }
			clipping = yes
			
			iconType = {
				name = "portrait_room"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_empty_room"
				alwaysTransparent = yes
				scale = 1.008
			}

			iconType = {
				name = "portrait_character"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_character_without_room"
				alwaysTransparent = yes
				scale = 1.008
			}

			iconType = {
				name = "black_frame"
				spriteType = "GFX_diplomacy_portrait_shadow_frame"
				position = { x = -4 y = -5}
				alwaysTransparent = yes
				scale = 1.008
			}

			iconType = {
				name = "stripes_1"
				spriteType = "GFX_diplomacy_stripes_2"
				alwaysTransparent = yes
				scale = 1.008
			}

			iconType = {
				name = "city_frame"
				spriteType = "GFX_diplomacy_portrait_frame"
				position = { x = -6 y = -5 }
				alwaysTransparent = yes
				scale = 1.008
			}
		}

		### EMPIRE INFO ###

		containerWindowType = {
			name = "empire_info"

			iconType = {
				name = "empire_info_bg"
				spriteType = "GFX_diplomacy_dark_fade_bg"
				position = { x = 28 y = 68 }
			}

			instantTextBoxType={
				name = "empire_name"
				font = "malgun_goth_24"
				text = "Kammarian Galactic Concordat"
				position = { x = 36 y = 70 }
				maxWidth = 450
				maxHeight = 16
				format = LEFT
				text_color_code = "E"
				fixedsize = yes
			}

			instantTextBoxType={
				name = "empire_government_type"
				font = "cg_16b"
				text = "Autocracy"
				position = { x = 36 y = 103	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
				text_color_code = "Y"
			}

			instantTextBoxType={
				name = "empire_personality_type"
				font = "cg_16b"
				text = "Despicable Neutrals"
				position = { x = 36 y = 120	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
			}

			OverlappingElementsBoxType = {
				name = "empire_ethics_icons"
				position = { x = 36 y = 148 }
				size = { x = 240 y = 30 }
				spacing = 2.0
				format = left
			}

			buttonType = {
				name = "empire_flag"
				quadTextureSprite = "GFX_empire_flag_128"
				position = { x = 18 y = 246 }
				orientation = UPPER_LEFT
			}
		}

		### STATS
		containerWindowType = {
			name = "country_diplomacy_stats"
			position = { x = 562 y = 164 }

			containerWindowType = {
				name = "relation_bg_large"
				size = { width = 155 height = 68 }

				position = { x = 245 y = 140 }

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

			# attitude
			containerWindowType = {
				name = "attitude"
				position = { x = 250 y = 138 }
				size = { width = 220 height = 42 }
				clipping = no

				containerWindowType = {
					name = "relation_bg"
					size = { width = 210 height = 100% }
					position = { x = 0 y = 0 }
				}

				iconType = {
					name = "icon"
					quadTextureSprite = "GFX_diplomacy_opinion"
					scale = .9
					position = { x= 10 y = 9  }
				}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}

			# relative power
			containerWindowType = {
				name = "power"
				position = { x = 250 y = 168 }
				size = { width = 154 height = 42 }

				containerWindowType = {
					name = "relation_bg"
					size = { width = 210 height = 100% }

					position = { x = 0 y = 0 }
				}

				iconType = {
					name = "icon"
					spriteType = "GFX_relative_power_icon"
					position = { x= 12 y = 9  }
					alwaysTransparent = yes
					scale = .9
				}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}
		}

		### CONTENT ###
		containerWindowType = {
			name = "description_frame"
			position = { x = 16 y = 460 }
			size = { width = 555 height = 160 }
			orientation = upper_left

			background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
			}

			instantTextBoxType={
				name = "action_title"
				font = "malgun_goth_24"
				position = { x = 70 y = 20 }
				maxWidth = 500
				maxHeight = 20
				text = "TITLE"
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = left
			}

			instantTextBoxType={
				name = "offer_description"
				font = "cg_16b"
				position = { x = 10 y = 10 }
				maxWidth = 520
				maxHeight = 150
				alwaysTransparent = yes
				scrollbartype = "standardtext_slider"
			}

			iconType ={
				name ="diplomacy_icon"
				quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
				position = { x = 24 y = 15 }
			}
		}		

		containerWindowType = {
			name = "alliance_members"
			position = { x = 6 y = 470 }
			size = { width = 555 height = 200 }
			orientation = upper_left

			instantTextBoxType={
				name = "members"
				font = "cg_16b"
				position = { x = 0 y = 0 }
				format = left
				text = "ALLIANCE_MEMBERS"
			}

			smoothListBoxType = {
				name = "members_list"
				position = { x = 0 y = 30 }
				size = { x=500 y=100 }
				spacing = 4
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = yes
			}
		}

		containerWindowType = {
			name = "alien_message_background_window"
			position = { x = 14 y = 398 }
			size = { width = 960 height = 40 }

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

		instantTextBoxType={
			name = "alien_message"
			font = "cg_16b"
			position = { x = 29 y = 396 }
			maxWidth = 930
			maxHeight = 40
			format = center
			vertical_alignment = center
		}

		buttonType = {
			name = "confirm_button"
			quadTextureSprite = "GFX_standard_button_200_34_button"
			position = { x= -228 y = -60 }
			Orientation = "LOWER_RIGHT"
			font = "cg_16b"
			actionShortcut = "accept"
		}

		buttonType = {
			name = "go_to_agreement_button"
			quadTextureSprite = "GFX_button_animated_265_34"
			position = { x = 350 y = -60 }
			Orientation = "LOWER_LEFT"
			font = "cg_16b"
		}

		buttonType = {
			name = "cancel_button"
			quadTextureSprite = "GFX_standard_button_200_34_button"
			position = { x = 2 y = -60  }
			Orientation = "LOWER_LEFT"
			font = "cg_16b"
		}

		instantTextBoxType={
			name = "decline_cost"
			font = "cg_16b"
			format = right
			maxWidth = 50
			maxHeight = 20
			position = { x = 152 y = -39 }
			Orientation = "LOWER_LEFT"
		}

		# Proposed terms
		containerWindowType = {
			name = "proposed_terms_container"
			position = { x = 14 y = 444 }
			size = { width = 960 height = 180 }

			# Subject type
			containerWindowType = {
				name = "preset_type_container"
				position = { x = 0 y = 0 }
				size = { width = 960 height = 180 }

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

				iconType = {
					name = "agreement_preset_icon"
					spriteType = "GFX_pink_box"
					position = { x = 105 y = 56 }
					centerPosition = yes
				}

				iconType = { 
					name = "line_mirrored"
					spriteType = "GFX_hex_bg_mirrored"
					position = { x = 0 y = 88 }
				}

				instantTextBoxType = {
					name = "agreement_preset_text"
					font = "malgun_goth_24"
					text = "MY COOL PRESET"
					position = { x = 9 y = 92 }
					vertical_alignment = center
					maxWidth = 192
					maxHeight = 40
					format = center
				}

				iconType = {
					name = "line_title"
					spriteType = "GFX_header_line_mirrored"
					position = { x = 15 y = 127 }
					scale = 0.8
				}
				
				instantTextBoxType = {
					name = "title"
					position = { x = 229 y = 18 }
					text = "xenos_ui_resources"
					font = "cg_16b"
					maxWidth = 356
					maxHeight = 20
					format = LEFT
				}
			}

			# Resource contribution
			containerWindowType = {
				name = "resource_terms_grid_window"
				position = { x = 220 y = 44 }
				size = { width = 305 height = 131 }
				verticalScrollbar = "right_vertical_slider"
				background = {
					name = "background"
					spriteType = "GFX_invisible"
				}

				### This is defined in galaxy_view and affects more than once instance. Not ideal maybe.
				## When that issue has been fixed the slot count should be changed to 2 so it's a 2x2 grid.
				gridBoxType = {
					name = "resource_terms_grid"
					position = { x = 0 y = 0 }
					size = { width = 300 height = -5 }
					slotSize = { width = 148 height = 48 }
					max_slots_horizontal = 2
					format = "UPPER_LEFT"
				}
			}

			# Discrete terms
			containerWindowType = {
				name = "discrete_terms_grid_window"
				position = { x = 540 y = 12 }
				size = { width = 415 height = -5 }
				verticalScrollbar = "right_vertical_slider"
				background = {
					name = "background"
					spriteType = "GFX_invisible"
				}

				gridBoxType = {
					name = "discrete_terms_grid"
					position = { x = 0 y = 0 }
					size = { width = 400 height = -10 }
					slotSize = { width = 200 height = 40 }
					max_slots_horizontal = 2
					format = "UPPER_LEFT"
				}
			}
		}
	}

	containerWindowType = {
		name = "trade_description_module_item"
		size = { width = 0 height = 16 }

		instantTextBoxType={
			name = "text"
			font = "cg_16b"
			format = left
			maxWidth = 320
			maxHeight = 24
		}
	}

	### FEDERATION INVITATION VIEW ###
	containerWindowType = {
		name = "incoming_diplomacy_view_invite_to_federation"
		orientation = center
		origo = center
		moveable = yes
		size = { width = 730 height = 690 }

		background = {
			name = "background"
			quadTextureSprite ="GFX_tile_large_bg"
		}

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

		iconType = {
			name = "empire_header_line"
			quadTextureSprite = "GFX_line_long"
			position = { x = 6 y = 22 }
		}

		instantTextBoxType = {
			name = "heading"
			font = "malgun_goth_24"
			position = { x = 20 y = 5 }
			maxWidth = 563
			maxHeight = 22
			fixedSize = yes
			alwaysTransparent = yes
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			orientation = "UPPER_RIGHT"
			position = { x = -42 y = 12 }
			shortcut = "ESCAPE"
			clicksound = "back_click"
			actionShortcut = "accept"
		}

		buttonType = {
			name = "focus_on"
			orientation = "UPPER_RIGHT"
			position = { x = -78 y = 12 }
			spriteType ="GFX_fleetview_focus"
			pdx_tooltip = "FOCUS_ON_SYSTEM"
		}

		### PORTRAIT ###

		containerWindowType = {
			name = "portrait_container"
			position = { x = 17 y = 45 }
			size = { width = 700 height = 255}
			clipping = yes
			
			iconType = {
				name = "portrait_room"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_empty_room"
				alwaysTransparent = yes
				scale = .73666
				position = { x = 0 y = 5}
			}

			iconType = {
				name = "portrait_character"
				quadTextureSprite = "GFX_portrait_gamesetup_mask_character_without_room"
				alwaysTransparent = yes
				scale = .73666
				position = { x = 0 y = 5}
			}

			iconType = {
				name = "black_frame"
				spriteType = "GFX_diplomacy_portrait_shadow_frame"
				position = { x = -4 y = 0}
				alwaysTransparent = yes
				scale = .73666
			}

			iconType = {
				name = "stripes_1"
				spriteType = "GFX_diplomacy_stripes_2"
				alwaysTransparent = yes
				scale = .73666
			}

			iconType = {
				name = "city_frame"
				spriteType = "GFX_diplomacy_portrait_frame"
				position = { x = -6 y = -0 }
				alwaysTransparent = yes
				scale = .73666
			}
		}

		### EMPIRE INFO ###

		containerWindowType = {
			name = "empire_info"

			iconType = {
				name = "empire_info_bg"
				spriteType = "GFX_diplomacy_dark_fade_bg"
				position = { x = 30 y = 64 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "empire_name"
				font = "malgun_goth_24"
				text = "Kammarian Galactic Concordat"
				position = { x = 42 y = 70 }
				maxWidth = 450
				maxHeight = 16
				format = LEFT
				text_color_code = "E"
				fixedsize = yes
			}

			instantTextBoxType={
				name = "empire_government_type"
				font = "cg_16b"
				text = "Autocracy"
				position = { x = 42 y = 95	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
				text_color_code = "Y"
			}

			instantTextBoxType={
				name = "empire_personality_type"
				font = "cg_16b"
				text = "Despicable Neutrals"
				position = { x = 42 y = 112	}
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				fixedsize = yes
			}

			OverlappingElementsBoxType = {
				name = "empire_ethics_icons"
				position = { x = 42 y = 138 }
				size = { x = 240 y = 30 }
				spacing = 2.0
				format = left
			}

			buttonType = {
				name = "empire_flag"
				quadTextureSprite = "GFX_empire_flag_128"
				position = { x = 25 y = 210 }
				orientation = UPPER_LEFT
				scale = .75
			}
		}



		### CONTENT ##

		containerWindowType = {
			name = "description_frame"
			position = { x = 16 y = 315 }
			size = { width = 342 height = 315 }
			orientation = upper_left

			background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
				alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "action_title"
				font = "malgun_goth_24"
				position = { x = 70 y = 20 }
				maxWidth = 500
				maxHeight = 20
				text = "TITLE"
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = left
				#alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "effects_text"
				font = "cg_16b"
				position = { x = 10 y = 139 }
				maxWidth = 60
				maxHeight = 100
				fixedSize = yes
				Orientation = "UPPER_LEFT"
				format = right
				text = "EFFECTS"
				#alwaysTransparent = yes
			}

			instantTextBoxType={
				name = "offer_description"
				font = "cg_16b"
				position = { x = 80 y = 139 }
				maxWidth = 230
				maxHeight = 250
				scrollbartype = "standardtext_slider"
			}

			iconType ={
				name ="diplomacy_icon"
				quadTextureSprite = "GFX_diplo_type_icon" # Changed in code
				position = { x = 24 y = 15 }
				#scale = 0.9
			}
		}

		containerWindowType = {
			name = "federation_detail"
			position = { x = 374 y = 315 }
			size = { width = 342 height = 315 }
			orientation = upper_left

			background = {
				name = "frame_background"
				quadTextureSprite = "GFX_tiles_dark_area_cut_8"
				position = { x = 0 y = 0 }
				alwaysTransparent = yes
			}

			iconType = {
				name = "type_icon"
				quadTextureSprite = "GFX_default_federation"
				position = { x = 20 y = 10 }
				scale = 1
			}

			instantTextBoxType = {
				name = "name"
				position = { x = 90 y = 17 }
				maxWidth = 444
				maxHeight = 150
				font = "cg_16b"
				text = "Name"
			}

			instantTextBoxType = {
				name = "federation_type"
				font = "cg_16b"
				text = "Federation Type"
				position = { x = 90 y = 38 }
				maxWidth = 444
				maxHeight = 150
				fixedSize = yes
				orientation = upper_left
				alwaysTransparent = yes
				text_color_code = "H"
			}

			instantTextBoxType = {
				name = "federation_desc"
				font = "cg_16b"
				text = "Description"
				position = { x = 20 y = 74 }
				maxWidth = 290
				maxHeight = 200
				fixedSize = yes
				orientation = upper_left
				alwaysTransparent = no
			}
		}

		containerWindowType = {
			name = "alliance_members"
			position = { x = 40 y = 514 }
			size = { width = 555 height = 200 }
			orientation = upper_left

			instantTextBoxType={
				name = "members"
				font = "cg_16b"
				position = { x = 0 y = 0 }
				format = left
				text = "FEDERATION_MEMBERS_HEADING"
			}

			smoothListBoxType = {
				name = "members_list"
				position = { x = 0 y = 24 }
				size = { x=295 y=80 }
				spacing = 2
				scrollbartype = "standardlistbox_slider"
				orientation = "UPPER_LEFT"
				autohide_scrollbar = yes
			}
		}

		instantTextBoxType={
			name = "alien_message"
			font = "cg_16b"
			position = { x = 40 y = 374 }
			maxWidth = 290
			maxHeight = 178
			fixedSize = yes
			format = left
			alwaysTransparent = no
			text_color_code = "L"
		}

		buttonType = {
			name = "confirm_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x= -168 y = -60  }
			Orientation = "LOWER_RIGHT"
			font = "cg_16b"
		}

		buttonType = {
			name = "cancel_button"
			quadTextureSprite = "GFX_standard_button_142_34_button"
			position = { x = 2 y = -60  }
			Orientation = "LOWER_LEFT"
			font = "cg_16b"
		}

		instantTextBoxType={
			name = "decline_cost"
			font = "cg_16b"
			format = left
			maxWidth = 540
			maxHeight = 178
			position = { x = 95 y = 655 }
			alwaysTransparent = yes
		}

		### STATS
		containerWindowType = {
			name = "country_diplomacy_stats"
			position = { x = 304 y = 74 }

			containerWindowType = {
				name = "relation_bg_large"
				size = { width = 155 height = 68 }

				position = { x = 245 y = 140 }

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

			# attitude
			containerWindowType = {
				name = "attitude"
				position = { x = 250 y = 138 }
				size = { width = 220 height = 42 }
				clipping = no

				containerWindowType = {
				name = "relation_bg"
				size = { width = 210 height = 100% }

				position = { x = 0 y = 0 }

					#background = {
					#	name = "leader_frame"
					#	spriteType = "GFX_tiles_dark_area_cut_8"
					#	alwaysTransparent = yes
					#}
				}

				iconType = {
					name = "icon"
					quadTextureSprite = "GFX_diplomacy_opinion"
					scale = .9
					position = { x= 10 y = 9  }
				}

				#iconType = {
				#	name = "background"
				#	spriteType = "GFX_info_background_148"
				#	position = { x = 5 y = 5}
				#}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}

			containerWindowType = {
				name = "power"
				position = { x = 250 y = 168 }
				size = { width = 154 height = 42 }

				containerWindowType = {
				name = "relation_bg"
				size = { width = 210 height = 100% }

				position = { x = 0 y = 0 }

					#background = {
					#	name = "leader_frame"
					#	spriteType = "GFX_tiles_dark_area_cut_8"
					#	alwaysTransparent = yes
					#}
				}

				#iconType = {
				#	name = "background"
				#	spriteType = "GFX_info_background_148"
				#	position = { x = 5 y = 5}
				#}

				iconType = {
					name = "icon"
					spriteType = "GFX_relative_power_icon"
					position = { x= 12 y = 9  }
					alwaysTransparent = yes
					scale = .9
				}

				instantTextBoxType = {
					name = "label"
					font = "cg_16b"
					maxWidth = 148
					maxHeight = 20
					position = { x = 44 y = 12 }
					format = left
					alwaysTransparent = no
				}
			}
		}
	}
}
