1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-24 17:14:19 +00:00
algodist-steffo-nanogolf/scenes/lobby_menu.gd
2024-03-12 15:45:08 +01:00

21 lines
382 B
GDScript

extends Control
class_name LobbyMenu
signal leave_confirmed
signal start_confirmed
var players_list: Container
var start_button: Button
func init_refs():
players_list = $"Layout/PlayersList"
start_button = $"Layout/HBoxContainer/StartButton"
func _on_leave_button_pressed() -> void:
leave_confirmed.emit()
func _on_start_button_pressed() -> void:
start_confirmed.emit()