#Edited by Doolitle 3NOV2022 - Added additional gui slots needed to designer
guiTypes = {

	containerWindowType = {
		name = "plane_designer_view"
		position = { x=0 y=0 }
		size = { width = 1176 height = 542 }
		moveable = yes
		fade_time = 500
		fade_type = linear
		orientation = CENTER
		origo = center
		show_sound = "ui_tank_designer_panel_appear"
		clipping = no

		background = {
			name = "Background"
			spriteType ="GFX_plane_designer_popup_bg"
		}

		iconType ={
			name ="experience_bg"
			spriteType = "GFX_generic_box_smallest"
			position = { x = 468 y = 502 }
			alwaystransparent = yes
		}

		instantTextboxType = {
			name = "experience"
			position = { x = 465 y = 505 }
			font = "hoi_18mbs"
			maxWidth = 70
			maxHeight = 20
			format = centre
			text = "DESIGNER_EXPERIENCE"
			pdx_tooltip = "CURRENT_EXPERIENCE"
		}

		iconType = {
			name = "select_model"
			position = { x=473 y=137 }
			quadTextureSprite = "GFX_3d_view_placeholder"
		}

		buttonType = {
			name = "toggle_model_selector_button"
			position = { x=465 y=134 }
			size = { x = 111 y = 58 }
			quadTextureSprite ="GFX_division_3d_bg"
			pdx_tooltip = "TOGGLE_MODEL_SELECTOR"
			clicksound = click_default
		}

		containerWindowType = {
			name = "icon_selection_container"
			position = { x=375 y=80 }
			size = { width = 154 height = 56 }

			background = {
				name = "background"
				spriteType = "GFX_equipment_designer_equipment_icon_bg"
				pdx_tooltip = "SELECT_2D_ICON"
			}

			buttonType = {
				name = "btn_equipment_icon"
				position = { x = 0 y = 0 }
				spriteType = "GFX_locked_icon"
				Orientation = "center"
				centerPosition = yes
				clicksound = "ui_tank_designer_equipment_icon"
				alwaystransparent = yes
			}
		}

		instantTextboxType = {
			name = "designer_title"
			position = { x = 410 y = 6 }
			font = "hoi_36header"
			borderSize = {x = 0 y = 0}
			text = "EQUIPMENT_DESIGNER_TITLE"
			maxWidth = 400
			maxHeight = 20
			format = centre
		}

		# window with the equipment preview and the buttons to select the modules
		containerWindowType = {
			name = "equipment_modules"
			position = { x=13 y=146 }
			size = { width=752 height= 500}

			background = {
				name = "background"
				spriteType = "GFX_tiled_window_transparent"
				alwaystransparent = yes
			}

			containerWindowType = {
				name = "equipment_preview"
				position = { x=3 y=50 }
				size = { width=752 height=248 }

				background = {
					name = "background"
					spriteType = "GFX_generic_plane_blueprint_background"
				}

				# The window of the appropriate hull/chassis is inserted here by code

			}

			@fixed_btn_mod_col_0 = 1
			@fixed_btn_mod_col_1 = 74
			@fixed_btn_mod_col_2 = 147
			@fixed_btn_mod_col_3 = 220
			@fixed_btn_mod_col_4 = 293
			@fixed_btn_mod_col_5 = 366
			@fixed_btn_mod_col_6 = 439
			@fixed_btn_mod_col_7 = 512

			@fixed_btn_mod_row_0 = 1
			@fixed_btn_mod_row_1 = 300

			# Code checks this position to know if module is in upper or low row to
			# give the tooltip the correct anchor
			positionType = {
				name = "ypos_module_row_0"
				position = { x=0 y=@fixed_btn_mod_row_0 }
			}

			# Weapon slots

			positionType = {
				name = "pos_fixed_module_slot_window_0"
				position = { x=@fixed_btn_mod_col_0 y=@fixed_btn_mod_row_0 }
			}

			positionType = {
				name = "pos_fixed_module_slot_window_1"
				position = { x=@fixed_btn_mod_col_1 y=@fixed_btn_mod_row_0 }
			}

			positionType = {
				name = "pos_fixed_module_slot_window_2"
				position = { x=@fixed_btn_mod_col_2 y=@fixed_btn_mod_row_0 }
			}

			positionType = {
				name = "pos_fixed_module_slot_window_3"
				position = { x=@fixed_btn_mod_col_3 y=@fixed_btn_mod_row_0 }
			}

			positionType = {
				name = "pos_fixed_module_slot_window_4"
				position = { x=@fixed_btn_mod_col_4 y=@fixed_btn_mod_row_0 }
			}

			positionType = {
				name = "pos_fixed_module_slot_window_5"
				position = { x=@fixed_btn_mod_col_5 y=@fixed_btn_mod_row_0 }
			}

			# Special module slots

			positionType = {
				name = "pos_custom_module_slot_window_0"
				position = { x=@fixed_btn_mod_col_0 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_1"
				position = { x=@fixed_btn_mod_col_1 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_2"
				position = { x=@fixed_btn_mod_col_2 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_3"
				position = { x=@fixed_btn_mod_col_3 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_4"
				position = { x=@fixed_btn_mod_col_4 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_5"
				position = { x=@fixed_btn_mod_col_5 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_6"
				position = { x=@fixed_btn_mod_col_6 y=@fixed_btn_mod_row_1 }
			}

			positionType = {
				name = "pos_custom_module_slot_window_7"
				position = { x=@fixed_btn_mod_col_7 y=@fixed_btn_mod_row_1 }
			}
			#Testing Adding Upgrades
			containerWindowType = {
				name = "equipment_upgrade_0"
				position = { x = 245 y = 345 }
				size = { width = 130 height = 50 }

				buttonType = {
					name = "btn_dec"
					quadTextureSprite ="GFX_naval_decrease_amount"
					position = { x = 13 y = 17 }
					clicksound = "ui_tank_designer_decrease"
				}

				buttonType = {
					name = "btn_inc"
					quadTextureSprite ="GFX_naval_increase_amount"
					position = { x = 73 y = 17 }
					clicksound = "ui_tank_designer_increase"
				}

				instantTextboxType = {
					name = "name"
					position = { x = -30 y = 3 }
					font = "hoi_18mbs"
					maxWidth = 180
					maxHeight = 20
					format = center
					text = "_radar_"
				}

				instantTextboxType = {
					name = "level"
					position = { x = 45 y = 18 }
					font = "hoi_18mbs"
					maxWidth = 29
					maxHeight = 30
					format = center
					vertical_alignment = center
					text = "99"
				}
			}
			containerWindowType = {
				name = "equipment_upgrade_1"
				position = { x = 345 y = 345 }
				size = { width = 130 height = 50 }

				buttonType = {
					name = "btn_dec"
					quadTextureSprite ="GFX_naval_decrease_amount"
					position = { x = 13 y = 17 }
					clicksound = "ui_tank_designer_decrease"
				}

				buttonType = {
					name = "btn_inc"
					quadTextureSprite ="GFX_naval_increase_amount"
					position = { x = 73 y = 17 }
					clicksound = "ui_tank_designer_increase"
				}

				instantTextboxType = {
					name = "name"
					position = { x = -30 y = 3 }
					font = "hoi_18mbs"
					maxWidth = 180
					maxHeight = 20
					format = center
					text = "_engine_"
				}

				instantTextboxType = {
					name = "level"
					position = { x = 45 y = 18 }
					font = "hoi_18mbs"
					maxWidth = 29
					maxHeight = 30
					format = center
					vertical_alignment = center
					text = "99"
				}
			}
		}

		iconType = {
			name = "tag_icon_bg"
			spriteType = "GFX_role_icon_bg"
			position = { x = 535 y = 70 }
			alwaystransparent = yes
		}

		buttonType = {
			name = "niche_button"
			position = { x = 544 y = 80 }
			spriteType = "GFX_plane_niche_icon_strip"
			clicksound = "ui_tank_designer_company_icon"
			pdx_tooltip = "DESIGNER_SELECT_NICHE"
			pdx_tooltip_delayed = "DESIGNER_SELECT_NICHE_AIR_DELAYED"
		}

		ButtonType = {
			name = "save_to_file_button"
			position = { x=18 y=380 }
			quadTextureSprite ="GFX_preset_button_save"
			buttonFont = "hoi_18mbs"
			clicksound = "ui_ship_designer_save"
			pdx_tooltip = "SAVE_AS_PRESET_TOOLTIP"
		}

		ButtonType = {
			name = "historical_design_button"
			position = { x=18 y=412 }
			quadTextureSprite ="GFX_preset_button_open"
			buttonFont = "hoi_18mbs"
			#clicksound = "ui_tank_designer_save"
			pdx_tooltip = "OPEN_PRESETS_TOOLTIP"
		}

		iconType = {
			name = "design_company_icon"
			spriteType = "GFX_idea_porsche"
			position = { x = 531 y = 382 }
		}

		buttonType = {
			name = "upgrade_assigned_industrial_org"
			position = { x = 515 y = 397 }
			scale = 1.4
			spriteType = "GFX_prod_line_target_strip"
			frame = 2
		}

		buttonType = {
			name = "design_team_button"
			spriteType = "GFX_idea_slot_aircraft_manufacturer"
			position = { x = 545 y = 382 }
		}

		# right hand side, stats and mission adjusters
		containerWindowType = {
			name = "info"
			position = { x=619 y=13}
			size = { width=100% height=100%% }

			instantTextboxType = {
					name = "base_stats_label"
					position = { x = 14 y = 34 }
					font = "hoi4_typewriter22"
					text = "DESIGNER_BASE_STATS_LABEL"
					maxWidth = 165
					maxHeight = 20
					format = left
					fixedsize = yes
				}

			containerWindowType = {
				name = "base_stats"
				position = { x = 10 y = 55 }
				size = { width = 171 height = 166 }
				clipping = yes

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

				verticalScrollbar = "right_vertical_slider"

				gridboxtype = {
					name = "stats_grid"
					position = { x = 5 y = 0 }
					size = { width = 155 height = 100%% }
					slotsize = { width = 155 height = 20 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}

			instantTextboxType = {
					name = "combat_stats_label"
					position = { x = 187 y = 34 }
					font = "hoi4_typewriter22"
					text = "DESIGNER_COMBAT_STATS_LABEL"
					maxWidth = 165
					maxHeight = 20
					format = left
					fixedsize = yes
				}

			containerWindowType = {
				name = "combat_stats"
				position = { x = 183 y = 55 }
				size = { width = 174 height = 166 }
				clipping = yes

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

				verticalScrollbar = "right_vertical_slider"

				gridboxtype = {
					name = "stats_grid"
					position = { x = 5 y = 0 }
					size = { width = 155 height = 100%% }
					slotsize = { width = 155 height = 20 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}

			instantTextboxType = {
				name = "misc_stats_label"
				position = { x = 362 y = 34 }
				font = "hoi4_typewriter22"
				text = "FE_MISC_STATS"
				maxWidth = 165
				maxHeight = 20
				format = left
				fixedsize = yes
			}

			containerWindowType = {
				name = "misc_stats"
				position = { x = 356 y = 55 }
				size = { width = 172 height = 166 }
				clipping = yes

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

				verticalScrollbar = "right_vertical_slider"

				gridboxtype = {
					name = "stats_grid"
					position = { x = 5 y = 0 }
					size = { width = 155 height = 100%% }
					slotsize = { width = 155 height = 20 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}

			instantTextboxType = {
				name = "combat_adjuster_header_label"
				position = { x = 30 y = 236 }
				font = "hoi_18mbs"
				text = "PRODUCTION_ADJUSTERS_LABEL"
				maxWidth = 140
				maxHeight = 20
				format = left
			}

			containerWindowType = {
				name = "adjuster_stats"
				position = { x = 15 y = 263 }
				size = { width = 515 height = 201 }
				clipping = yes
				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 63
				smooth_scrolling = yes

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

				gridboxtype = {
					name = "stats_grid"
					position = { x = 0 y = 0 }
					size = { width = 100%% height = 100%% }
					slotsize = { width = 100 height = 63 }
					max_slots_horizontal = 5
					format = "UPPER_LEFT"
				}
			}
		}

		containerWindowType = {
			name = "equipment_select_model"
			position = { x=538 y=40 }
			size = { width=567 height=460 }

			background = {
				name = "Background"
				spriteType ="GFX_tiled_window"
				position = { x=-16 y=0 }
			}

			containerWindowType = {
				name = "border_container"
				position = { x=5 y=13 }
				size = { width = 524 height = 222 }

				background = {
					name ="bg_tech_button"
					spriteType = "GFX_division_3d_bg"
					position = { x=0 y=0 }
					size = { x=100%% y=100%%}
				}
			}

			iconType = {
				name ="3d_view"
				quadTextureSprite = "GFX_3d_view_placeholder"
				position = { x= 12 y = 20 }
			}


			buttonType = {
				name = "back_button"
				position = { x=395 y=412 }
				size = { x=504 y=22 }
				font = "hoi_16mbs"
				buttontext = "BACK"
				quadTextureSprite = "GFX_button_123x34"
				clicksound = click_close
			}

			containerWindowType = {
				name = "best_match_window"
				position = { x=382 y=204 }
				size = { width = 123 height = 34 }
				clipping = no

				buttonType = {
					name = "best_match_button"
					position = { x=-11 y=-3 }
					font = "hoi_16mbs"
					quadTextureSprite = "GFX_generic_checkbox"
					clicksound = click_default
					pdx_tooltip = "USE_DEFAULT_MODEL_IN_EQUIPMENT_DESIGNER_TOOLTIP"
				}

				instantTextboxType = {
					name = "best_match_text"
					position = { x = 28 y = 6 }
					font = "hoi_16mbs"
					text = "USE_DEFAULT_MODEL_IN_EQUIPMENT_DESIGNER"
					fixedsize = yes
					format = left
					alwaystransparent = yes
				}
			}

			containerWindowType = {
				name = "grid_container"
				position = { x=5 y=235}
				size = { width=533 height=176 }
				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 42
				smooth_scrolling = yes

				background = {
					name = "Background"
					spriteType ="GFX_tiled_window_transparent"
				}


				gridBoxType = {
					name = "buttons_grid"
					position = { x = 0 y = 0 }
					size = { width = 490 height = 100%% }
					slotsize = { width = 490 height = 42 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"

				}
			}
		}


		containerWindowType = {
			name = "equipment_select_sprite"
			position = { x=538 y=40 }
			size = { width=567 height=460 }


			background = {
				name = "Background"
				spriteType ="GFX_tiled_window"
				position = { x=-16 y=0 }
			}

			buttonType = {
				name = "back_button"
				position = { x=395 y=412 }
				size = { x=504 y=22 }
				font = "hoi_16mbs"
				buttontext = "BACK"
				quadTextureSprite = "GFX_button_123x34"
				clicksound = click_close
			}

			containerWindowType = {
				name = "border_container"
				position = { x=20 y=20 }
				size = { width = 495 height = 380 }

				background = {
					name ="bg_tech_button"
					spriteType = "GFX_division_3d_bg"
					position = { x=0 y=0 }
					size = { x=100%% y=100%%}
				}
			}

			containerWindowType = {
				name = "grid_container"
				position = { x=65 y=30}
				size = { width=430 height=360 }
				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 80
				smooth_scrolling = yes

				background = {
					name = "Background"
					spriteType ="GFX_tiled_window_transparent"
				}


				gridBoxType = {
					name = "buttons_grid"
					position = { x = 0 y = 0 }
					size = { width = 460 height = 100%% }
					slotsize = { width = 430 height = 80 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"

				}
			}
		}

		containerWindowType = {
			name = "historical_select_design"
			position = { x=538 y=40 }
			size = { width=567 height=460 }


			background = {
				name = "Background"
				spriteType ="GFX_tiled_window"
				position = { x=-16 y=0 }
			}

			ButtonType = {
				name = "import_preset_button"
				position = { x=34 y=408 }
				quadTextureSprite ="GFX_preset_button_import"
				buttonFont = "hoi_18mbs"
				clicksound = "ui_ship_designer_save"
				pdx_tooltip = "IMPORT_PRESET_TOOLTIP"
			}

			ButtonType = {
				name = "export_preset_folder_button"
				position = { x=2 y=408 }
				quadTextureSprite ="GFX_preset_button_export"
				buttonFont = "hoi_18mbs"
				clicksound = "ui_ship_designer_save"
				pdx_tooltip = "EXPORT_PRESET_FOLDER_TOOLTIP"
			}

			buttonType = {
				name = "back_button"
				position = { x=395 y=406 }
				size = { x=504 y=22 }
				font = "hoi_16mbs"
				buttontext = "BACK"
				quadTextureSprite = "GFX_button_123x34"
				clicksound = click_close
			}

			containerWindowType = {
				name = "border_container"
				position = { x=20 y=20 }
				size = { width = 495 height = 380 }

				background = {
					name ="bg_tech_button"
					spriteType = "GFX_division_3d_bg"
					position = { x=0 y=0 }
					size = { x=100%% y=100%%}
				}
			}

			containerWindowType = {
				name = "grid_container"
				position = { x=65 y=30}
				size = { width=430 height=360 }
				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 80
				smooth_scrolling = yes

				background = {
					name = "Background"
					spriteType ="GFX_tiled_window_transparent"
				}


				gridBoxType = {
					name = "buttons_grid"
					position = { x = 75 y = 0 }
					size = { width = 460 height = 100%% }
					slotsize = { width = 430 height = 80 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"

				}
			}

			containerWindowType = {
				name = "folder_container"
				position = {x=3 y=28}
				size = {width=148 height=370}
				verticalScrollbar = "left_vertical_slider"
				scroll_wheel_factor = 80
				smooth_scrolling = yes
				margin = {top=0 left=0 bottom=9 right=0}

				background = {
					name = "Background"
					spriteType ="GFX_tiled_paper_bg2"
				}

				ButtonType = {
					name = "show_all_button"
					position = { x=12 y=6 }
					quadTextureSprite ="GFX_diplo_filter_entry"
					buttonFont = "hoi_18mbs"
					pdx_tooltip = "SHOW_ALL_CUSTOM_DESIGNS_TOOLTIP"
					text = "BUTTON_SHOW_ALL_DESIGNS"
					frame = 2
				}

				gridBoxType = {
					name = "list"
					position = {x=12 y=42}
					size = {width=40 height=170}
					slotsize = {width=40 height=36}
					max_slots_horizontal = 1
					format = "UPPER_RIGHT"
				}
			}
		}

		containerWindowType = {
			name = "niche_icon_selector"
			position = { x=515 y=70 }
			size = { width=315 height=55 }

			background = {
				name = "Background"
				spriteType ="GFX_equipment_role_selector_tiled_window"
				position = { x=0 y=0 }
			}

			containerWindowType = {
				name = "grid_container"
				position = { x=9 y=6 }
				size = { width=390 height=40 }
				verticalScrollbar = "right_vertical_slider"

				background = {
					name = "Background"
					spriteType ="GFX_tiled_window_transparent"
				}

				gridBoxType = {
					name = "buttons_grid"
					position = { x = 0 y = 0 }
					size = { width = 100%% height = 100%% }
					slotsize = { width = 37 height = 37 }
					max_slots_vertical = 1
					format = "UPPER_LEFT"
				}
			}
		}

		ButtonType = {
			name = "reset_button"
			position = { x=10 y=497 }
			quadTextureSprite ="GFX_button_reset_123x34"
			buttonText = "EQUIPMENT_DESIGNER_RESET"
			pdx_tooltip = "EQUIPMENT_DESIGNER_RESET_DESC"
			buttonFont = "hoi_18mbs"
			clicksound = "ui_tank_designer_reset"
		}

		ButtonType = {
			name = "duplicate_button"
			position = { x=145 y=501 }
			quadTextureSprite ="GFX_designer_button_duplicate_strip"
			pdx_tooltip = "EQUIPMENT_DESIGNER_DUPLICATE_DESC"
			clicksound = "ui_tank_designer_duplicate"
		}

		ButtonType = {
			name = "auto_button"
			position = { x=175 y=501 }
			quadTextureSprite ="GFX_designer_button_auto_strip"
			clicksound = "ui_tank_designer_auto"
		}

		ButtonType = {
			name = "auto_upgrade_button"
			position = { x=205 y=501 }
			quadTextureSprite ="GFX_designer_button_upgrade_strip"
			clicksound = "ui_tank_designer_auto_upgrade"
		}

		buttonType = {
			name = "auto_upgraded_checkbox_button"
			position = { x=240 y =505 }
			quadTextureSprite ="GFX_generic_checkbox3"
			pdx_tooltip = "EQUIPMENT_DESIGNER_AUTO_UPGRADED_CHECKBOX_BUTTON_DESC"
			clicksound = click_checkbox
			frame = 1
		}

		iconType = {
			name = "nubbin"
			quadTextureSprite ="GFX_tank_designer_nubbin"
			position = { x=300 y =74 }
			scale = 1.0
		}

		buttonType = {
			name = "dynamic_version_checkbox_button"
			position = { x=375 y =55 }
			quadTextureSprite ="GFX_generic_checkbox3"
			pdx_tooltip = "EQUIPMENT_DESIGNER_DYNAMIC_VERSION_CHECKBOX_BUTTON_DESC"
			clicksound = click_checkbox
			frame = 1
		}

		ButtonType = {
			name = "save_button"
			position = { x=550 y=497 }
			quadTextureSprite ="GFX_button_123x34"
			buttonText = "EQUIPMENT_DESIGNER_SAVE"
			buttonFont = "hoi_18mbs"
			clicksound = "ui_tank_designer_save"
		}

		# drop down for equipment variants
		dropDownBoxType = {
			name = "equipments"
			position = { x = 20 y = 60 }
			size = { width = 350 height = 30 }

			containerWindowType = {
				name = "equipment_name_bg"
				size = { width = 100% height = 100% }

				background = {
					name = "name_bg"
					quadTextureSprite = "GFX_generic_background"
					position = { x = 0 y = 0 }
				}
			}

			editBoxType = {
				name = "name"
				position = { x = 35 y = 5 }
				font = "hoi_18mbs"
				size = { x=220 y=20 }
			}

			buttonType = {
				name = "name_reset"
				position = { x = -31 y = -1 }
				quadTextureSprite ="GFX_NV_btn_reset"
				clicksound = "ui_tank_designer_reset"
				orientation = "upper_right"
			}

			iconType = {
				name = "tank_design_icon"
				spriteType = "GFX_tank_design_icon"
				position = { x = 5 y = 1 }
				alwaystransparent = yes
			}

			expandedWindow = {
				name = "expanded_window"
				position = { x=10 y= -300 }
				show_position = { x = 10 y = 27 }
				show_animation_type = decelerated
				hide_animation_type = accelerated
				animation_time = 300
				size = { width=230 height=325 }
				verticalScrollbar = "right_vertical_slider"
				margin = { top = 7 bottom = 7 right = 6 }
				#clipping = no

				background = {
					name = "Background"
					quadTextureSprite ="GFX_tiled_window_1b_thin_border"
					position = { x = 0 y = 0 }
				}

				gridBoxType = {
					name = "equipments_grid"
					position = { x = 8 y = 0 }
					size = { width = 199 height = 100%% }
					slotsize = { width = 220 height = 60 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"

					# contains designer_equipment_entry

				}
			}
		}

		instantTextboxType = {
			name = "position_version"
			position = { x = 220 y = 65 }
			font = "hoi_18mbs"
			text_color_code = g
			maxWidth = 71
			maxHeight = 20
			alwaystransparent = yes
			multiline = no
			format = right
		}

		# Airframe name
		instantTextboxType = {
			name = "blueprint_type_name"
			position = { x = 60 y = 206 }
			font = "hoi4_typewriter16"
			maxWidth = 500
			maxHeight = 16
			format = center
		}

		# plane role field
		containerWindowType = {
			name = "plane_role"
			position = { x = 20 y = 95 }
			size = { width = 350 height = 40 }

			containerWindowType = {
				name = "equipment_name_bg"
				size = { width = 100% height = 100% }

				background = {
					name = "name_bg"
					quadTextureSprite = "GFX_generic_background"
					alwaystransparent = yes
				}
			}

			iconType = {
				name = "role_icon"
				spriteType = "GFX_wing_types_map"
				position = { x = 8 y = 14 }
				alwaystransparent = yes
			}

			instantTextboxType = {
				name = "role_text"
				position = { x = 48 y = 10 }
				font = "hoi_18mbs"
				maxWidth = 220
				maxHeight = 18
				alwaystransparent = yes
			}
		}

		buttonType = {
			name = "toggle_comparison_button"
			position = {x=-97 y=4}
			spriteType = "GFX_equip_overview_button"
			orientation = "UPPER_RIGHT"
			clicksound = click_default
			pdx_tooltip = "EQUIPMENT_COMPARISON"
		}

		buttonType = {
			name = "close_button"
			position = { x = -44 y = 6 }
			quadTextureSprite ="GFX_closebutton"
			buttonFont = "Main_14_black"
			shortcut = "ESCAPE"
			Orientation = "UPPER_RIGHT"
			clicksound = click_close
			pdx_tooltip = "CLOSE"
		}

		iconType = {
			name = "resources_bg"
			position = { x = 680 y = 496 }
			SpriteType = "GFX_resources_bg"
			alwaystransparent = yes
		}

		instantTextboxType = {
			name = "production_resources"
			position = { x= 688 y= 506 }
			font = "hoi_18mbs"
			maxWidth = 90
			maxHeight = 25
			pdx_tooltip = "EQUIPMENT_DESIGNER_PRODUCTION_RESOURCE_DESC"
			format = left
		}

		instantTextboxType = {
			name = "refit_cost"
			position = { x= 775 y=505 }
			font = "hoi_18mbs"
			maxWidth = 200
			maxHeight = 25
			format = center
			text = "Refit Cost: XXXX"
		}

		instantTextboxType = {
			name = "production_value"
			position = { x= 950 y=505 }
			font = "hoi_18mbs"
			maxWidth = 210
			maxHeight = 25
			#pdx_tooltip = "EQUIPMENT_DESIGNER_PRODUCTION_COST_DESC"
			format = right
		}

		# Module selection sub-window
		containerWindowType = {
			name = "module_selector_window"
			position = { x=2 y=40 }
			size = { width=538 height=464 }
			verticalScrollbar = "right_vertical_slider"
			scroll_wheel_factor = 40
			smooth_scrolling = yes

			background = {
				name = "background"
				spriteType = "GFX_tiled_window_1b_border"
			}

			iconType = {
				name = "icn_module_slot_frame"
				position = { x=17 y=18 }
				spriteType = "GFX_equipment_module_bg"
			}

			iconType = {
				name = "icon_module_slot"
				position = { x=56 y=42 }
				#size = { width=76 height=47 }
				spriteType = "GFX_locked_icon"
				#Orientation = "CENTER"
				centerPosition = yes
			}

			instantTextboxType = {
				name = "slot_name"
				position = { x=98 y=23 }
				maxWidth = 350
				maxHeight = 22
				font = "hoi_18mbs"
				text = "SHIP_DESIGNER_MODULE_SELECTION"
			}

			buttonType = {
				name = "btn_back"
				position = { x=390 y=23 }
				spriteType = "GFX_button_123x34"
				buttonText = "REGIMENTS_SELECTION_CANCEL"
				buttonFont = "hoi_18mbs"
				clicksound = click_close
			}

			gridBoxType = {
				name = "gb_modules"
				position = { x=17 y=70 }
				size = { width=510 height=10 }
				slotsize = { width = 247 height = 69 }
				max_slots_horizontal = 2
				format = UPPER_LEFT

				# code inserts equipment_module_category_entry or equipment_module_entry here
			}
		}

		containerWindowType = {
			name = "designer_intel_container"
			size = { width = 317 height = 540 }
			position = { x = 1168 y = 2 }
			clipping = no

			background = {
				name = "background"
				quadTextureSprite ="GFX_tiled_window_1b_border"
			}



			containerWindowType = {
				name = "our_filter_entry"
				position = { x = 12 y = 14 }
				size = { width = 168 height = 50 }
				clipping = no

				background = {
					name = "Background"
					quadTextureSprite ="GFX_diplo_filter_entry"
					clicksound = click_scroll
				}

				instantTextboxType = {
					name = "name"
					position = { x = 6 y = 7 }
					font = "hoi_16mbs"
					text = "OUR_EQUIPMENT"
					maxWidth = 110
					maxHeight = 18
					fixedsize = yes
					format = center
					alwaystransparent = yes
				}
			}

			containerWindowType = {
				name = "foreign_filter_entry"
				position = { x = 132 y = 14 }
				size = { width = 114 height = 50 }
				clipping = no

				background = {
					name = "Background"
					quadTextureSprite ="GFX_diplo_filter_entry"
					clicksound = click_scroll
				}

				instantTextboxType = {
					name = "name"
					position = { x = 6 y = 7 }
					font = "hoi_16mbs"
					text = "FOREIGN_EQUIPMENT"
					maxWidth = 110
					maxHeight = 18
					fixedsize = yes
					format = center
					alwaystransparent = yes
				}
			}

			containerWindowType = {
				name = "obsolete_filter_entry"
				position = { x = 12 y = 46 }
				size = { width = 164 height = 50 }
				clipping = no

				background = {
					name = "Background"
					quadTextureSprite ="GFX_diplo_filter_entry"
					clicksound = click_scroll
				}

				instantTextboxType = {
					name = "name"
					position = { x = 6 y = 7 }
					font = "hoi_16mbs"
					text = "OBSOLETE_EQUIPMENT"
					maxWidth = 110
					maxHeight = 18
					fixedsize = yes
					format = center
					alwaystransparent = yes
				}
			}

			containerWindowType = {
				name = "gridbox_container"
				size = { width = 256 height = 440 }
				position = { x = 0 y = 84 }
				clipping = yes
				#moveable = no
				#autohide_scrollbars = no

				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 42
				smooth_scrolling = yes

				background = {
					name = "Background"
					spriteType ="GFX_tiled_window_transparent"
				}

				gridBoxType = {
					name = "acquired_variants_grid"
					position = { x = 13 y = 0 }
					size = { width = 260 height = 470 }
					slotsize = { width = 260 height = 60 }
					max_slots_horizontal = 1
					format = UPPER_LEFT

					# contains designer_equipment_entry

				}
			}

			containerWindowType = {
				name = "country_filter_container"
				size = { width = 70 height = 509 }
				position = { x = 247 y = 16 }
				clipping = yes
				#moveable = no
				#autohide_scrollbars = no

				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 42
				smooth_scrolling = yes

				background = {
					name = "Background"
					spriteType ="GFX_tiled_window_transparent"
				}

				gridBoxType = {
					name = "variant_country_filter_gridbox"
					position = { x = 13 y = 3 }
					size = { width = 100 height = 502 }
					slotsize = { width = 60 height = 34 }
					max_slots_horizontal = 1
					format = UPPER_LEFT

					# contains designer_creator_entry

				}
			}

		}

		containerWindowType = {
			name = "referenced_info"
			position = { x=619 y=291}
			size = { width=536 height=202 }

			clipping = no

			iconType = {
				name ="stat_card_header"
				spriteType = "GFX_tank_designer_stat_card_header"
				position = { x = -1 y = -42 }
				alwaystransparent = no
			}

			buttonType = {
				name = "close_referenced_info"
				position = { x = -38 y = -36 }
				quadTextureSprite ="GFX_closebutton"
				buttonFont = "Main_14_black"
				shortcut = "ESCAPE"
				Orientation = "UPPER_RIGHT"
				clicksound = click_close
				pdx_tooltip = "CLOSE"
			}

			instantTextboxType = {
				name = "referenced_variant_name"
				position = { x = 18 y = -34 }
				font = "hoi_30header"
				borderSize = {x = 0 y = 0}
				text = "EQUIPMENT_DESIGNER_TITLE"
				maxWidth = 460
				maxHeight = 20
				format = left
				multiline = no
			}

			background = {
				name = "background"
				quadTextureSprite = "GFX_tank_designer_stat_card"
			}

			instantTextboxType = {
				name = "base_stats_label"
				position = { x = 15 y = 5 }
				font = "hoi4_typewriter22"
				text = "DESIGNER_BASE_STATS_LABEL"
				maxWidth = 165
				maxHeight = 20
				format = left
				fixedsize = yes
			}

			containerWindowType = {
				name = "ref_base_stats"
				position = { x = 10 y = 27 }
				size = { width = 171 height = 224 }
				clipping = yes

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

				verticalScrollbar = "right_vertical_slider"

				gridboxtype = {
					name = "stats_grid"
					position = { x = 5 y = 0 }
					size = { width = 155 height = 100%% }
					slotsize = { width = 155 height = 20 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}

			instantTextboxType = {
				name = "combat_stats_label"
				position = { x = 188 y = 5 }
				font = "hoi4_typewriter22"
				text = "DESIGNER_COMBAT_STATS_LABEL"
				maxWidth = 165
				maxHeight = 20
				format = left
				fixedsize = yes
			}

			containerWindowType = {
				name = "ref_combat_stats"
				position = { x = 183 y = 27 }
				size = { width = 174 height = 224 }
				clipping = yes

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

				verticalScrollbar = "right_vertical_slider"

				gridboxtype = {
					name = "stats_grid"
					position = { x = 5 y = 0 }
					size = { width = 155 height = 100%% }
					slotsize = { width = 155 height = 20 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}

			instantTextboxType = {
				name = "misc_stats_label"
				position = { x = 363 y = 5 }
				font = "hoi4_typewriter22"
				text = "FE_MISC_STATS"
				maxWidth = 165
				maxHeight = 20
				format = left
				fixedsize = yes
			}

			containerWindowType = {
				name = "ref_misc_stats"
				position = { x = 356 y = 27 }
				size = { width = 172 height = 224 }
				clipping = yes

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

				verticalScrollbar = "right_vertical_slider"

				gridboxtype = {
					name = "stats_grid"
					position = { x = 5 y = 0 }
					size = { width = 155 height = 100%% }
					slotsize = { width = 155 height = 20 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}
		}
	}

	# plane role entry for the drop-down menu
	containerWindowType = {
		name = "plane_designer_role_entry"
		size = { width = 277 height = 50 }
		clipping = no

		background = {
			name = "background"
			quadTextureSprite ="GFX_mini_tooltip"
			clicksound = "ui_tank_designer_role_entry"
		}

		background_margin = {
			top = 5
			bottom = 5
		}

		iconType = {
			name ="role"
			spriteType = "GFX_land_equipment_role_icons"
			position = { x = 4 y = 7 }
			alwaystransparent = yes
		}

		instantTextboxType = {
			name = "name"
			position = { x = 44 y = 5 }
			font = "hoi_18mbs"
			maxWidth = 200
			maxHeight = 38
			fixedsize = yes
			vertical_alignment = center
			alwaystransparent = yes
		}

		iconType = {
			name ="forbidden"
			spriteType = "GFX_role_forbidden"
			position = { x = 247 y = 17 }
			alwaystransparent = yes
		}
	}
}
