@frame_list_w = 265
@frame_list_h = 381
@list_w = 256
@list_h = 377
@combat_stat_w = 64
@combat_stat_h = 64

guiTypes = {

	containerWindowType = {
		name = "combat_stats"
		size = { width = @combat_stat_w height = @combat_stat_h }
		position = { x = 0 y = 0 }

		background = {
			name = "bg"
			spriteType = "GFX_tiles_frame_light"
			#spriteType = "GFX_tiles_frame_extra_light"
		}

		iconType = {
			name = "stat_icon"
			spriteType = "GFX_planet_bg_bottom"
			position = { x = 0 y = -296 }
			orientation = lower_left
			alwaystransparent = yes
		}

		instantTextBoxType = {
			name = "stat_value"
			font = "malgun_goth_24"
			text = "FLEET_COMBAT"
			position = { x = 10 y = 8 }
			maxWidth = 510
			maxHeight = 20
			fixedSize = yes
			format = left
		}
	}

	containerWindowType = {
		name = "combat_view"
		size = { width = 560 height = 568 }
		position = { x = 35 y = -42 }
		orientation = lower_left
		origo = lower_left
		moveable = no

		background = {
			name = "background"
			quadTextureSprite = "GFX_outliner_member_bg"
		}

		iconType = {
			name = "discovery_bg_top"
			spriteType = "GFX_planet_bg_top"
			position = { x = 0 y = 0 }
			orientation = upper_left
			alwaystransparent = yes
		}

		iconType = {
			name = "discovery_view_bottom"
			spriteType = "GFX_planet_bg_bottom"
			position = { x = 0 y = -296 }
			orientation = lower_left
			alwaystransparent = yes
		}


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

		iconType = {
			name = "header_line"
			spriteType = "GFX_line"
			position = { x = 6 y = 21 }
		}


		instantTextBoxType = {
			name = "header"
			font = "malgun_goth_24"
			text = "FLEET_COMBAT"
			position = { x = 20 y = 5 }
			maxWidth = 510
			maxHeight = 20
			fixedSize = yes
			format = left
		}

		buttonType = {
			name = "focus_on"
			orientation = UPPER_RIGHT
			position = { x = -77 y = 13 }
			quadTextureSprite = "GFX_fleetview_lock_focus"
			pdx_tooltip = "FOCUS_ON_COMBAT"
			shortCut = "q"
			actionShortcut = "focus_camera"
		}

		buttonType = {
			name = "close"
			quadTextureSprite = "GFX_close"
			position = { x = -41 y = 13 }
			Orientation = "UPPER_RIGHT"
			shortCut = "ESCAPE"
			pdx_tooltip = "CLOSE_TITLE"
			clicksound = "back_click"
			actionShortcut = "cancel"
		}

		iconType = {
			name = "progress"
			spriteType = "GFX_fleet_combat_progressbar"
			position = { x= -271 y = 40 }
			orientation = "CENTER_UP"
		}

		iconType = {
			name = "progress_center"
			spriteType = "GFX_fleet_combat_progress_bar_glow"
			position = { x= 0 y = 37 }
			orientation = "UPPER_LEFT"
			alwaystransparent = yes
		}

		### LEFT SIDE COMBATANTS ###

		containerWindowType = {
			name = "left"
			size = { width = @list_w height = @list_h }
			position = { x = 12 y = 85 }

			buttonType = {
				name = "left_list_frame"
				position = { x = -5 y = -2 }
				size = { X = @frame_list_w Y = @frame_list_h }
				spriteType = "GFX_tiles_frame_extra_light"
				alwaystransparent = yes
			}

			smoothListBoxType = {
				name = "list"
				orientation = "UPPER_LEFT"
				priority = 100
				size = { x = 257 y = @list_h }
				borderSize = { x=0 y=0 }
				scrollbartype = "standardlistbox_slider"
				spacing = 6
			}
		}

		### LEFT SIDE COMBAT STATS ###

		containerWindowType = {
			name = "left_stats"
			size = { width = @frame_list_w height = 87 }
			position = { x = 7 y = -11 }
			orientation = lower_left
			origo = lower_left

			background = {
				name = "background"
				spriteType = "GFX_tiles_frame_extra_light"
			}

			instantTextBoxType = {
				name = "header"
				font = "cg_16b"
				text = "COMBAT_STAT_DAMAGE_HEADER"
				maxWidth = 250
				maxHeight = 20
				position = { x = 8 y = 5 }
				#alwaysTransparent = yes
				text_color_code = "E"
			}

			# outgoing_damage_hitpoints
			containerWindowType = {
				name = "outgoing_damage_hitpoints"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 2 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_hitpoints"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = right
					maxWidth = 54
					maxHeight = 20
					position = { x = 0 y = 44 }
					alwaysTransparent = yes
				}
			}

			# outgoing_damage_armor
			containerWindowType = {
				name = "outgoing_damage_armor"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 60 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_armor"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = right
					maxWidth = 54
					maxHeight = 20
					position = { x = 0 y = 44 }
					alwaysTransparent = yes
				}
			}

			# outgoing_damage_shields
			containerWindowType = {
				name = "outgoing_damage_shields"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 118 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_shields"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = right
					maxWidth = 54
					maxHeight = 20
					position = { x = 0 y = 44 }
					alwaysTransparent = yes
				}
			}

			# outgoing_hit_ratio
			containerWindowType = {
				name = "outgoing_hit_ratio"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 192 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_projectiles_hit"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = center
					maxWidth = 66
					maxHeight = 20
					position = { x = 0 y = 42 }
					alwaysTransparent = yes
				}
			}
		}

		### RIGHT SIDE COMBATANTS ###

		containerWindowType = {
			name = "right"
			size = { width = @list_w height = @list_h }
			position = { x = -16 y = 85 }
			orientation = upper_right
			origo = upper_right

			buttonType = {
				name = "right_list_frame"
				position = { x = -5 y = -2 }
				size = { X = @frame_list_w Y = @frame_list_h }
				spriteType = "GFX_tiles_frame_extra_light"
				alwaystransparent = yes
			}

			smoothListBoxType = {
				name = "list"
				orientation = "UPPER_LEFT"
				priority = 100
				size = { x = @list_w y = @list_h }
				borderSize = { x=0 y=0 }
				scrollbartype = "standardlistbox_slider"
				spacing = 6
			}
		}

		### RIGHT SIDE COMBAT STATS ###

		containerWindowType = {
			name = "right_stats"
			size = { width = @frame_list_w height = 87 }
			position = { x = -12 y = -11 }
			orientation = lower_right
			origo = lower_right

			background = {
				name = "background"
				spriteType = "GFX_tiles_frame_extra_light"
			}

			instantTextBoxType = {
				name = "header"
				font = "cg_16b"
				text = "COMBAT_STAT_DAMAGE_HEADER"
				maxWidth = 250
				maxHeight = 20
				position = { x = 8 y = 5 }
				#alwaysTransparent = yes
				text_color_code = "E"
			}

			# outgoing_damage_hitpoints
			containerWindowType = {
				name = "outgoing_damage_hitpoints"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 2 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_hitpoints"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = right
					maxWidth = 54
					maxHeight = 20
					position = { x = 0 y = 44 }
					alwaysTransparent = yes
				}
			}

			# outgoing_damage_armor
			containerWindowType = {
				name = "outgoing_damage_armor"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 60 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_armor"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = right
					maxWidth = 54
					maxHeight = 20
					position = { x = 0 y = 44 }
					alwaysTransparent = yes
				}
			}

			# outgoing_damage_shields
			containerWindowType = {
				name = "outgoing_damage_shields"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 118 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_damage_shields"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = right
					maxWidth = 54
					maxHeight = 20
					position = { x = 0 y = 44 }
					alwaysTransparent = yes
				}
			}

			# outgoing_hit_ratio
			containerWindowType = {
				name = "outgoing_hit_ratio"
				size = { width = @combat_stat_w height = @combat_stat_h }
				position = { x = 192 y = 20 }

				background = {
					name = "stat_hitbox"
					spriteType = "GFX_invisible"
				}

				iconType = {
					name = "stat_icon"
					spriteType = "GFX_combat_stat_projectiles_hit"
					orientation = center_up
					centerPosition = yes
					position = { x = 0 y = 33 }
					alwaysTransparent = yes
				}

				instantTextBoxType = {
					name = "stat_value"
					font = "cg_16b"
					text = "0"
					format = center
					maxWidth = 66
					maxHeight = 20
					position = { x = 0 y = 42 }
					alwaysTransparent = yes
				}
			}
		}
	}

	containerWindowType = {
		name = "combat_view_fleet_entry"
		size = { width = @list_w height = 138 }
		orientation = upper_left
		moveable = no
		clipping = yes

		buttonType = {
			name = "bg"
			position = { x = 0 y = 31 }
			size = { x = @list_w y = 101 }
			spriteType = "GFX_tiles_dark_area_cut_8"
			alwaystransparent = yes
		}

		iconType = {
			name ="name_hex_bg"
			spriteType = "GFX_small_hex_bg"
			position = { x= -6 y = -17 }
			orientation = "left_up"
		}

		buttonType = {
			name = "owner"
			quadTextureSprite = "GFX_empire_flag_32"
			position = { x = 4 y = 2 }
			#Orientation = "UPPER_RIGHT"
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "My Fleet Name"
			position = { x = 40 y = 9 }
			maxWidth = 240
			maxHeight = 20
			fixedSize = yes
			text_color_code = "E"
			format = left
		}

		containerWindowType = {
			name = "portrait_container"
			size = { width = 400 height = 100 }
			position = { x = 2 y = 34 }
			orientation = upper_left
			moveable = no
			clipping = yes
		}

		buttonType = {
			name = "emergency_ftl"
			quadTextureSprite = "GFX_button_150_24"
			position = { x = -165 y = -85 }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "RETREAT"
		}

		smoothListBoxType = {
			name = "ships_list"
			position = { x = 0 y = 140 }
			orientation = "UPPER_LEFT"
			size = { x = @list_w y = 0 }
			borderSize = { x = 0 y = 0 }
		}

		containerWindowType = {
			name = "orders_hero_ship"
			size = { width = 210 height = 100 }
			position = { x = 0 y = 34 }

			containerWindowType = {
				name = "permanent_orders"
				size = { width = 210 height = 55 }
				position = { x = 0 y = 0 }

				background = {
					name = "orders_small_background"
					spriteType = "GFX_tiles_dark_area_cut_8"
				}

				gridBoxType = {
					name = "orders"
					position = { x = -5 y = -3 }
					slotSize = { width = 51 height = 55 }
					max_slots_horizontal = 4
					format = "UPPER_LEFT"
				}
			}

			containerWindowType = {
				name = "custom_orders"
				size = { width = 210 height = 46 }
				position = { x = 0 y = 48 }

				background = {
					name = "orders_small_background"
					spriteType = "GFX_tiles_dark_area_cut_8"
				}

				gridBoxType = {
					name = "orders"
					position = { x = -6 y = -3 }
					slotSize = { width = 40 height = 37 }
					max_slots_horizontal = 5
					format = "UPPER_LEFT"
				}
			}

			instantTextBoxType = {
				name ="order_progress"
				font = "cg_16b"
				position = { x= 55 y = -33 }
				orientation = "left_up"
				format = right
			}
		}
	}

	containerWindowType = {
		name = "combat_view_fleet_entry_expanded"
		size = { width = @list_w height = 198 }
		orientation = upper_left
		moveable = no
		clipping = yes

		buttonType = {
			name = "bg"
			position = { x = 0 y = 31 }
			size = { x = @list_w y = 161 }
			spriteType = "GFX_tiles_dark_area_cut_8"
			alwaystransparent = yes
		}

		iconType = {
			name ="name_hex_bg"
			spriteType = "GFX_small_hex_bg"
			position = { x= -6 y = -17 }
			orientation = "left_up"
		}

		buttonType = {
			name = "owner"
			quadTextureSprite = "GFX_empire_flag_32"
			position = { x = 4 y = 2 }
			#Orientation = "UPPER_RIGHT"
		}

		instantTextBoxType = {
			name = "name"
			font = "cg_16b"
			text = "My Fleet Name"
			position = { x = 40 y = 9 }
			maxWidth = 240
			maxHeight = 20
			fixedSize = yes
			text_color_code = "E"
			format = left
		}

		containerWindowType = {
			name = "portrait_container"
			size = { width = 400 height = 100 }
			position = { x = 2 y = 34 }
			orientation = upper_left
			moveable = no
			clipping = yes
		}

		buttonType = {
			name = "emergency_ftl"
			quadTextureSprite = "GFX_button_150_24"
			position = { x = -165 y = -85 }
			Orientation = "LOWER_RIGHT"
			buttonFont = "cg_16b"
			text = "RETREAT"
		}

		smoothListBoxType = {
			name = "ships_list"
			position = { x = 0 y = 200 }
			orientation = "UPPER_LEFT"
			size = { x = @list_w y = 0 }
			borderSize = { x = 0 y = 0 }
		}

		containerWindowType = {
			name = "orders_hero_ship"
			size = { width = 210 height = 100 }
			position = { x = 0 y = 34 }

			containerWindowType = {
				name = "permanent_orders"
				size = { width = 210 height = 55 }
				position = { x = 0 y = 0 }

				background = {
					name = "orders_small_background"
					spriteType = "GFX_tiles_dark_area_cut_8"
				}

				gridBoxType = {
					name = "orders"
					position = { x = -5 y = -3 }
					slotSize = { width = 51 height = 55 }
					max_slots_horizontal = 4
					format = "UPPER_LEFT"
				}
			}

			containerWindowType = {
				name = "custom_orders"
				size = { width = 210 height = 46 }
				position = { x = 0 y = 48 }

				background = {
					name = "orders_small_background"
					spriteType = "GFX_tiles_dark_area_cut_8"
				}

				gridBoxType = {
					name = "orders"
					position = { x = -6 y = -3 }
					slotSize = { width = 40 height = 37 }
					max_slots_horizontal = 5
					format = "UPPER_LEFT"
				}
			}

			instantTextBoxType = {
				name ="order_progress"
				font = "cg_16b"
				position = { x= 5 y = 100 }
				orientation = "left_up"
				format = left
			}
		}
	}

	containerWindowType = {
		name = "combat_view_order_button"
		size = { width = 38 height = 38 }
		position = { x = 8 y = 4 }

		buttonType = {
			name = "button_animation"
			spriteType = "GFX_fleet_order_button_ground_support_selective"
			alwaysTransparent = yes
		}

		buttonType = {
			name = "button"
			spriteType = "GFX_fleet_task_planetfall_action"
		}
	}
	containerWindowType = {
		name = "combat_view_order_button_custom_audio"
		size = { width = 38 height = 38 }
		position = { x = 8 y = 4 }

		buttonType = {
			name = "button_animation"
			no_clicksound = yes
			spriteType = "GFX_fleet_order_button_ground_support_selective"
			alwaysTransparent = yes
		}

		buttonType = {
			name = "button"
			no_clicksound = yes
			spriteType = "GFX_fleet_task_planetfall_action"
		}
	}

	containerWindowType = {
		name = "combat_view_ship_entry"
		size = { width = @list_w height = 50 }
		position = { x = 0 y = 0 }
		orientation = upper_left
		moveable = no

		background = {
			name = "hitbox"
			spriteType = "GFX_invisible"
		}

		buttonType = {
			name = "bg"
			quadTextureSprite = "GFX_tiles_dark_area_cut_8"
			#position = { x = -4 y = 24 }
			size = { x = @list_w y = 45 }
			alwaysTransparent = yes
		}

		instantTextBoxType = {
			name = "name"
			alwaysTransparent = yes
			font = "cg_16b"
			position = { x = 43 y = 7 }
			maxWidth = 175
			maxHeight = 20
			fixedSize = yes
		}

		instantTextBoxType = {
			name = "size"
			alwaysTransparent = yes
			font = "cg_16b"
			position = { x = 43 y = 23 }
			maxWidth = 175
			maxHeight = 20
			fixedSize = yes
		}

		iconType = {
			name = "hitpoints"
			spriteType = "GFX_ship_life_radial_progress"
			position = { x = 41 y = -37 }
			orientation = "UPPER_LEFT"
			rotation = 3.14159
			frame = 80
			alwaystransparent = yes
		}

		iconType = {
			name = "armor"
			spriteType = "GFX_ship_armor_radial_progress"
			position = { x = 41 y = -37 }
			orientation = "UPPER_LEFT"
			rotation = 3.14159
			frame = 30
			alwaystransparent = yes
		}

		iconType = {
			name = "shields"
			spriteType = "GFX_ship_shield_radial_progress"
			position = { x = 41 y = -37 }
			orientation = "UPPER_LEFT"
			rotation = 3.14159
			frame = 30
			alwaystransparent = yes
		}

        iconType = {
            name = "ship_class"
            position = { x = 9 y = 9 }
            spriteType = "GFX_ship_class_small"
            alwaysTransparent = yes
            orientation = "UPPER_LEFT"
        }
        iconType = {
            name = "destroyed"
            position = { x = 10 y = 11 }
            spriteType = "GFX_ship_destroyed"
            orientation = "UPPER_LEFT"
        }

        iconType = {
            name = "disengaged"
            position = { x = 10 y = 11 }
            spriteType = "GFX_ship_disengaged"
            orientation = "UPPER_LEFT"
        }

		buttonType = {
			name = "inspect"
			quadTextureSprite = "GFX_fleetview_inspect_ship"
			position = { x= -40 y = 5 }
			Orientation = "UPPER_RIGHT"
			buttonFont = "cg_16b"
			pdx_tooltip = "INSPECT"
		}
	}

	containerWindowType = {
		name = "combat_view_ship_onmap"
		size = { width = 14 height = 14 }
		position = { x = 0 y = 0 }
		orientation = upper_left
		moveable = no

		iconType = {
			name = "icon"
			spriteType = "GFX_hover_indicator"
			position = { x=-35 y=-23 }
		}
	}
}
