guiTypes = {

	# Used only as a value holder to resize the progress bar dynamically
	positionType = {
		name = "rift_progress_background_bar_size_controller"
		position = { x = 68 y = 10 }
	}

	containerWindowType = {
		name = "astral_rift_view"
		orientation = center
		size = { width = 940 height = 640 }
		position = { x = 0 y = 0 }
		origo = center
		moveable = yes
		clipping = no

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


		# Header ----------------------------------------------------------------

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

		iconType = {
			name = "header_line"
			quadTextureSprite = "GFX_line"
			position = { x = 6 y = 27 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "site_name"
			font = "malgun_goth_24"
			text = "THIS IS A RIFT NAME"
			position = { x = 10 y = 7 }
			maxWidth = 290
			maxHeight = 40
			fixedSize = yes
			format = left
			#alwaysTransparent = yes
		}

		buttonType = {
			name = "goto_site_button"
			quadTextureSprite = "GFX_fleetview_focus"
			position = { x = -75 y = 10 }
			orientation = upper_right
			pdx_tooltip = "RIFT_GO_TO"
			shortCut = "q"
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = -40 y = 10 }
			orientation = upper_right
			pdx_tooltip = "CLOSE_TITLE"
			shortcut = "ESCAPE"
		}
		# -------------------------------------------------------------------

		# Site Type ---------------------------------------------------------
		containerWindowType = {
			name = "site_type_window"
			size = { width = 560 height = 175 }
			position = { x = 60 y = 70 }

			iconType = {
				name ="event_picture"
				spriteType = "GFX_event_frame"
				position = { x = 0 y = 0 }
				alwaystransparent = yes
			}

			iconType = {
				name = "event_frame"
				quadTextureSprite = "GFX_event_frame"
				position = { x = -5 y = -5 }
				alwaystransparent = yes
			}
		}
		# ---------------------------------------------------------------------

		# Exploration Progress ------------------------------------------------

		containerWindowType = {
			name = "chapters_window"
			size = { width = 550 height = 128 }
			position = { x = 43 y = 230 }

			backGround = {
				name = "chapters_window_background"
				quadTextureSprite ="GFX_astral_rift_progressframe"
				position = { x = -29 y = -27 }
			}

			iconType = {
				name = "progress_background_bar"
				quadTextureSprite = "GFX_progress_background_bar"
				position = { x = 18 y = 26 }
			}

			OverlappingElementsBoxType = {
				name = "chapters_box"
				position = { x = 0 y = 10 }
				size = { x = 504 y = 60 }
				format = left
				spacing = 18
			}
		}

		instantTextBoxType = {
			name = "chapter_subtitle"
			font = "cg_16b"
			text = "THIS IS A CHAPTER SUBTITLE"
			position = { x = 21 y = 298 }
			maxWidth = 535
			maxHeight = 40
			fixedSize = yes
			format = center
			#alwaysTransparent = yes
		}

		iconType = {
			name = "no_report_icon"
			quadTextureSprite = "GFX_astral_rift_icon_blocked"
			position = { x = 261 y = 370 }
			alwaystransparent = yes
		}
		instantTextBoxType = {
			name = "no_report_text"
			font = "cg_16b"
			text = "STAGE_NOTHING_TO_REPORT"
			position = { x = 21 y = 350 }
			maxWidth = 535
			maxHeight = 40
			fixedSize = yes
			format = center
			#alwaysTransparent = yes
		}

		# ---------------------------------------------------------------------

		# Exploration Text & Buttons -------------------------------------------

		containerWindowType = {
			name = "exploration_window"
			size = { width = 550 height = 200 } # this will be dynamically resized, see RIFT_VIEW_TEXTBOX_*
			position = { x = 14 y = 322 }

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

			smoothListBoxType = {
				name = "text_list"
				position = { x = 10 y = 10 }
				orientation = upper_left
				size = { x = 530 y = 180 } # this will be dynamically resized, see RIFT_VIEW_TEXTBOX_*
				borderSize = { x = 0 y = 0 }
				scrollbartype = "standardlistbox_slider"
			}
			
			buttonType = {
				name = "tts_button"
				position = { x = 514 y = -4 }
				spriteType = "GFX_button_tts_start"
				buttonFont = "cg_16b"
				shortCut = "t"
			}
		}

		gridBoxType = {
			name = "options_box"
			position = { x = 18 y = 522 }
			size = { width = 540 height = 105 }
			format = "UPPER_LEFT"
			slotsize = { width = 530 height = 35 }
			max_slots_horizontal = 1
			max_slots_vertical = 3
		}

		# ---------------------------------------------------------------------

		# Exploration Chapter --------------------------------------------------


		containerWindowType = {
			name = "title_chapter"
			size = { width = 180 height = 180 }
			position = { x = 570 y = 20 }

			iconType = {
				name = "astral_rift_file_bg"
				quadTextureSprite = "GFX_astral_rift_file_bg"
				position = { x = 6 y = 26 }
			}

			iconType = {
				name = "title_hex"
				quadTextureSprite = "GFX_tradition_hex_bg_green"
				position = { x = 5 y = 13 }
				alwaysTransparent = yes
			}

			iconType = {
				name = "title_line"
				quadTextureSprite = "GFX_FC_separator"
				position = { x = 15 y = 56 }
			}

			iconType = {
				name = "astral_rift_icon_header"
				position = { x = 12 y = 28 }
				quadTextureSprite = "GFX_astral_rift_ui_icon"
				scale = 1
			}

			instantTextBoxType = {
				name = "title_text"
				font = "malgun_goth_24"
				position = { x = 48 y = 33 }
				text = "CURRENT CHAPTER"
				maxWidth = 168
				maxHeight = 20
				fixedSize = yes
				format = left
				orientation = upper_left
			}
		}

		containerWindowType = {
			name = "leader_window"
			size = { width = 145 height = 241 }
			position = { x = 584 y = 90 }

			background = {
				name = "leader_background"
				spriteType = "GFX_dark_area_cut"
			}

			containerWindowType = {
				name = "portrait_container"
				position = { x = 10 y = 10 }
			}

			instantTextBoxType = {
				name = "help_text"
				font = "cg_16b"
				position = { x = 10 y = 140 }
				text = "ASTRAL_RIFT_ASSIGN_SCIENTIST"
				maxWidth = 130
				maxHeight = 30
				format = left
			}
		}

		containerWindowType = {
			name = "select_leader_window"
			position = { x = 630 y = 200 }
			size = { width = 670 height = 420 }

			background = {
				name = "planet_bg"
				spriteType = "GFX_tile_outliner_bg"
				alwaysTransparent = no
			}

			iconType = {
				name = "hex_bg"
				spriteType = "GFX_hex_bg"
				position = { x = -7 y = -13 }
				alwaysTransparent = yes
			}
	
			iconType = {
				name = "header_line"
				quadTextureSprite = "GFX_line"
				position = { x = 6 y = 22 }
				alwaysTransparent = yes
			}

			instantTextBoxType = {
				name = "header"
				font = "malgun_goth_24"
				text = "LEADER_ASSIGNMENT"
				position = { x = 27 y = 6 }
				maxWidth = 200
				maxHeight = 40
				fixedSize = yes
				format = left
				alwaysTransparent = yes
			}

			buttonType = {
				name = "close_button"
				quadTextureSprite = "GFX_close"
				position = { x = -42 y = 14 }
				shortcut = "ESCAPE"
				clicksound = "back_click"
				actionShortcut = "cancel"
				orientation = UPPER_RIGHT
				pdx_tooltip = "CLOSE_TITLE"
			}

			smoothListBoxType = {
				name = "leader_list"
				position = { x = 12 y = 50 }
				orientation = "UPPER_LEFT"
				priority = 100
				size = { x = 645 y = 360 }
				scrollbartype = "standardlistbox_slider"
				spacing = -1
				defaultSelection = yes
			}
		}

		containerWindowType = {
			name = "chapter_progress"
			size = { width = 178 height = 32 }
			position = { x = 735 y = 90 }

			background = {
				name = "background"
				spriteType = "GFX_dark_area_cut"
			}

			iconType = {
				name = "progress_time_icon"
				position = { x = 123 y = 7 }
				spriteType = "GFX_resource_time"
			}

			iconType = {
				name = "progress_bar"
				spriteType = "GFX_queue_progressbar_100"
				position = { x = 17 y = 10 }
			}

			instantTextBoxType = {
				name = "progress_text"
				font = "cg_16b"
				position = { x = 142 y = 7 }
				text = "DAYS LEFT: 2000"
				maxWidth = 180
				maxHeight = 20
				fixedSize = yes
				format = left
			}
		}

		containerWindowType = {
			name = "chapter_difficulty"
			size = { width = 178 height = 82 }
			position = { x = 735 y = 128 }

			background = {
				name = "background"
				spriteType = "GFX_dark_area_cut"
			}


			iconType = {
				name = "difficulty_icon"
				position = { x = 45 y = 40 }
				spriteType = "GFX_difficulty_range"
				frame = 1
			}

			instantTextBoxType = {
				name = "roll_chance_label"
				font = "cg_16b"
				position = { x = 0 y = 12 }
				text = "ASTRAL_RIFT_BREAKTHROUGH"
				maxWidth = 180
				maxHeight = 20
				fixedSize = yes
				format = center
			}

			instantTextBoxType = {
				name = "roll_chance_text"
				font = "malgun_goth_24"
				position = { x = 82 y = 43 }
				text = "15%"
				maxWidth = 80
				maxHeight = 20
				fixedSize = yes
				format = left
				Orientation = "UPPER_LEFT"
			}
		}

		containerWindowType = {
			name = "chapter_modifiers"
			size = { width = 178 height = 115 }
			position = { x = 736 y = 216 }

			background = {
				name = "background"
				spriteType = "GFX_dark_area_cut"
			}

			instantTextBoxType = {
				name = "difficulty_type_text"
				font = "cg_16b"
				position = { x = 0 y = 15 }
				text = "RIFT_DIFFICULTY_TYPE"
				maxWidth = 100
				maxHeight = 20
				fixedSize = yes
				format = right
			}
			iconType = {
				name = "difficulty_type_icon"
				position = { x = 105 y = 8 }
				spriteType = "GFX_archaeology_difficulty_normal"
				frame = 1
			}
			instantTextBoxType = {
				name = "difficulty_type_value"
				font = "cg_16b"
				position = { x = 140 y = 15 }
				text = "-15"
				maxWidth = 40
				maxHeight = 20
				fixedSize = yes
				format = left			
			}

			instantTextBoxType = {
				name = "leader_bonus_text"
				font = "cg_16b"
				position = { x = 0 y = 48 }
				text = "ARC_LEADER_BONUS"
				maxWidth = 100
				maxHeight = 20
				fixedSize = yes
				format = right
			}
			iconType = {
				name = "leader_bonus_icon"
				position = { x = 105 y = 41 }
				spriteType = "GFX_leader_bonus"
			}
			instantTextBoxType = {
				name = "leader_bonus_value"
				font = "cg_16b"
				position = { x = 140 y = 48 }
				text = "+2"
				maxWidth = 40
				maxHeight = 20
				fixedSize = yes
				format = left
			}

			instantTextBoxType = {
				name = "clues_text"
				font = "cg_16b"
				position = { x = 0 y = 81 }
				text = "RIFT_CLUES"
				maxWidth = 100
				maxHeight = 20
				fixedSize = yes
				format = right
				pdx_tooltip = "RIFT_CLUES_TT"
			}
			iconType = {
				name = "clues_icon"
				position = { x = 105 y = 75 }
				spriteType = "GFX_clue"
				pdx_tooltip = "RIFT_CLUES_TT"
			}
			instantTextBoxType = {
				name = "clues_value"
				font = "cg_16b"
				position = { x = 140 y = 81 }
				text = "3"
				maxWidth = 40
				maxHeight = 20
				fixedSize = yes
				format = left
				pdx_tooltip = "RIFT_CLUES_TT"
			}
		}

		containerWindowType = {
			name = "exploration_log"
			size = { width = 330 height = 255 }
			position = { x = 584 y = 338 }

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

			containerWindowType = {
				name = "expedition_bg"
				position = { x = 0 y = 0 }

				backGround = {
					name = "background_expedition_title"
					quadTextureSprite ="GFX_expedition_title_bg"
					alwaysTransparent = yes
				}

			}

			instantTextBoxType = {
				name = "header"
				font = "cg_16b"
				position = { x = 15 y = 10 }
				text = "ASTRAL_RIFT_EXPLORATION_LOG"
				maxWidth = 120
				maxHeight = 20
				fixedSize = yes
				format = left
				pdx_tooltip = "ASTRAL_RIFT_EXPLORATION_LOG_TT"
			}
			
			smoothListBoxType = {
				name = "log_list"
				position = { x = 10 y = 45 }
				orientation = upper_left
				size = { x = 310 y = 200 }
				borderSize = { x = 0 y = 0 }
				scrollbartype = "standardlistbox_slider"
			}
		}

		containerWindowType = {
			name = "block_window"
			size = { width = 350 height = 570 }
			position = { x = 574 y = 46 }
			clipping = yes

			##Sliding Doors --------------------------------------
			iconType = {
				name = "doorRight"
				spriteType = "GFX_astral_rift_expedition_file_blocked_door_right"
				orientation = upper_right
				position = { x = -184 y = 0}
			}

			iconType = {
				name = "doorLeft"
				spriteType = "GFX_astral_rift_expedition_file_blocked_door_left"
				orientation = upper_left
				position = { x = 0 y = 0}
			}

			instantTextBoxType = {
				name = "text"
				font = "cg_16b"
				position = { x = 0 y = 280 }
				text = "THIS IS LOCKED/FINISHED"
				maxWidth = 350
				maxHeight = 44
				fixedSize = yes
				format = center
			}

			iconType = {
				name = "icon"
				quadTextureSprite = "GFX_astral_rift_sign"
				position = { x = 150 y = 230 }
			}
		}
	}

	# ---------------------------------------------------------------------

	# Event ---------------------------------------------------------------
	containerWindowType = {
		name = "rift_stage_event_entry"
		position = { x=0 y=0 }
		size = { width = 530 height = 180 }	# might be resized in code

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			position = { x = 5 y = 5 }
			text = "NAME OF EVENT"
			maxWidth = 520
			maxHeight = 20
			format = left
		}

		instantTextBoxType = {
			name = "description"
			font = "cg_16b"
			position = { x = 5 y = 35 } # will be moved up in code if name is empty
			text = "THIS HERE IS A LONG DESCRIPTION OF AN EVENT"
			maxWidth = 520
			format = left
		}

		instantTextBoxType = {
			name = "effects"
			font = "cg_16b"
			position = { x = 5 y = 35 } # will be moved down below the desc dynamically
			text = "THIS IS AN EFFECT"
			maxWidth = 520
			format = left
		}
	}

	containerWindowType = {
		name = "rift_stage_event_option"
		position = { x=0 y=0 }
		size = { width = 542 height = 30 }

		background = {
			name = "background"
			spriteType = "GFX_button_light"
		}

		instantTextBoxType = {
			name = "text"
			font = "cg_16b"
			position = { x = 0 y = 5 }
			text = "THIS IS AN EVENT OPTION"
			maxWidth = 542
			maxHeight = 30
			fixedSize = yes
			format = center
		}

		OverlappingElementsBoxType = {
			name = "trigger_icons"
			position = { x = 0  y = 2 }
			size = { x=36 y= 28 }
		}

		OverlappingElementsBoxType = {
			name = "effect_icons"
			position = { x = 384 y = 0 }
			size = { x = 72 y = 28 }
			format = right
		}
		
		iconType = {
			name = "difficulty_icon"
			position = { x = 488  y = 3 }
			spriteType = "GFX_difficulty_range"
			frame = 1
			scale = 0.8
		}

		instantTextBoxType = {
			name = "difficulty_index"
			font = "malgun_goth_24"
			position = { x = 518 y = 2 }
			text = "4"
			maxWidth = 52
			maxHeight = 28
			fixedSize = yes
			format = left
		}
	}
	# ----------------------------------------------------------------------

	containerWindowType = {
		name = "rift_stages_box_entry"
		position = { x=0 y=0 }
		size = { width = 50 height = 50 }

		iconType = {
			name = "stage_background"
			quadTextureSprite = "GFX_astral_rift_chapter_button"
			position = { x = 0 y = 0 }
			scale = 1
			frame = 4
		}

		buttonType = {
			name = "stage_button"
			quadTextureSprite = "GFX_astral_rift_stage_icon"
			position = { x = 5 y = 6 }
			frame = 1
		}

		buttonType = {
			name = "next_stage_button"
			quadTextureSprite = "GFX_astral_rift_sphere_icon"
			position = { x = 0 y = 0 }
			scale = 0.8
		}

		iconType = {
			name = "stage_progress_circle"
			quadTextureSprite = "GFX_chapter_progress_bar"
			position = { x = 0 y = 0 }
			frame = 1
		}
	}

	containerWindowType = {
		name = "exploration_log_entry"
		position = { x=0 y=0 }
		size = { width = 310 height = 50 }

		background = {
			name = "background"
			spriteType = "GFX_dark_area_cut"
		}

		iconType = {
			name = "tab_icon"
			quadTextureSprite = "GFX_expedition_log_tab"
			position = { x = 0 y = 8 }
			frame = 2 # yellow by default
		}

		instantTextBoxType = {
			name = "date"
			font = "cg_16b"
			position = { x = 10 y = 17 }
			text = "1100.02.10"
			maxWidth = 120
			maxHeight = 30
			fixedSize = yes
			format = left
		}

		iconType = {
			name = "roll_icon"
			quadTextureSprite = "GFX_icon_archaeology_dieroll"
			position = { x = 140 y = 12 }
			scale = 0.9
		}

		instantTextBoxType = {
			name = "roll_text"
			font = "cg_16b"
			position = { x = 180 y = 17 }
			text = "9"
			maxWidth = 40
			maxHeight = 30
			fixedSize = yes
			format = left
		}

		iconType = {
			name = "clue_icon"
			quadTextureSprite = "GFX_log_clue"
			position = { x = 235 y = 13 }
		}

		instantTextBoxType = {
			name = "clue_text"
			font = "cg_16b"
			position = { x = 270 y = 17 }
			text = "+2"
			maxWidth = 40
			maxHeight = 30
			fixedSize = yes
			format = left
		}
	}
}
