﻿-- chunkname: @scripts/ui/views/end_view/end_view_styles.lua

local UIFontSettings = require("scripts/managers/ui/ui_font_settings")
local UISoundEvents = require("scripts/settings/ui/ui_sound_events")
local end_view_styles = {
	voting_button_fade_time = 0.5,
	panel_size = {
		440,
		200,
	},
}

end_view_styles.page_corner_decoration = {}

local page_corner_decoration_style = end_view_styles.page_corner_decoration

page_corner_decoration_style.corner_decoration = {
	offset = {
		0,
		0,
		1,
	},
}
page_corner_decoration_style.candles = {
	offset = {
		0,
		0,
		2,
	},
}
end_view_styles.page_bottom_decoration = {}

local page_bottom_decoration_style = end_view_styles.page_bottom_decoration

page_bottom_decoration_style.bottom_decoration = {
	horizontal_alignment = "center",
	vertical_alignment = "bottom",
	offset = {
		0,
		0,
		0,
	},
	size = {
		nil,
		106,
	},
}
end_view_styles.page_bottom_center_decoration = {}

local page_page_bottom_center_decoration = end_view_styles.page_bottom_center_decoration

page_page_bottom_center_decoration.bottom_center_decoration = {
	offset = {
		0,
		0,
		5,
	},
}
end_view_styles.defeat_page_overlay = {}

local defeat_page_overlay_styles = end_view_styles.defeat_page_overlay

defeat_page_overlay_styles.overlay = {
	color = Color.black(64, true),
}
end_view_styles.stay_in_party_vote = {}

local stay_in_party_vote_style = end_view_styles.stay_in_party_vote

stay_in_party_vote_style.hotspot = {}

local stay_in_party_vote_hotspot_style = stay_in_party_vote_style.hotspot

stay_in_party_vote_hotspot_style.on_hover_sound = UISoundEvents.default_mouse_hover
stay_in_party_vote_hotspot_style.on_pressed_sound = UISoundEvents.default_select
stay_in_party_vote_style.vote_text = table.clone(UIFontSettings.input_legend_button)

local vote_text_style = stay_in_party_vote_style.vote_text

vote_text_style.text_color = Color.ui_grey_light(255, true)
vote_text_style.voted_yes_color = Color.ui_terminal(255, true)
vote_text_style.normal_color = table.clone(vote_text_style.text_color)
vote_text_style.default_color = table.clone(vote_text_style.text_color)
vote_text_style.text_horizontal_alignment = "left"
vote_text_style.text_vertical_alignment = "top"
vote_text_style.fade_time = 0.25
stay_in_party_vote_style.vote_choice = table.clone(vote_text_style)

local vote_choice_style = stay_in_party_vote_style.vote_choice

vote_choice_style.offset = {
	0,
	30,
	1,
}
stay_in_party_vote_style.vote_count_text = table.clone(vote_text_style)

local vote_count_text_style = stay_in_party_vote_style.vote_count_text

vote_count_text_style.font_size = 36
vote_count_text_style.text_horizontal_alignment = "center"
stay_in_party_vote_style.tooltip = table.clone(UIFontSettings.body_small)

local stay_in_party_vote_tooltip_style = stay_in_party_vote_style.tooltip

stay_in_party_vote_tooltip_style.text_color[1] = 0
stay_in_party_vote_tooltip_style.text_vertical_alignment = "bottom"
end_view_styles.continue_button = {}

local continue_button_style = end_view_styles.continue_button

continue_button_style.text = table.clone(UIFontSettings.input_legend_button)

local continue_button_text_style = continue_button_style.text

continue_button_text_style.text_horizontal_alignment = "right"
continue_button_text_style.text_vertical_alignment = "top"
continue_button_text_style.default_color = Color.ui_grey_light(255, true)
continue_button_text_style.disabled_color = Color.ui_grey_medium(255, true)
continue_button_text_style.normal_color = table.clone(continue_button_text_style.default_color)
continue_button_text_style.disabled_fade_time = 0.25
continue_button_style.tooltip = table.clone(UIFontSettings.body_small)

local continue_button_tooltip_style = continue_button_style.tooltip

continue_button_tooltip_style.text_color[1] = 0
continue_button_tooltip_style.text_vertical_alignment = "bottom"
continue_button_tooltip_style.text_horizontal_alignment = "right"
continue_button_style.vote_done_tooltip = table.clone(continue_button_tooltip_style)

local continue_button_vote_done_tooltip_style = continue_button_style.vote_done_tooltip

continue_button_vote_done_tooltip_style.text_color = Color.white(0, true)
end_view_styles.mission_header_victory = {}

local mission_header_victory_style = end_view_styles.mission_header_victory

mission_header_victory_style.mission_header = table.clone(UIFontSettings.header_2)

local mission_header_title_style_victory = mission_header_victory_style.mission_header

mission_header_title_style_victory.text_horizontal_alignment = "center"
mission_header_title_style_victory.offset = {
	0,
	10,
	0,
}
mission_header_title_style_victory.text_color = Color.terminal_text_header(255, true)
mission_header_title_style_victory.scale_to_material = true
mission_header_victory_style.mission_sub_header = table.clone(UIFontSettings.body_small)

