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

		background = {
			name = "background"
			quadTextureSprite = "GFX_tile_outliner_bg_synth_queen"
		}

		### BACKGROUND ART ###

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

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

		buttonType = {
			name = "speech_replay_button"
			position = { x = 837 y = 20 }
			spriteType = "GFX_button_sound_synth_queen"
			buttonFont = "cg_16b"
			shortCut = "r"
			pdx_tooltip = "REPLAY_SPEECH"
		}

		checkboxType = {
			name = "speech_mute_checkbox"
			position = { x = 876 y = 20 }
			quadTextureSprite = "GFX_button_mute_synth_queen"
			shortCut = "m"
		}

		### LEADER COUNTRY DETAILS ###

		containerWindowType = {
			name = "country_details_container"
			position = { x = 32 y = 340 }
			size = { width = 300 height = 48 }
			moveable = no

			background = {
				name = "bg"
				spriteType = "GFX_planetview_topright_bg_small_synth_queen"
				alwaysTransparent = no
			}

			instantTextBoxType = {
				name = "country_name"
				font = "malgun_goth_24"
				text = ""
				position = { x = 35 y = 9 }
				maxWidth = 250
				maxHeight = 16
				format = LEFT
				text_color_code = "H"
				fixedsize = yes
			}

			### THEIR OPINION ###
			containerWindowType = {
				name = "opinion_container"
				position = { x = 220 y = 7 }
				size = { width = 94 height = 30 }

				# Use this for tooltip area, picture comes from somewhere else
				background = {
					name = "opinion_bg"
					spriteType = "GFX_tiled_window_transparent"
				}

				iconType = {
					name = "their_opinion_icon"
					spriteType = "GFX_diplomacy_opinion"
					position = { x = 7 y = 4 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "their_opinion_text"
					font = "cg_16b"
					maxWidth = 40
					position = { x = 40 y = 7 }
					format = left
					text = "100"
					alwaysTransparent = yes
				}
			}
		}

		iconType = {
			name = "crisis_progress_separator"
			quadTextureSprite = "GFX_line_medium_synth_queen"
			position = { x = 15 y = 395 }
			alwaystransparent = no
		}

		iconType = {
			name = "crisis_progress_bar"
			spriteType = "GFX_situation_event_progressbar_monodirectional_synth_queen"
			position = { x = 20 y = 425 }
		}

		buttonType = {
			name = "leader_country_flag"
			quadTextureSprite = "GFX_empire_flag_48_golden_frame"
			position = { x = 6 y = 335 }
			alwaysTransparent = no
		}

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

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

			iconType = {
				name = "header_line"
				quadTextureSprite = "GFX_line_medium_synth_queen"
				position = { x = 50 y = 80 }
				alwaystransparent = no
			}

			### DESCRIPTION ###

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

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

				instantTextBoxType = {
					name = "description"
					position = { x = 45 y = 12 }
					font = "cg_16b"
					text_color_code = "H"
					maxWidth = 440
					maxHeight = 245
					format = left
					scrollbartype = "standardtext_slider_small"
				}
			}

			### OPTIONS ###

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

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

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

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

	positionType = {
		name = "crisis_conversation_option_list_padding_y"
		# vertical padding between description section and option list
		position = { x = 0 y = 50 }
	}

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

	### OPTION ENTRIES ###

	containerWindowType = {
		name = "crisis_conversation_event_option_entry"
		position = { x = 0 y = 0 }
		size = { width = 388 height = 30 }
		moveable = no
		
		buttonType = {
			name = "option_button"
			position = { x = 41 y = 3 }
			size = { x = 463 y = 49 }
			spriteType = "GFX_tiling_button_event_synth_queen"
			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
		}
	}
}
