guiTypes = {

	# ARMY LEADERS WINDOW
	containerWindowType = {
		name = "armyleaderwindow"
		position = { x=-225 y=-295 }
		size = { width=550 height=590 }
		orientation = center
		moveable = yes
		fade_time = 500
		fade_type = linear
		click_to_front = yes

		positionType = {
			name = "pos_roster_overview_orientation_top_left"
			position = { x = 540 y = 80 }
		}

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

		instantTextboxType = {
			name = "header_text"
			position = { x = 20 y = 9 }
			font = "hoi_20bs"
			borderSize = {x = 0 y = 0}
			text = "CHOOSE_LEADER"
			maxWidth = 340
			maxHeight = 20
			fixedsize = yes
			format = left
		}

		ButtonType = {
			name = "sort_name"
			position = {x=95 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_NAME_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		editBoxType = {
			name = "leader_view_search"
			position = { x = 201 y = 44 }
			size = {x=267 y=20}
			font = "hoi_20b"
			borderSize = {x = 0 y = 0}
			text = UNIT_LEADER_SEARCH
			#maxWidth = 300
			#maxHeight = 20
			#format = left
		}

		ButtonType = {
			name = "sort_skills"
			position = {x=16 y=39}
			spriteType = "GFX_sort_skill"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}
		ButtonType = {
			name = "sort_advisor"
			position = {x=42 y=39}
			spriteType = "GFX_sort_adviser"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}
		ButtonType = {
			name = "sort_capacity"
			position = {x=440 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_CAPACITY_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_attack_skill"
			position = {x=323 y=39}
			spriteType = "GFX_sort_attack_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_defense_skill"
			position = {x=349 y=39}
			spriteType = "GFX_sort_defense_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_planning_skill"
			position = {x=375 y=39}
			spriteType = "GFX_sort_planning_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_supply_skill"
			position = {x=401 y=39}
			spriteType = "GFX_sort_supply_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		containerWindowType = {
			name = "leaders"
			position = { x = 0 y = 60 }
			size = { width = 100%% height = 507 }
			verticalScrollbar = "right_vertical_slider"
			margin = { top = 14 bottom = 22}
			scroll_wheel_factor = 98
			smooth_scrolling = yes

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

			gridBoxType = {
				name = "leaders_grid"
				position = { x = 13 y = 1 }
				size = { width = 100%% height = 100%% }
				slotsize = { width = 510 height = 98 }
				max_slots_horizontal = 1
				format = "UPPER_LEFT"
			}
		}

		buttonType = {
			name = "no_leader_button"
			position = { x = -250 y = -32 }
			quadTextureSprite ="GFX_button_221x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNASSIGN"
			pdx_tooltip = "UNASSIGN"
		}

		buttonType = {
			name = "new_leader_button"
			position = { x = -535 y = -32 }
			quadTextureSprite = "GFX_button_261x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNIT_LEADER_NEW_LEADER"
		}

		buttonType = {
			name = "show_divisional_commanders_button"
			position = { x = -535 y = -31 }
			quadTextureSprite = "GFX_button_261x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNIT_LEADER_NEW_LEADER_DIVC"
		}

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

		instantTextboxType = {
			name = "show_assigned_text"
			position = { x = 325 y = 10 }
			font = "hoi_18mbs"
			borderSize = {x = 0 y = 0}
			text = "SHOW_ACTIVE"
			maxWidth = 140
			maxHeight = 20
			fixedsize = yes
			format = right
		}

		checkboxType = {
			name = "show_assigned"
			position = { x = 470  y = 5 }
			quadTextureSprite ="GFX_generic_checkbox"
			Orientation = "UPPER_LEFT"
			clicksound = click_default
		}
	}

	# ARMY LEADER ENTRY
	containerWindowType = {
		name = "armyleaderentry"
		size = { width=510 height=98 }
		clipping = no
		fade_time = 500
		fade_type = linear
				
		background = {
			name = "Background"		
			spriteType ="GFX_leader_selection_entry_bg"
		}
		
		buttonType = {
			name = "leader_button"
			position = {x=56 y=5}
			quadTextureSprite ="GFX_leader_unknown"
			scale = 0.42
		}

		iconType = {
			name = "clip_icon"
			position = {x=55 y=0}
			quadTextureSprite ="GFX_clip"
			alwaystransparent = yes
		}

		iconType = {
			name = "army_hq_icon"
			position = {x=56 y=5}
			spriteType ="GFX_hq_badge_bg"
			alwaystransparent = yes
		}

		iconType = {
			name = "leader_enroute"
			position = {x=56 y=5}
			quadTextureSprite ="GFX_leader_en_route"
			alwaystransparent = yes
		}

		iconType = {
			name = "skill_tooltip_icon"
			position = {x=0 y=6}
			quadTextureSprite ="GFX_skill_transparent"
		}	

		buttonType = {
			name = "generate_advisor_button"
			position = {x=13 y=65}	
			quadTextureSprite ="GFX_give_role_leader_strip"
			buttonFont = "hoi_16mbs"	
			clicksound = click_default
			frame = 1
		}
		iconType = {
			name = "advisor_role_icon"
			position = {x=3 y=45}	
			spriteType = "GFX_empty_paper"
			alwaystransparent = yes
		}
		iconType = {
			name = "advisor_role_traits_icon"
			position = { x = 28 y = 70 }
			spriteType = "GFX_idea_traits_strip"
			centerposition = yes
			alwaystransparent = yes
			frame = 1
		}
		buttonType = {
			name = "promote_btn"
			position = {x=414 y=56}	
			quadTextureSprite ="GFX_leader_selection_button"
			buttonText = UNIT_LEADER_PROMOTE
			buttonFont = "hoi_16mbs"	
			clicksound = click_default		
			frame = 1
		}
		
		buttonType = {
			name = "traits_btn"
			position = {x=318 y=56}	
			quadTextureSprite ="GFX_leader_selection_button"
			buttonText = UNIT_LEADER_TRAITS
			buttonFont = "hoi_16mbs"	
			pdx_tooltip = "OPEN_LEADER_DETAILS"	
			clicksound = click_default
			frame = 1
		}
		
		instantTextboxType = {
			name = "divisions_count"
			position = {x=424 y=17}
			font = "hoi_18mbs"
			maxWidth = 85
			maxHeight = 23
			format = centre
		}
		
		instantTextboxType = {
			name = "title"
			position = { x = 128 y = 12 }
			font = "hoi4_typewriter16"
			text = "Mr."
			maxWidth = 150
			maxHeight = 18
		}
		
		instantTextboxType = {
			name = "name"
			position = { x = 128 y = 30 }
			font = "hoi4_typewriter16"
			text = "name"
			fixedsize = yes
			maxWidth = 180
			maxHeight = 18
		}
		
		instantTextboxType = {
			name = "skill"
			position = { x = 1 y = 19 }
			font = "hoi_30header"
			text = "skill"
			maxWidth = 50
			maxHeight = 18
			format =center
			alwaystransparent = yes
		}
		
		gridBoxType = {    
			name = "traits_grid"
			position = { x = 126 y = 60 }
			size = { width = 450 height = 50 }
			slotsize = { width=24 height=32 }
			max_slots_vertical = 1			
			format = "UPPER_LEFT"
		}
		
		iconType = {
			name = "medal_collection"
			spriteType = "GFX_medal_collection"
			position = { x=295 y=58 }
		}

		containerWindowType = {
		name = "skill_container"
		
			iconType = {
				name = "leader_stat_attack_bg"
				spriteType = "GFX_trait_attack"
				position = { x=310 y=11 }
			}
			
			instantTextboxType = {
				name = "leader_stat_attack"
				position = {x=308 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "7"
			}

			iconType = {
				name = "leader_stat_defense_bg"
				spriteType = "GFX_trait_defense"
				position = { x=337 y=10 }
			}
			
			instantTextboxType = {
				name = "leader_stat_defense"
				position = {x=335 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "8"
			}

			iconType = {
				name = "leader_stat_planning_bg"
				spriteType = "GFX_trait_planning"
				position = { x=364 y=11 }
			}
			
			instantTextboxType = {
				name = "leader_stat_planning"
				position = {x=362 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "9"
			}

			iconType = {
				name = "leader_stat_logistics_bg"
				spriteType = "GFX_trait_logistics"
				position = { x=390 y=11 }
			}
			
			instantTextboxType = {
				name = "leader_stat_logistics"
				position = {x=388 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "10"
			}
		}
		buttonType = {
			name = "country_flag"
			quadTextureSprite ="GFX_flag_small2"
			position = { x = 445 y = 50 }
		}
		
		containerWindowType = {
			name = "faction_commander"
			position = { x = 308 y = 4 }
			size = { width= 200 height=52 }
			
			containerWindowType = {
				name = "mastery"
				position = {x=8 y=12}

				instantTextBoxType = {
						name = "mastery_value"
						font = "hoi_16mbs"
						position = { x=0 y=18 }
						maxWidth = 40
						maxHeight = 23
						format = center
						fixedsize = yes
						text = "0%"
					}

					iconType = {
						name = "mastery_icon"
						spriteType = "GFX_doctrine_mastery"
						position = { x=9 y=0 }
					}
				}	
			
		containerWindowType = {
				name = "supply_divisions"
				position = {x=43 y=12}

					instantTextBoxType = {
						name = "supply_value"
						font = "hoi_16mbs"
						position = { x=0 y=18 }
						maxWidth = 40
						maxHeight = 23
						format = center
						fixedsize = yes
						text = "0"
					}

					iconType = {
						name = "supply_icon"
						spriteType = "GFX_MODIFIER_SUPPLY_CONSUMPTION_FACTOR"
						position = { x=5 y=0 }
					}
				}

				containerWindowType = {
					name = "supply_navy"
					position = {x=78 y=12}

					instantTextBoxType = {
						name = "supply_navy_value"
						font = "hoi_16mbs"
						position = { x=0 y=18 }
						maxWidth = 40
						maxHeight = 23
						format = center
						fixedsize = yes
						text = "0"
					}

					iconType = {
						name = "supply_navy_icon"
						spriteType = "GFX_MODIFIER_NAVAL_SUPPLY_CONSUMPTION_FACTOR"
						position = { x=5 y=0 }
					}
				}	
				
				containerWindowType = {
				name = "countries"
				position = {x=113 y=12}

				instantTextBoxType = {
					name = "assigned_countries"
					font = "hoi_16mbs"
					position = { x=0 y=18 }
					maxWidth = 40
					maxHeight = 23
					format = center
					fixedsize = yes
					text = "0/0"
				}

				iconType = {
					name = "assigned_countries_icon"
					spriteType = "GFX_assigned_countries_icon"
					position = { x=5 y=-8 }
				}
			}

			containerWindowType = {
				name = "regions"
				position = {x=148 y=12}

				instantTextBoxType = {
					name = "assigned_regions"
					font = "hoi_16mbs"
					position = { x=0 y=18 }
					maxWidth = 40
					maxHeight = 23
					format = center
					fixedsize = yes
					text = "0/0"
				}

				iconType = {
					name = "assigned_regions_icon"
					spriteType = "GFX_icon_occupied_territories"
					position = { x=5 y=-8 }
				}								
			}	
			
		}
	}

	# CAPTURED ARMY LEADERS WINDOW
	containerWindowType = {
		name = "capturedarmyleaderwindow"
		position = { x = 540 y = 80 }
		size = { width=550 height=590 }
		moveable = yes
		fade_time = 500
		fade_type = linear
		click_to_front = yes
		clipping = no

		positionType = {
			name = "pos_roster_overview_orientation_top_left"
			position = { x = 540 y = 80 }
		}

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

		instantTextboxType = {
			name = "header_text"
			position = { x = 20 y = 9 }
			font = "hoi_20bs"
			borderSize = {x = 0 y = 0}
			text = "CAPTURED_GENERALS"
			maxWidth = 340
			maxHeight = 20
			fixedsize = yes
			format = left
		}

		ButtonType = {
			name = "sort_name"
			position = {x=95 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_NAME_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		editBoxType = {
			name = "leader_view_search"
			position = { x = 201 y = 44 }
			size = {x=267 y=20}
			#textureFile = ""
			font = "hoi_20b"
			borderSize = {x = 0 y = 0}
			text = UNIT_LEADER_SEARCH
			#maxWidth = 300
			#maxHeight = 20
			#format = left
		}

		ButtonType = {
			name = "sort_skills"
			position = {x=16 y=39}
			spriteType = "GFX_sort_skill"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}
		ButtonType = {
			name = "sort_capacity"
			position = {x=440 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_CAPACITY_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_attack_skill"
			position = {x=323 y=39}
			spriteType = "GFX_sort_attack_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_defense_skill"
			position = {x=349 y=39}
			spriteType = "GFX_sort_defense_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_planning_skill"
			position = {x=375 y=39}
			spriteType = "GFX_sort_planning_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_supply_skill"
			position = {x=401 y=39}
			spriteType = "GFX_sort_supply_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		containerWindowType = {
			name = "leaders"
			position = { x = 0 y = 103 }
			size = { width = 100%% height = 509 }
			verticalScrollbar = "right_vertical_slider"
			margin = { bottom = 22 }
			scroll_wheel_factor = 98
			smooth_scrolling = yes

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

			gridBoxType = {
				name = "leaders_grid"
				position = { x = 13 y = 7 }
				size = { width = 100%% height = 100%% }
				slotsize = { width = 510 height = 98 }
				max_slots_horizontal = 1
				format = "UPPER_LEFT"
			}
		}

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

		buttonType = {
			name = "our_leaders_tab"
			position = { x = -263 y = 72 }
			quadTextureSprite = "GFX_tab_large"
			text = "CAPTURED_GENERALS_OURS"
			buttonFont = "hoi_20b"
			frame = 1
			clicksound = click_default
			Orientation = center_up
		}

		buttonType = {
			name = "their_leaders_tab"
			position = { x = -9 y = 72 }
			quadTextureSprite = "GFX_tab_large"
			text = "CAPTURED_GENERALS_THEIRS"
			buttonFont = "hoi_20b"
			frame = 2
			clicksound = click_default
			Orientation = center_up
		}
	}

	# CAPTURED ARMY LEADER ENTRY
	containerWindowType = {
		name = "capturedarmyleaderentry"
		position = { x = 0 y = 8 }
		size = { width=510 height=98 }
		clipping = no
		fade_time = 500
		fade_type = linear

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

		buttonType = {
			name = "leader_button"
			position = {x=56 y=5}
			quadTextureSprite ="GFX_leader_unknown"
			scale = 0.42
		}

		iconType = {
			name = "captured_overlay"
			position = {x=49 y=-2}
			spriteType = "GFX_captured_general_bars"
			alwaystransparent = yes
		}

		iconType = {
			name = "skill_tooltip_icon"
			position = {x=0 y=6}
			quadTextureSprite ="GFX_skill_transparent"
		}

		instantTextboxType = {
			name = "divisions_count"
			position = {x=424 y=17}
			font = "hoi_18mbs"
			maxWidth = 85
			maxHeight = 23
			format = centre
		}

		instantTextboxType = {
			name = "title"
			position = { x = 128 y = 12 }
			font = "hoi4_typewriter16"
			text = "Mr."
			maxWidth = 150
			maxHeight = 18
		}

		instantTextboxType = {
			name = "name"
			position = { x = 128 y = 30 }
			font = "hoi4_typewriter16"
			text = "name"
			fixedsize = yes
			maxWidth = 180
			maxHeight = 18
		}

		instantTextboxType = {
			name = "skill"
			position = { x = 1 y = 19 }
			font = "hoi_30header"
			text = "skill"
			maxWidth = 50
			maxHeight = 18
			format =center
			alwaystransparent = yes
		}

		gridBoxType = {
			name = "traits_grid"
			position = { x = 126 y = 60 }
			size = { width = 450 height = 50 }
			slotsize = { width=24 height=32 }
			max_slots_vertical = 1
			format = "UPPER_LEFT"
		}

		iconType = {
			name = "medal_collection"
			spriteType = "GFX_medal_collection"
			position = { x=295 y=58 }
		}

		containerWindowType = {
			name = "skill_container"

			iconType = {
				name = "leader_stat_attack_bg"
				spriteType = "GFX_trait_attack"
				position = { x=310 y=11 }
			}

			instantTextboxType = {
				name = "leader_stat_attack"
				position = {x=308 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "7"
			}

			iconType = {
				name = "leader_stat_defense_bg"
				spriteType = "GFX_trait_defense"
				position = { x=337 y=10 }
			}

			instantTextboxType = {
				name = "leader_stat_defense"
				position = {x=335 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "8"
			}

			iconType = {
				name = "leader_stat_planning_bg"
				spriteType = "GFX_trait_planning"
				position = { x=364 y=11 }
			}

			instantTextboxType = {
				name = "leader_stat_planning"
				position = {x=362 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "9"
			}

			iconType = {
				name = "leader_stat_logistics_bg"
				spriteType = "GFX_trait_logistics"
				position = { x=390 y=11 }
			}

			instantTextboxType = {
				name = "leader_stat_logistics"
				position = {x=388 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "10"
			}
		}

		buttonType = {
			name = "country_flag"
			quadTextureSprite ="GFX_flag_small2"
			position = { x = 7 y = 59 }
		}

		iconType = {
			name = "country_flag_frame"
			spriteType = "GFX_diplo_countrylist_flag_frame"
			position = { x = 2 y = 56 }
			alwaystransparent = yes
		}

		containerWindowType = {
			name = "rescue_raid_container"
			position = { x=414 y=56 }
			size = { width=96 height=28 }

			buttonType = {
				name = "rescue_raid_button"
				position = { x=0 y=0 }
				quadTextureSprite = "GFX_leader_rescue_raid_button"
				buttonFont = "hoi_16mbs"
				clicksound = click_default
				frame = 2
			}

			positionType = {
				name = rescue_raid_text_pos_default
				position = { x = -2 y = 7 }
			}

			positionType = {
				name = rescue_raid_text_pos_eligible
				position = { x = -8 y = 7 }
			}

			instantTextBoxType = {
				name = "rescue_raid_button_text"
				position = { x=0 y=7 } # Dynamic - based on rescue_raid_text_pos_default/eligible
				font = "hoi_16mbs"
				text = "LEADER_RESCUE_RAID"
				format = center
				maxWidth = 96
				maxHeight = 28
				fixedsize = yes
				alwaystransparent = yes
			}
		}

		buttonType = {
			name = "captor_flag"
			quadTextureSprite ="GFX_flag_smallest"
			position = { x = 100 y = 66 }
		}
	}

	# NAVAL LEADERS WINDOW
	containerWindowType = {
		name = "navyleaderwindow"
		position = { x=-225 y=-225 }
		size = { width=550 height=590 }
		orientation = center
		moveable = yes
		fade_time = 500
		fade_type = linear
		click_to_front = yes

		positionType = {
			name = "pos_roster_overview_orientation_top_left"
			position = { x = 540 y = 80 }
		}

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

		instantTextboxType = {
			name = "header_text"
			position = { x = 20 y = 9 }
			font = "hoi_20bs"
			borderSize = {x = 0 y = 0}
			text = "CHOOSE_LEADER"
			maxWidth = 340
			maxHeight = 20
			fixedsize = yes
			format = left
		}

		ButtonType = {
			name = "sort_name"
			position = {x=95 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_NAME_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		editBoxType = {
			name = "leader_view_search"
			position = { x = 201 y = 44 }
			size = {x=267 y=20}
			font = "hoi_20b"
			borderSize = {x = 0 y = 0}
			text = "UNIT_LEADER_SEARCH"
			#maxWidth = 300
			#maxHeight = 20
			#format = left
		}

		ButtonType = {
			name = "sort_skills"
			position = {x=16 y=39}
			spriteType = "GFX_sort_skill"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_advisor"
			position = {x=42 y=39}
			spriteType = "GFX_sort_adviser"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_capacity"
			position = {x=440 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_CAPACITY_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_attack_skill"
			position = {x=323 y=39}
			spriteType = "GFX_sort_attack_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_defense_skill"
			position = {x=349 y=39}
			spriteType = "GFX_sort_defense_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_maneuvering_skill"
			position = {x=375 y=39}
			spriteType = "GFX_sort_maneuvering_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_coordination_skill"
			position = {x=401 y=39}
			spriteType = "GFX_sort_coordination_trait"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		containerWindowType = {
			name = "leaders"
			position = { x = 0 y = 60 }
			size = { width = 100%% height = 507 }
			verticalScrollbar = "right_vertical_slider"
			scroll_wheel_factor = 98
			smooth_scrolling = yes
			margin = { top = 14 bottom = 22}

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

			gridBoxType = {
				name = "leaders_grid"
				position = { x = 13 y = 1 }
				size = { width = 100%% height = 100%% }
				slotsize = { width = 510 height = 98 }
				max_slots_horizontal = 1
				format = "UPPER_LEFT"
			}
		}

		buttonType = {
			name = "no_leader_button"
			position = { x = -250 y = -32 }
			quadTextureSprite ="GFX_button_221x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNASSIGN"
			pdx_tooltip = "UNASSIGN"
			clicksound = click_default
		}

		buttonType = {
			name = "new_leader_button"
			position = { x = -535 y = -32 }
			quadTextureSprite = "GFX_button_261x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNIT_LEADER_NEW_LEADER"
			clicksound = click_default
		}

		buttonType = {
			name = "show_ship_captains_button"
			position = { x = -535 y = -31 }
			quadTextureSprite = "GFX_button_261x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNIT_LEADER_NEW_LEADER_CAPTAIN"
		}

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

		instantTextboxType = {
			name = "show_assigned_text"
			position = { x = 380 y = 10 }
			font = "hoi_18mbs"
			borderSize = {x = 0 y = 0}
			text = "SHOW_ACTIVE"
			maxWidth = 100
			maxHeight = 20
			format = left
		}

		checkboxType = {
			name = "show_assigned"
			position = { x = 470  y = 5 }
			quadTextureSprite ="GFX_generic_checkbox"
			Orientation = "UPPER_LEFT"
			clicksound = click_default
		}
	}

	# NAVAL LEADER ENTRY
	containerWindowType = {
		name = "navyleaderentry"
		size = { width=510 height=98 }
		fade_time = 500
		fade_type = linear
		clipping = no

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

		iconType = {
			name = "leader_icon"
			position = {x=56 y=6}
			quadTextureSprite ="GFX_leader_unknown"
			scale = 0.41
		}

		iconType = {
			name = "clip_icon"
			position = {x=54 y=0}
			quadTextureSprite ="GFX_clip"
			alwaystransparent = yes
		}

		iconType = {
			name = "skill_tooltip_icon"
			position = {x=0 y=6}
			quadTextureSprite ="GFX_skill_transparent"
		}

		buttonType = {
			name = "traits_btn"
			position = {x=318 y=56}
			quadTextureSprite ="GFX_leader_selection_button"
			buttonText = UNIT_LEADER_TRAITS
			buttonFont = "hoi_16mbs"
			pdx_tooltip = "OPEN_LEADER_DETAILS"
			clicksound = click_default
			frame = 1
		}

		buttonType = {
			name = "generate_advisor_button"
			position = {x=13 y=65}
			quadTextureSprite ="GFX_give_role_leader_strip"
			buttonFont = "hoi_16mbs"
			clicksound = click_default
			frame = 1
		}

		instantTextboxType = {
			name = "divisions_count"
			position = {x=424 y=17}
			font = "hoi_18mbs"
			maxWidth = 85
			maxHeight = 23
			format = centre
			text = "999"
		}

		instantTextboxType = {
			name = "title"
			position = { x = 128 y = 12 }
			font = "hoi_16mbs"
			text = "Mr."
			maxWidth = 100
			maxHeight = 18
		}

		instantTextboxType = {
			name = "name"
			position = { x = 128 y = 30 }
			font = "hoi_16mbs"
			text = "name"
			maxWidth = 180
			maxHeight = 18
			fixedsize = yes
			alwaystransparent = yes
		}

		instantTextboxType = {
			name = "skill"
			position = { x = 20 y = 19 }
			font = "hoi_30header"
			text = "skill"
			maxWidth = 50
			maxHeight = 18
		}

		gridBoxType = {
			name = "traits_grid"
			position = { x = 130 y = 60 }
			size = { width = 450 height = 50 }
			slotsize = { width=24 height=32 }
			max_slots_vertical = 1
			format = "UPPER_LEFT"
		}
		iconType = {
			name = "advisor_role_icon"
			position = {x=3 y=45}
			spriteType = "GFX_empty_paper"
			alwaystransparent = yes
		}
		iconType = {
			name = "advisor_role_traits_icon"
			position = { x = 28 y = 70 }
			spriteType = "GFX_idea_traits_strip"
			centerposition = yes
			alwaystransparent = yes
			frame = 1
		}
containerWindowType = {
			name = "stat_container"

			iconType = {
				name = "leader_stat_attack_bg"
				spriteType = "GFX_trait_attack"
				position = { x=310 y=11 }
			}

			instantTextboxType = {
				name = "leader_stat_attack"
				position = {x=308 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "7"
			}

			iconType = {
				name = "leader_stat_defense_bg"
				spriteType = "GFX_trait_defense"
				position = { x = 337 y = 10 }
			}

			instantTextboxType = {
				name = "leader_stat_defense"
				position = {x=335 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "8"
			}

			iconType = {
				name = "leader_stat_maneuvering_bg"
				spriteType = "GFX_trait_maneuvering"
				position = { x=390 y=11 }
			}

			instantTextboxType = {
				name = "leader_stat_maneuvering"
				position = {x=388 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "9"
			}

			iconType = {
				name = "leader_stat_coordination_bg"
				spriteType = "GFX_trait_coordination"
				position = { x=364 y=11 }
			}

			instantTextboxType = {
				name = "leader_stat_coordination"
				position = {x=362 y=29}
				font = "hoi_16mbs"
				maxWidth = 30
				maxHeight = 23
				format = center
				text = "10"
			}
		}
		buttonType = {
			name = "country_flag"
			quadTextureSprite ="GFX_flag_small2"
			position = { x = 445 y = 50 }
		}

containerWindowType = {
			name = "faction_commander"
			position = { x = 308 y = 4 }
			size = { width= 200 height=50 }


			containerWindowType = {
				name = "mastery"
				position = {x=8 y=12}

				instantTextBoxType = {
						name = "mastery_value"
						font = "hoi_16mbs"
						position = { x=0 y=18 }
						maxWidth = 40
						maxHeight = 23
						format = center
						fixedsize = yes
						text = "0%"
					}

					iconType = {
						name = "mastery_icon"
						spriteType = "GFX_doctrine_mastery"
						position = { x=9 y=0 }
					}
				}

		containerWindowType = {
				name = "supply_divisions"
				position = {x=43 y=12}

					instantTextBoxType = {
						name = "supply_value"
						font = "hoi_16mbs"
						position = { x=0 y=18 }
						maxWidth = 40
						maxHeight = 23
						format = center
						fixedsize = yes
						text = "0"
					}

					iconType = {
						name = "supply_icon"
						spriteType = "GFX_MODIFIER_SUPPLY_CONSUMPTION_FACTOR"
						position = { x=5 y=0 }
					}
				}

				containerWindowType = {
					name = "supply_navy"
					position = {x=78 y=12}

					instantTextBoxType = {
						name = "supply_navy_value"
						font = "hoi_16mbs"
						position = { x=0 y=18 }
						maxWidth = 40
						maxHeight = 23
						format = center
						fixedsize = yes
						text = "0"
					}

					iconType = {
						name = "supply_navy_icon"
						spriteType = "GFX_MODIFIER_NAVAL_SUPPLY_CONSUMPTION_FACTOR"
						position = { x=5 y=0 }
					}
				}

				containerWindowType = {
				name = "countries"
				position = {x=113 y=12}

				instantTextBoxType = {
					name = "assigned_countries"
					font = "hoi_16mbs"
					position = { x=0 y=18 }
					maxWidth = 40
					maxHeight = 23
					format = center
					fixedsize = yes
					text = "0/0"
				}

				iconType = {
					name = "assigned_countries_icon"
					spriteType = "GFX_assigned_countries_icon"
					position = { x=5 y=-8 }
				}
			}

			containerWindowType = {
				name = "regions"
				position = {x=148 y=12}

				instantTextBoxType = {
					name = "assigned_regions"
					font = "hoi_16mbs"
					position = { x=0 y=18 }
					maxWidth = 40
					maxHeight = 23
					format = center
					fixedsize = yes
					text = "0/0"
				}

				iconType = {
					name = "assigned_regions_icon"
					spriteType = "GFX_icon_occupied_territories"
					position = { x=5 y=-8 }
				}
			}

		}
	}

	# OPERATIVE LEADERS WINDOW
	containerWindowType = {
		name = "operativeleaderwindow"
		position = { x=-225 y=-225 }
		size = { width=550 height=590 }
		orientation = center
		moveable = yes
		click_to_front = yes
		show_sound = Spy_Map_Mode_Select_Agent

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

		instantTextboxType = {
			name = "header_text"
			position = { x = 20 y = 9 }
			font = "hoi_20bs"
			borderSize = {x = 0 y = 0}
			text = "CHOOSE_LEADER"
			maxWidth = 360
			maxHeight = 20
			fixedsize = yes
			format = left
		}

		ButtonType = {
			name = "sort_name"
			position = {x=95 y=37}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_NAME_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		editBoxType = {
			name = "leader_view_search"
			position = { x = 200 y = 42 }
			size = {x=120 y=20}
			font = "hoi_20b"
			borderSize = {x = 0 y = 0}
			text = "UNIT_LEADER_SEARCH"
		}

		ButtonType = {
			name = "sort_skills"
			position = {x=13 y=37}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_SKILL_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
		}

		containerWindowType = {
			name = "leaders"
			position = { x = 0 y = 60 }
			size = { width = 100%% height = 507 }
			verticalScrollbar = "right_vertical_slider"
			margin = { top = 14 bottom = 22}
			scroll_wheel_factor = 98
			smooth_scrolling = yes

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

			gridBoxType = {
				name = "leaders_grid"
				position = { x = 13 y = 1 }
				size = { width = 100%% height = 100%% }
				slotsize = { width = 510 height = 98 }
				max_slots_horizontal = 1
				format = "UPPER_LEFT"
			}
		}

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

		checkboxType = {
			name = "resume_mission_cb"
			position = { x = 100  y = 558 }
			quadTextureSprite ="GFX_generic_checkbox"
			Orientation = "UPPER_LEFT"
			clicksound = click_default
			pdx_tooltip = "OPERATIVE_RESUME_MISSION_AFTER_OPERATION_TOOLTIP"
		}

		instantTextboxType = {
			name = "resume_mission_txt"
			position = {x=150 y=564 }
			font = "hoi_18mbs"
			format = left
			text = "OPERATIVE_RESUME_MISSION_AFTER_OPERATION_CHECKBOX_LABEL"
			pdx_tooltip = "OPERATIVE_RESUME_MISSION_AFTER_OPERATION_TOOLTIP"
		}

	}

	# OPERATIVE LEADER ENTRY
	containerWindowType = {
		name = "operativeleaderentry"
		size = { width=510 height=98 }
		fade_time = 500
		fade_type = linear
		clipping = no

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

		positionType = {
			name = "operative_portrait_pos"
			position = { x=53 y=0 }
		}

		### reveal in code as bg for mission or operation icon overlay
		iconType = {
			name = "portrait_overlay_bg"
			position = { x=100 y=67 }
			spriteType = "GFX_mapicon_operative_mission_background"
			scale= 0.5
		}

		iconType = {
			name = "mission_icon"
			position = { x=102 y=69 }
			spriteType = "GFX_operative_mission_icons_small"
			frame = 1
		}

		iconType = {
			name = "operation_icon"
			position = { x=100 y=67 }
			scale = 0.5
		}

		iconType = {
			name = "resume_mission_icon"
			position = { x=56 y=68 }
			spriteType = "GFX_operative_resume_mission_icon_small"
			pdx_tooltip = "OPERATIVE_RESUME_MISSION_AFTER_OPERATION_INDICATOR_TOOLTIP"
			scale= 0.95
		}

		iconType = {
			name = "clip_icon"
			position = {x=54 y=0}
			quadTextureSprite ="GFX_clip"
			alwaystransparent = yes
		}

		iconType = {
			name = "skill_tooltip_icon"
			position = {x=0 y=6}
			quadTextureSprite ="GFX_skill_transparent"
		}

		instantTextboxType = {
			name = "title"
			position = { x = 128 y = 12 }
			font = "hoi4_typewriter16"
			text = "Mr."
			maxWidth = 100
			maxHeight = 18
		}

		instantTextboxType = {
			name = "name"
			position = { x = 128 y = 30 }
			font = "hoi4_typewriter16"
			text = "name"
			maxWidth = 210
			maxHeight = 18
			fixedsize = yes
			alwaystransparent = yes
		}

		instantTextboxType = {
			name = "skill"
			position = { x = 20 y = 19 }
			font = "hoi_30header"
			text = "skill"
			maxWidth = 50
			maxHeight = 18
		}

		gridBoxType = {
			name = "traits_grid"
			position = { x = 130 y = 60 }
			size = { width = 450 height = 50 }
			slotsize = { width=24 height=32 }
			max_slots_vertical = 1
			format = "UPPER_LEFT"
		}

		gridBoxType = {
			name = "nationalities_grid"
			position = {x=441 y=-11}
			size = {width=100 height=46}
			slotsize = {width=26 height=21}
			format = "LOWER_LEFT"
		}

	}

	containerWindowType = {
		name = "unit_leader_trait_entry"
		size = { width=24 height=32 }
		position = { x = 0 y = -5 }
		clipping = no

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

	containerWindowType = {
		name = "unit_leader_exile_trait_entry"
		size = { width=24 height=32 }
		position = { x = 0 y = 0 }
		clipping = no

		iconType = {
			name = "exile_flag"
			quadTextureSprite ="GFX_flag_small"
			position = { x = 0 y = 2 }
		}

		iconType = {
			name = "exile_flag_frame"
			quadTextureSprite ="GFX_div_designer_exile_flag_frame2"
			position = { x = 2 y = -2 }
			alwaystransparent = yes
		}
	}

	containerWindowType = {
		name = "division_medal_entry"
		size = { width=24 height=32 }
		position = { x = 0 y = -5 }
		clipping = no

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

	containerWindowType = {
		name = "divisioncommanderwindow"
		position = { x=-225 y=-295 }
		size = { width=550 height=590 }
		orientation = center
		moveable = yes
		fade_time = 500
		fade_type = linear
		click_to_front = yes

		positionType = {
			name = "pos_roster_overview_orientation_top_left"
			position = { x = 540 y = 80 }
		}

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

		instantTextboxType = {
			name = "header_text"
			position = { x = 20 y = 9 }
			font = "hoi_20bs"
			borderSize = {x = 0 y = 0}
			text = "CHOOSE_DIVISIONAL_LEADER"
			maxWidth = 340
			maxHeight = 20
			fixedsize = yes
			format = left
		}

		editBoxType = {
			name = "leader_view_search"
			position = { x = 201 y = 44 }
			size = {x=267 y=20}
			font = "hoi_20b"
			borderSize = {x = 0 y = 0}
			text = UNIT_LEADER_SEARCH
		}

		ButtonType = {
			name = "sort_experience"
			position = {x=14 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			#buttonText = "DIVISION_COMMANDER_EXPERIENCE_SORT"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_unit_type"
			position = {x=96 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = "DIVISION_COMMANDER_TYPE_SORT"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		iconType = {
			name = "unit_level_sort"
			spriteType = "GFX_unit_level"
			position = { x=40 y=40 }
			alwaystransparent = yes
		}

		ButtonType = {
			name = "sort_medals"
			position = {x=334 y=39}
			size = { x = 200 y = 28 }
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = "DIVISION_COMMANDER_MEDALS_SORT"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		iconType = {
			name = "total_exp_sort"
			spriteType = "GFX_unit_level"
			position = { x=40 y=40 }
			alwaystransparent = yes
		}

		ButtonType = {
			name = "sort_total_exp"
			position = {x=438 y=39}
			size = { x = 200 y = 28 }
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = "DIVISION_COMMANDER_TOTAL_EXPERIENCE_SORT"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		containerWindowType = {
			name = "leaders"
			position = { x = 0 y = 60 }
			size = { width = 100%% height = 507 }
			verticalScrollbar = "right_vertical_slider"
			margin = { top = 14 bottom = 22}
			scroll_wheel_factor = 98
			smooth_scrolling = yes

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

			gridBoxType = {
				name = "leaders_grid"
				position = { x = 13 y = 1 }
				size = { width = 100%% height = 100%% }
				slotsize = { width = 510 height = 98 }
				max_slots_horizontal = 1
				format = "UPPER_LEFT"
			}
		}

		#buttonType = {
		#	name = "no_leader_button"
		#	position = { x = -250 y = -32 }
		#	quadTextureSprite ="GFX_button_221x34"
		#	buttonFont = "hoi_18mbs"
		#	Orientation = "LOWER_RIGHT"
		#	buttonText = "UNASSIGN"
		#	pdx_tooltip = "UNASSIGN"
		#}

		#buttonType = {
		#	name = "new_leader_button"
		#	position = { x = -535 y = -32 }
		#	quadTextureSprite = "GFX_button_261x34"
		#	buttonFont = "hoi_18mbs"
		#	Orientation = "LOWER_RIGHT"
		#	buttonText = "UNIT_LEADER_NEW_LEADER"
		#}

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

	# FIELD OFFICER ENTRY
	containerWindowType = {
		name = "divisionleaderentry"
		size = { width=510 height=98 }
		clipping = no
		fade_time = 500
		fade_type = linear
				
		background = {
			name = "Background"		
			spriteType ="GFX_leader_selection_entry_bg"
		}
		
		buttonType = {
			name = "leader_button"
			position = {x=56 y=5}	
			quadTextureSprite ="GFX_leader_unknown"
			scale = 0.42
			alwaystransparent = yes
		}
		
		buttonType = {
			name = "template_button"
			spriteType = "GFX_unit_infantry_icon_medium"
			position = { x=-8 y=12 }
			alwaystransparent = yes
		}
		
		buttonType = {
			name = "ship_icon_button"
			spriteType = "GFX_navy_icon_submarine"
			position = { x=2 y=15 }
			alwaystransparent = yes
		}
		
		gridBoxType = {
			name = "traits_grid"
			position = { x = 154 y = 57 }
			size = { width = 250 height = 50 }
			slotsize = { width=24 height=32 }
			max_slots_vertical = 1			
			format = "UPPER_LEFT"
		}
		
		iconType = {
			name = "clip_icon"
			position = {x=55 y=0}	
			quadTextureSprite ="GFX_clip"
			alwaystransparent = yes			
		}
		
		buttonType = {
			name = "promote_trait_button"
			position = {x=130 y=57}	
			quadTextureSprite ="GFX_trait_unknown"
			clicksound = click_default		
			frame = 1
			#alwaystransparent = yes
		}
		
		buttonType = {
			name = "details_btn"
			position = {x=318 y=56 }
			quadTextureSprite ="GFX_leader_selection_button"
			buttonText = DIVISION_DETAILS 
			buttonFont = "hoi_16mbs"	
			clicksound = click_default	
			pdx_tooltip = "OPEN_LEADER_DETAILS"		
			frame = 1
		}
		
		buttonType = {
			name = "promote_btn"
			position = {x=414 y=56}	
			quadTextureSprite ="GFX_leader_selection_button"
			buttonText = UNIT_LEADER_PROMOTE
			buttonFont = "hoi_16mbs"	
			clicksound = click_default		
			frame = 1
			alwaystransparent = no
		}
		
		iconType = {
			name = "unit_level"
			spriteType = "GFX_unit_level"
			position = { x=14 y=60	 }
		}
		
		instantTextboxType = {
			name = "name"
			position = { x = 128 y = 12 }
			font = "hoi4_typewriter16"
			text = "Mr."
			maxWidth = 200
			multiline = no
			maxHeight = 18
			alwaystransparent = yes
		}
		
		instantTextboxType = {
			name = "division_name"
			position = { x = 128 y = 29 }
			font = "hoi4_typewriter16"
			text = "Mr."
			maxWidth = 200
			multiline = no
			maxHeight = 18
			alwaystransparent = yes
		}
		
		instantTextboxType = {
			name = "gained_xp"
			position = { x = 436 y = 19 }
			font = "hoi4_typewriter16"
			text = "Mr."
			maxWidth = 60
			multiline = no
			maxHeight = 18
			format = CENTER
		}
		
		buttonType = {
			name ="btn_army"
			quadTextureSprite = "GFX_theatre_army_shield"
			position = {x=394 y=16}
			frame = 1
		}
		
		dropDownBoxType = {
			name = "medal_dropdown" 
			position = { x = 394 y = 6 } 
			size = { width = 340 height = 94 }
			clipping = yes
			
			expandButton = {
				name = "expand_button"
				position = { x = -55 y = 2 }  
				spriteType = "GFX_add_medal_button"
				clicksound = click_default
				pdx_tooltip = "GRANT_CITATION"
			}

			expandedWindow = {
				name = "expanded_window"
				position = { x=0 y= -2000 }
				show_position = { x = -400 y = 86 }
				show_animation_type = decelerated   
				hide_animation_type = accelerated 
				animation_time = 0 
				size = { width=518 height=230 }
				verticalScrollbar = "right_vertical_slider"
				scroll_wheel_factor = 50
				smooth_scrolling = yes
				margin = { top = 10 bottom = 10 left = 6 right = 12 }
				clipping = yes

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

				gridBoxType = { 
					name = "medals_grid"
					position = { x = 0 y = 4 }
					size = { width = 500 height = 200 }
					slotsize = { width = 190 height = 52 }
					max_slots_horizontal = 1
					format = "UPPER_LEFT"
				}
			}
		} 
		
	}

	# FACTION LEADERS WINDOW
	containerWindowType = {
		name = "factioncommanderwindow"
		position = { x=-225 y=-295 }
		size = { width=550 height=590 }
		orientation = center
		moveable = yes
		fade_time = 500
		fade_type = linear
		click_to_front = yes

		positionType = {
			name = "pos_roster_overview_orientation_top_left"
			position = { x = 540 y = 80 }
		}

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

		instantTextboxType = {
			name = "header_text"
			position = { x = 20 y = 9 }
			font = "hoi_20bs"
			borderSize = {x = 0 y = 0}
			text = "CHOOSE_LEADER"
			maxWidth = 340
			maxHeight = 20
			fixedsize = yes
			format = left
		}

		containerWindowType = {
			name = "country_filter"
			position = { x=-70 y=30}
			size = {width=200 height=40}
			clipping = no

			dropDownBoxType = {
				name = "type_dropdown"
				position = { x= 550 y = 8 }

				expandButton = {
					name = "type_button"
					position = { x = 0 y = 0 }
					quadTextureSprite ="GFX_NV_btn_base_partial_toggle"
					buttonFont = "Main_14_black"
					Orientation = "UPPER_LEFT"
					clicksound = click_default
					pdx_tooltip = "FACTION_THEATER_MARSHAL_ADMIRAL_FILTER"
				}

				expandedWindow = {
					name = "type_expanded_window"
					position = { x=10 y= 0 }
					show_position = { x = 10 y = 25 }
					show_animation_type = decelerated
					hide_animation_type = accelerated
					animation_time = 150
					size = { width=380 height=120 }
					verticalScrollbar = "right_vertical_slider"
					margin = { top = 15 bottom = 0 left = 0 }

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

					gridBoxType = {
						name = "button_grid"
						position = { x = 12 y = 0 }
						size = { width = 160 height = 100%% }
						slotsize = { width = 26 height = 30 }
						max_slots_horizontal = 1
						format = "UPPER_LEFT"
					}
				}
			}
		}

		ButtonType = {
			name = "sort_name"
			position = {x=95 y=39}
			spriteType = "GFX_sort_up_down_button_83x29"
			buttonText = UNIT_LEADER_NAME_SORT
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		editBoxType = {
			name = "leader_view_search"
			position = { x = 201 y = 44 }
			size = {x=267 y=20}
			font = "hoi_20b"
			borderSize = {x = 0 y = 0}
			text = UNIT_LEADER_SEARCH
			#maxWidth = 300
			#maxHeight = 20
			#format = left
		}

		ButtonType = {
			name = "sort_skills"
			position = {x=16 y=39}
			spriteType = "GFX_sort_skill"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_faction_mastery"
			position = {x=323 y=39}
			spriteType = "GFX_sort_mastery"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_faction_supply"
			position = {x=349 y=39}
			spriteType = "GFX_sort_supply"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_faction_navy_supply"
			position = {x=375 y=39}
			spriteType = "GFX_sort_navy_supply"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		ButtonType = {
			name = "sort_faction_capacity"
			position = {x=401 y=39}
			spriteType = "GFX_sort_assigned_countries"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}
		ButtonType = {
			name = "sort_faction_regions"
			position = {x=427 y=39}
			spriteType = "GFX_sort_regions"
			buttonFont = "hoi_16mbs"
			clicksound = click_scroll
			frame = 1
		}

		containerWindowType = {
			name = "leaders"
			position = { x = 0 y = 60 }
			size = { width = 100%% height = 507 }
			verticalScrollbar = "right_vertical_slider"
			margin = { top = 14 bottom = 22}
			scroll_wheel_factor = 98
			smooth_scrolling = yes

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

			gridBoxType = {
				name = "leaders_grid"
				position = { x = 13 y = 1 }
				size = { width = 100%% height = 100%% }
				slotsize = { width = 510 height = 98 }
				max_slots_horizontal = 1
				format = "UPPER_LEFT"
			}
		}

		buttonType = {
			name = "no_leader_button"
			position = { x = -250 y = -32 }
			quadTextureSprite ="GFX_button_221x34"
			buttonFont = "hoi_18mbs"
			Orientation = "LOWER_RIGHT"
			buttonText = "UNASSIGN"
			pdx_tooltip = "UNASSIGN"
		}

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

	containerWindowType = {
		name = "supreme_commander_type_item"
		position = {x=0 y=0}
		size = { width=340 height=30 }
		Orientation = upper_left
		clipping = no

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

		iconType = {
			name = "icon"
			spriteType = "GFX_NV_btn_aggressiveness_small"
			position = { x=5 y=0 }
			alwaystransparent = yes
		}

		instantTextboxType = {
			name = "name"
			position = {x=35 y=5}
			font = "hoi_18mbs"
			maxWidth = 300
			maxHeight = 30
			fixedsize = yes
			format = left
		}
	}
}
