extends Level
class_name HighScoresScreen

func _ready() -> void:
	update_game_state()
	%BeeDeathLabel.text = Str.format_number(HighScoreMgr.loaded_data.total_bees_killed)
	%HoneyCountLabel.text = Str.format_number(HighScoreMgr.loaded_data.total_honey_collected)

	%LevelOneScoreLabel.text = Str.format_number(HighScoreMgr.loaded_data.level_1_score)
	%LevelTwoScoreLabel.text = Str.format_number(HighScoreMgr.loaded_data.level_2_score)
	%LevelThreeScoreLabel.text = Str.format_number(HighScoreMgr.loaded_data.level_3_score)
	%LevelFourScoreLabel.text = Str.format_number(HighScoreMgr.loaded_data.level_4_score)
	%LevelFiveScoreLabel.text = Str.format_number(HighScoreMgr.loaded_data.level_5_score)
	%LevelSixScoreLabel.text = Str.format_number(HighScoreMgr.loaded_data.level_6_score)

	%MainMenuButton.connect("pressed", Callable(self, "on_main_menu_button_pressed"))

func on_main_menu_button_pressed() -> void:
	SceneMgr.load_scene("MAINMENU")