local mission_sub_header_victory_style = mission_header_victory_style.mission_sub_header

mission_sub_header_victory_style.text_horizontal_alignment = "center"
mission_sub_header_victory_style.text_vertical_alignment = "center"
mission_sub_header_victory_style.offset = {
	0,
	55,
	0,
}
mission_sub_header_victory_style.text_color = Color.terminal_text_body(255, true)
mission_sub_header_victory_style.stats_font_size = 26
mission_sub_header_victory_style.stats_text_color = Color.terminal_text_header(255, true)
end_view_styles.mission_header_defeat = table.clone(mission_header_victory_style)

local mission_header_defeat_style = end_view_styles.mission_header_defeat
local mission_header_title_style_defeat = mission_header_defeat_style.mission_header

mission_header_title_style_defeat.text_color = Color.ui_red_medium(255, true)
mission_header_defeat_style.mission_sub_header = table.clone(UIFontSettings.header_1)

local mission_sub_header_defeat_style = mission_header_defeat_style.mission_sub_header

mission_sub_header_defeat_style.offset = {
	0,
	62,
	0,
}
mission_sub_header_defeat_style.text_horizontal_alignment = "center"
mission_sub_header_defeat_style.text_vertical_alignment = "center"
mission_sub_header_defeat_style.material = "content/ui/materials/font_gradients/slug_font_gradient_blood"
end_view_styles.player_panel_victory = {}

local player_panel_victory_style = end_view_styles.player_panel_victory

player_panel_victory_style.character_portrait = {
	horizontal_alignment = "center",
	size = {
		90,
		100,
	},
	offset = {
		0,
		-20,
		0,
	},
	material_values = {
		use_placeholder_texture = 1,
		texture_frame = end_view_styles.default_frame_material,
	},
}
player_panel_victory_style.character_insignia = {
	horizontal_alignment = "center",
	size = {
		40,
		100,
	},
	offset = {
		-65,
		-20,
		0,
	},
	material_values = {},
}
player_panel_victory_style.character_name = table.clone(UIFontSettings.body)

local character_name_style_victory = player_panel_victory_style.character_name

character_name_style_victory.text_horizontal_alignment = "center"
character_name_style_victory.offset = {
	0,
	85,
	0,
}
character_name_style_victory.own_player_text_color = Color.terminal_text_header(255, true)
player_panel_victory_style.character_title = table.clone(UIFontSettings.body_small)

local character_title_style_victory = player_panel_victory_style.character_title

character_title_style_victory.text_horizontal_alignment = "center"
character_title_style_victory.offset = {
	0,
	115,
	0,
}
player_panel_victory_style.character_archetype_title = table.clone(UIFontSettings.body_small)

local character_archetype_title_style_victory = player_panel_victory_style.character_archetype_title

character_archetype_title_style_victory.text_horizontal_alignment = "center"
character_archetype_title_style_victory.offset = {
	0,
	140,
	0,
}
character_archetype_title_style_victory.default_color = Color.terminal_text_body_sub_header(255, true)
character_archetype_title_style_victory.text_color = Color.terminal_text_body_sub_header(255, true)
player_panel_victory_style.checkmark = table.clone(UIFontSettings.symbol)

local checkmark_style_victory = player_panel_victory_style.checkmark

checkmark_style_victory.font_size = 40
checkmark_style_victory.size = player_panel_victory_style.character_portrait.size
checkmark_style_victory.horizontal_alignment = "center"
checkmark_style_victory.offset = {
	92,
	0,
	2,
}
checkmark_style_victory.hdr = true
checkmark_style_victory.text_color = Color.ui_terminal(255, true)
checkmark_style_victory.visible = false
player_panel_victory_style.party_status = table.clone(checkmark_style_victory)

local party_status_text_style_victory = player_panel_victory_style.party_status

party_status_text_style_victory.offset = {
	92,
	-20,
	0,
}
party_status_text_style_victory.text_vertical_alignment = "bottom"
player_panel_victory_style.account_divider = {
	horizontal_alignment = "center",
	size = {
		280,
		1,
	},
	offset = {
		0,
		166,
		0,
	},
	color = Color.ui_grey_medium(255, true),
}
player_panel_victory_style.account_name = table.clone(UIFontSettings.body_small)

local account_name_style_victory = player_panel_victory_style.account_name

account_name_style_victory.text_horizontal_alignment = "center"
account_name_style_victory.offset = {
	0,
	170,
	0,
}
account_name_style_victory.text_color = Color.ui_grey_medium(255, true)
end_view_styles.player_panel_defeat = table.clone(player_panel_victory_style)

local player_panel_defeat_style = end_view_styles.player_panel_defeat
local character_portrait_style_defeat = player_panel_defeat_style.character_portrait

character_portrait_style_defeat.color = {
	255,
	128,
	128,
	128,
}

local character_insignia_style_defeat = player_panel_defeat_style.character_insignia

character_insignia_style_defeat.color = table.clone(player_panel_defeat_style.character_portrait.color)

return settings("EndViewStyles", end_view_styles)
