LD54/src/gui/menu/scores.gd
2023-10-02 22:03:17 +02:00

30 lines
619 B
GDScript

extends Control
@export var level_select: Control
@export var first_selection: Control
@export var level_first_selection: Control
@export var leaderboard: Control
# Called when the node enters the scene tree for the first time.
func _ready():
first_selection.grab_focus()
func _on_quit_button_pressed():
get_tree().quit()
func _on_back_button_pressed():
level_select.hide()
func _on_level_button_pressed(level:int):
load_level("res://src/game/levels/level_%s.tscn" % level)
func load_level(path: String):
leaderboard.show()
load_leaderboard_content()
func load_leaderboard_content(level: String):