guiTypes = {
	containerWindowType = {
		name = "LeaderConversationEventWindow"
		
		orientation = center
		origo = center
		moveable = yes
		clipping = no
		size = { width = 940 height = 560 }

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

		### BACKGROUND ART ###

		iconType = {
			name = "event_picture"
			spriteType = "GFX_leader_recruitment_bg_renowned"
			position = { x = 0 y = 1 }
			alwaysTransparent = yes
		}

		### LEADER COUNTRY DETAILS ###

		containerWindowType = {
			name = "country_details_container"
			position = { x = 30 y = 335 }
			size = { width = 385 height = 60 }
			moveable = no

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

			instantTextBoxType = {
				name = "country_name"
				font = "malgun_goth_24"
				text = ""
				position = { x = 50 y = 3 }
				maxWidth = 450
				maxHeight = 16
				format = LEFT
				text_color_code = "E"
				fixedsize = yes
			}
		}

		buttonType = {
			name = "leader_country_flag"
			quadTextureSprite = "GFX_empire_flag_48_golden_frame"
			position = { x = 6 y = 305 }
			alwaysTransparent = yes
		}

		containerWindowType = {
			name = "content_container"
			position = { x = 415 y = 0 }
			
			### TITLE ###

			instantTextBoxType = {
				name = "event_window_heading"
				font = "malgun_goth_24"
				text = "DIPLOMACY"
				position = { x = 10 y = 30 }
				maxWidth = 490
				maxHeight = 22
				fixedSize = yes
				alwaysTransparent = yes
			}

			iconType = {
				name = "leaders_header_line"
				quadTextureSprite = "GFX_line"
				position = { x = 10 y = 78 }
				alwaystransparent = yes
			}

			### DESCRIPTION ###

			containerWindowType = {
				name = "description_container"
				orientation = upper_right
				position = { x = 10 y = 100 }
				size = { width = 490 height = 0 } # height is set in code

				background = {
					name = "description_frame"
					spriteType = "GFX_tiles_frame_light"
					alwaystransparent = yes
				}

				instantTextBoxType = {
					name = "description"
					position = { x = 10 y = 15 }
					font = "cg_16b"
					text_color_code = "E"
					maxWidth = 470
					format = left
					scrollbartype = "standardtext_slider_small"
				}
			}

			### OPTIONS ###

			listboxType = {
				name = "option_list"
				position = { x = 0 y = 0 }
				size = { x = 504 y = 200 }
				spacing = 1
				scrollbartype = "standardlistbox_slider"
				Orientation = "UPPER_LEFT"
				alwaysTransparent = yes
			}
		}

		containerWindowType = {
			name = "portrait_locator"
			position = { x = 0 y = -20 }
			size = { width = 480 height = 175 }
			moveable = no
			clipping = no
		}

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

	# These paddings and offsets are required because description 
	# and option list positions and sizes are adjusted in code

	positionType = {
		name = "leader_conversation_description_padding_y"
		# vertical padding between heading and description section
		position = { x = 0 y = 32 }
	}

	positionType = {
		name = "leader_conversation_option_list_relative_offset_x"
		# option list position offset relative to the list parent
		position = { x = -7 y = 0 }
	}

	positionType = {
		name = "leader_conversation_option_list_padding_y"
		# vertical padding between descri`ption section and option list
		position = { x = 0 y = 5 }
	}

	positionType = {
		name = "leader_conversation_bottom_padding_y"
		# vertical padding between option list and the bottom edge of the window
		position = { x = 0 y = 48 }
	}

	### OPTION ENTRIES ###

	containerWindowType = {
		name = "leader_conversation_event_option_entry"
		position = { x = 0 y = 0 }
		size = { width = 388 height = 30 }
		moveable = no
		
		buttonType = {
			name = "option_button"
			position = { x = 0 y = 3 }
			size = { x = 504 y = 49 }
			spriteType = "GFX_tiling_button_event"
			font = "cg_16b"
			text = "OPTION_TEXT"
		}
		
		OverlappingElementsBoxType = {
			name = "trigger_icons"
			position = { x = 0  y = 10 }
			size = { x = 65 y = 28 }
		}

		OverlappingElementsBoxType = {
			name = "effect_icons"
			position = { x = 370 y = 8 }
			size = { x = 72 y = 28 }
			format = right
		}
	}
}
