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
|
|
|
|
2024-03-11 04:09:33 +00:00
|
|
|
var players_list: Container
|
2024-03-12 14:45:08 +00:00
|
|
|
var start_button: Button
|
2024-03-11 04:09:33 +00:00
|
|
|
|
|
|
|
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()
|