1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-28 02:54:19 +00:00
algodist-steffo-nanogolf/scenes/lobby_menu.gd

22 lines
382 B
GDScript3
Raw Normal View History

2024-02-28 05:30:45 +00:00
extends Control
class_name LobbyMenu
2024-03-07 04:06:37 +00:00
signal leave_confirmed
signal start_confirmed
2024-02-28 05:30:45 +00:00
var players_list: Container
2024-03-12 14:45:08 +00:00
var start_button: Button
func init_refs():
players_list = $"Layout/PlayersList"
2024-03-12 14:45:08 +00:00
start_button = $"Layout/HBoxContainer/StartButton"
2024-02-28 05:30:45 +00:00
2024-03-07 04:06:37 +00:00
func _on_leave_button_pressed() -> void:
leave_confirmed.emit()
func _on_start_button_pressed() -> void:
start_confirmed.emit()