guiTypes = {
	containerWindowType = {
		name ="frontend_background"
		position = { x=0 y =0 }
		size = {
			width = 1920
			height = 1440
			min = { width = 100% height = 100% }
			max = { width = 100% height = 10000 }
			preserve_aspect_ratio = yes
		}
		Orientation = center
		Origo = center
		clipping = no

		background = {
			name = "Background"
			quadTextureSprite ="GFX_frontend_bg"
			alwaystransparent = yes
		}
	}

	containerWindowType = {
		name = "owned_dlc_item"
		size = { width = 50 height = 50 }

		buttonType =
		{
			position = { x = -230 y = -54 }
			name ="dlc_button"
			spriteType = "GFX_frontend_banner_dlc018"
		}

		iconType = {
			name = "glowup"
			position = { x = -50 y = -71 }
			spriteType = "GFX_spirit_glow"
			scale = 0.8
			#hide = yes
		}

		buttonType = {
			name = "owned_tick"
			spriteType = "GFX_BPT_area_defense_setting_tick"
			position = { x = -6 y = -51 }
			Orientation = center_left
			scale = 0.56
			alwaysTransparent = yes
			#hide = yes
		}

		buttonType = {
			name = "enabled_tick"
			spriteType = "GFX_general_check"
			position = { x = 28 y = -30 }
			Orientation = center_left
			alwaysTransparent = yes
		}

	}

	containerWindowType = {
		name = "change_background"
		size = { width = 100 height = 40 }
		position = { x = -20 y = -20 }
		Orientation = lower_right
		Origo = lower_right

		buttonType = {
			name ="change_background_button"
			position = { x = -206 y = -24 }

			quadTextureSprite = "GFX_button_238x38"
			buttonText = "CHANGE_BACKGROUND"
			buttonFont = "hoi_24header"
			Orientation = center
		}

		containerWindowType = {
			name = "background_selection"
			size = { width = 238 height = 700 }
			position = { x = -156 y = -700 }
			margin = { top = 18 bottom = 13 left = 8}

			background = {
				name = "Background"
				quadTextureSprite ="GFX_tiled_window"
			}

			checkboxType = {
					name = "select_all_checkbox"
					position = { x = 40 y = 0 }
					quadTextureSprite ="GFX_generic_checkbox"
					buttonText = ""
					buttonFont = "Main_14_black"
					clicksound = click_checkbox
				}
			instantTextBoxType={
					position = {x = 78 y = 6 }
					name = "select_all_label"
					font = "hoi_18mbs"
					borderSize = {x = 0 y = 0}
					maxWidth = 130
					maxHeight = 18
					text = "SELECT_ALL"
					orientation = "UPPER_LEFT"
					format = left

			}

			positionType = {
				name = "interval_input_widget_position"
				position = { x = 45 y = 50 }
			}

		containerWindowType = {
			name = "background_selection_list"
			size = { width = 230 height = 576 }
			position = { x = 0 y = 90 }
			verticalScrollbar = "right_vertical_slider"
			scroll_wheel_factor = 63
			smooth_scrolling = yes
			background = {
				name = "Background"
				quadTextureSprite ="GFX_tiled_window_transparent"
			}

				gridBoxType = {
					position = { x = 10 y = 0 }
					name = "available_backgrounds"
					size = { width = 200 height = 0 }
					slotsize = { width = 200 height = 150 }
					max_slots_horizontal = 1
				}

			}
		}
	}

	containerWindowType = {
		name = "available_background"
		size = { width = 190 height = 140 }
		position = { x = 0 y = 0 }

		buttonType = {
			name = "change_background_button"
			position = { x = 0 y = 0 }
			spriteType = "GFX_tiled_window_1b_border"
		}

		containerWindowType = {
			name = "highlight"
			size = { width = 192 height = 144 }
			background = {
				name = "glowup"
				quadTextureSprite = "GFX_tiled_frame_selected"
				alwaysTransparent = yes
			}
		}
	}

	containerWindowType = {
		name = "unowned_dlc_item"
		size = { width = 50 height = 50 }

		buttonType =
		{
			position = { x = -230 y = -54 }
			name ="dlc_button"
			spriteType = "GFX_frontend_banner_dlc018"
		}

		buttonType = {
			name = "owned_tick"
			spriteType = "GFX_BPT_area_defense_setting_tick"
			position = { x = -6 y = -51 }
			Orientation = center_left
			scale = 0.56
			alwaysTransparent = yes
			#enabled = no
		}

		buttonType = {
			name = "enabled_tick"
			spriteType = "GFX_general_check"
			position = { x = 28 y = 24 }
			Orientation = center_left
			alwaysTransparent = yes
		}
	}

	### MAIN MENU PANEL (DLC Ownership)
	containerWindowType = {
		name  ="mainmenu_dlc_ownership"
		position = { x=8 y =0 }
		size = { width = 370 height = 634}
		Orientation = lower_left
		origo = lower_left

		gridBoxType = {
			name = "potential_dlc_list"
			position = { x = 0 y = 0}
			size = { width = 50 height = 300 }
			#Orientation = upper_left
			slotsize = {width=50 height=51 }
			max_slots_vertical = 1
			format = "RIGHT"
		}
	}

	### MAIN MENU PANEL (upperleft -> uppercenter)
	containerWindowType = {
		name = "mainmenu_panel_upperleft"
		position = { x=0 y=0 }
		show_position = { x=0 y=155 }
		size = { width = 256 height = 768}
		Orientation = CENTER_UP
		Origo = center_up

		iconType = {
			name = "frontend_game_logo"
			spriteType = "GFX_frontend_game_logo"
			position = { x = -9 y = 110 }
		}
	}

	### MAIN MENU PANEL (upperright)
	containerWindowType = {
		name ="mainmenu_panel_upperright"
		position = { x=0 y =8 }
		show_position = { x=-615 y =8 }
		animation_type = decelerated
		animation_time = 1000
		size = { width = 256 height = 768}
		Orientation = upper_right

		# MD Major Changes/Changelog
		containerWindowType = {
			name = "mainmenu_md_major_changes"
			position = { x = 0 y = 0 }
			orientation = upper_right
			size = { width = 350 height = 435 }

			background = {
				name = "Background"
				quadTextureSprite ="GFX_MD_tiled_window1_scrollbar"
			}

			instantTextBoxType = {
				name = "md_major_changes"
				position = { x = 0 y = 20 }
				maxWidth = 350
				font = "hoi_24header"
				text = "MD_MAJOR_CHANGES"
				format = centre
			}

			ButtonType = {
				name = "md_changelogs"
				position = { x = 130 y = 50 }
				quadTextureSprite ="github"
				scale = 0.5
				clicksound = click_default
				pdx_tooltip = "MENU_CHANGELOGS"
				web_link = "https://millenniumdawn.github.io/Millennium-Dawn/changelogs"
			}

			ButtonType = {
				name = "md_changelogs_video"
				position = { x = 185 y = 50 }
				quadTextureSprite ="youtube2"
				scale = 0.5
				clicksound = click_default
				pdx_tooltip = "MENU_CHANGELOGS_YT"
				web_link = "https://youtu.be/E3oP0-TnnTss"
			}

			iconType = {
				name = "subscription_divider"
				position = { x = 15 y = 80 }
				spriteType = "GFX_main_lobby_divider"
			}

			instantTextBoxType = {
				name = "md_major_changes_text"
				position = { x = 20 y = 98 }
				maxWidth = 309
				maxHeight = 324
				font = "hoi_18b"
				text = "MD_MAJOR_CHANGES_TEXT"
				format = left
				scrollbarType = standardtext_slider
			}
		}

		# Achievements Button (should be to prevent error in logs after loading bookmarks)
		ButtonType = {
			name = "achievements_button"
			position = { x = -50 y = 25 }
			quadTextureSprite ="achievements"
			pdx_tooltip = "MENU_ACHIEVEMENTS"
		}
	}

	### SINGLE PLAYER MENU
	containerWindowType = {
		name = "mainmenu_single_player"
		position = { x=0 y=0}
		margin = { left = 11 top = 14 }
		size = { width = 310 height = 310}
		Orientation = CENTER
		Origo = center

		background = {
			name = "Background"
			quadTextureSprite ="GFX_MD_tiled_window1"
		}

		ButtonType = {
			name = "sp_continue_button"
			position = { x = 0 y = 0 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "FE_CONTINUE"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		iconType = {
			name = "sp_continue_flag_left"
			quadTextureSprite ="GFX_flag_small2_not_masked"
			position = { x = 10 y = 6 }
			Orientation = "UPPER_LEFT"
			# alwaystransparent = yes
		}

		iconType = {
			name = "sp_continue_flag_left_overlay"
			quadTextureSprite ="GFX_flag_small2_not_masked"
			position = { x = 10 y = 6 }
			Orientation = "UPPER_LEFT"
			# alwaystransparent = yes
		}

		iconType = {
			name = "sp_continue_flag_right"
			quadTextureSprite ="GFX_flag_small2_not_masked"
			position = { x= 240 y = 6 }
			Orientation = "UPPER_LEFT"
			# alwaystransparent = yes
		}

		iconType = {
			name = "sp_continue_flag_right_overlay"
			quadTextureSprite ="GFX_flag_small2_not_masked"
			position = { x= 240 y = 6 }
			Orientation = "UPPER_LEFT"
			alwaystransparent = yes
		}

		ButtonType = {
			name = "sp_new_button"
			position = { x = 0 y = 40 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "FE_NEW"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		ButtonType = {
			name = "sp_load_button"
			position = { x = 0 y = 80 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "MENU_BAR_LOAD"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		ButtonType = {
			name = "sp_tutorial_button"
			position = { x = 0 y = 120 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "FE_TUTORIAL"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		ButtonType = {
			name = "sp_back_button"
			position = { x = 0 y = 245 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "BACK"
			buttonFont = "hoi_24header"
			clicksound = click_close
			oversound = ui_menu_over
			shortcut = "ESCAPE"
		}
	}

	### MAIN MENU PANEL (bottom -> center)
	containerWindowType = {
		name ="mainmenu_panel_bottom"
		position = { x=0 y =0 }
		size = { width = 310 height = 500 }
		Orientation = CENTER
		Origo = center

		background = {
			name = "Background"
			quadTextureSprite ="GFX_MD_tiled_window1"
		}
		#should be to prevent error in logs after loading bookmarks.Fit to the container size.
		positionType = {
			name = "subscription_size"
			position = { x = 310 y = 485}
		}
		#should be to prevent error in logs after loading bookmarks.Match the text position.
		positionType = {
			name = "version_label_subscription_position"
			position = { x = 30 y = 415 }
		}

		ButtonType = {
			name = "single_player_button"
			position = { x = 11 y = 13 }
			quadTextureSprite ="GFX_main_lobby_button"
			font = "hoi_24header"
			text = "FE_SINGLE_PLAYER"
			clicksound = click_default
			oversound = ui_menu_over
		}

		ButtonType = {
			name = "multi_player_button"
			position = { x = 11 y = 53}
			quadTextureSprite ="GFX_main_lobby_button"
			font = "hoi_24header"
			text = "FE_MULTI_PLAYER"
			clicksound = click_default
			oversound = ui_menu_over
		}

		@warn_icon_x = 280
		iconType = {
			name = "single_player_button_warn"
			position = { x = @warn_icon_x y = 22 }
			spriteType = "GFX_missing_dlc_warning_sign"
		}

		instantTextBoxType = {
			name = "version_label"
			position = { x = 30 y = 415 }
			font = "hoi_18b"
			borderSize = {x = 0 y = 0}
			text = "ALPHA"
			format = centre
			maxWidth = 250
			maxHeight = 20
		}

		ButtonType = {
			name = "settings_button"
			position = { x = 11 y = 93 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "OPTIONS"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		buttonType = {
			name = "career_profile_button"
			position = { x = 11 y = 133 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "MENU_BAR_CAREER_PROFILE"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		iconType = {
			name = "career_profile_button_star"
			position = { x = -37 y = 155 }
			spriteType = "GFX_icon_best_in_career"
			centerposition = yes
			orientation = upper_right
			alwaysTransparent = yes
		}

		buttonType = {
			name = "friends_button"
			position = { x = 11 y = 173 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "MENU_BAR_FRIENDS"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		ButtonType = {
			name = "credits_button"
			position = {  x = 11 y = 213 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "FE_CREDITS"
			buttonFont = "hoi_24header"
			clicksound = click_default
			oversound = ui_menu_over
		}

		ButtonType = {
			name = "nudge_button"
			position = { x = 11 y = 253 }
			quadTextureSprite ="GFX_main_lobby_button"
			buttonText = "Nudge!"
			buttonFont = "hoi_24header"
		}

		ButtonType = {
			name = "exit_button"
			position = { x = 11 y = 295 }
			quadTextureSprite ="GFX_main_lobby_button"
			font = "hoi_24header"
			text = "FE_EXIT"
			clicksound = click_default
			oversound = ui_menu_over

		}

		iconType = {
			name = "subscription_divider"
			position = { x = 0 y = 333 }
			spriteType = "GFX_main_lobby_divider"
		}

		containerWindowType = {
			name = "subscription_widget"
			position = { x = -1000 y = 352 }
			size = { width = 288 height = 108 }

			ButtonType = {
				name = "show_subscription"
				position = { x = 0 y = 0 }
				quadTextureSprite ="GFX_subscription_widget"
				buttonText = "SUBSCRIPTION_WIDGET"
				buttonFont = "hoi_24header"
				multiline = yes
			}
		}

		containerWindowType = {
			name = "subscription_widget_subscribed"
			position = { x = -1000 y = 352 }
			size = { width = 288 height = 108 }

			ButtonType = {
				name = "show_subscription"
				position = { x = 0 y = 0 }
				quadTextureSprite ="GFX_subscription_widget_active"
				frame = 1
				buttonText = "SUBSCRIPTION_WIDGET_SUBSCRIBED"
				buttonFont = "hoi_24header"
				multiline = yes
			}
		}

		containerWindowType = {
			name = "mainmenu_social_buttons_appear"
			position = { x=-28 y=135 }
			size = { width = 240 height = 90 }
			Orientation = center
			origo = center

			ButtonType = {
				name = "steamworkshop_button"
				position = { x = 0 y = 12 }
				quadTextureSprite ="steam_workshop"
				clicksound = click_default
				pdx_tooltip = "MENU_STEAMWORKSHOP"
				web_link = "https://steamcommunity.com/workshop/filedetails/?id=2777392649"
			}
			ButtonType = {
				name = "md_wiki_button"
				position = { x = 48 y = 12 }
				quadTextureSprite ="github"
				clicksound = click_default
				pdx_tooltip = "MENU_MD_WIKI"
				web_link = "https://millenniumdawn.github.io/Millennium-Dawn/"
			}
			ButtonType = {
				name = "bluesky_button"
				position = { x = 96 y = 12 }
				quadTextureSprite ="bluesky_menu"
				clicksound = click_default
				pdx_tooltip = "MENU_BLUESKY"
				web_link = "https://vk.com/md_hoi4_mod"
			}
			ButtonType = {
				name = "discord_button"
				position = { x = 144 y = 12 }
				quadTextureSprite ="discord"
				clicksound = click_default
				pdx_tooltip = "MENU_DISCORD"
				web_link = "https://discord.gg/millenniumdawn"
			}
			ButtonType = {
				name = "twitter_button"
				position = { x = 192 y = 12 }
				quadTextureSprite ="twitter"
				clicksound = click_default
				pdx_tooltip = "MENU_TWITTER"
				web_link = "https://twitter.com/MillenniumDawn"
			}
			ButtonType = {
				name = "reddit_button"
				position = { x = 240 y = 12 }
				quadTextureSprite ="reddit"
				clicksound = click_default
				pdx_tooltip = "MENU_REDDIT"
				web_link = "https://www.reddit.com/r/MillenniumDawn/"
			}
		}

		instantTextBoxType = {
			name = "version_label_md"
			position = { x = 30 y = 435 }
			font = "hoi_18b"
			borderSize = {x = 0 y = 0}
			text = "VERSION_MD"
			pdx_tooltip = "VERSION_MD_DATE"
			format = centre
			maxWidth = 250
			maxHeight = 100
		}
	}

	## This position needs updated
	containerWindowType = {
		name = "mainmenu_achievement_button"
		position = { x = -500 y = 20 }
		size = { width = 100 height = 100 }
		Orientation = upper_right
		clipping = no

		ButtonType = {
			name = "achievements_button"
			position = { x = 0 y = 0 }
			quadTextureSprite ="achievements"
			pdx_tooltip = "MENU_ACHIEVEMENTS"
		}
	}

	#should be to prevent error in logs after loading bookmarks
	containerWindowType = {
		name = "mainmenu_social_buttons"
		position = { x=99999 y=99999 }
		size = { width = 100 height = 100 }

		positionType = {
			name = "subscription_position_without_social_gui"
			position = { x = 99999 y = 99999 }
		}
		positionType = {
			name = "position_without_social_gui"
			position = { x = 99999 y = 999999 }
		}

		containerWindowType = {
			name = "social_view_interface_window"
			position = { x=99999 y=99999 }
			size = { width = 10 height = 10 }
		}

		ButtonType = {
			name = "homepage_button"
			position = { x=99999 y=99999 }
			quadTextureSprite ="homepage"
			clicksound = click_default
			pdx_tooltip = "MENU_HOMEPAGE"
		}

		ButtonType = {
			name = "privacy_policy_button"
			position = { x = 99999 y = 99999 } #99999 should be to don't show this on player screen
			quadTextureSprite ="privacy"
			#clicksound = click_default
			pdx_tooltip = "MENU_PRIVACY_POLICY"
		}
	}
}
