2024-12-12 21:42:51 +01:00
|
|
|
## SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
## Copyright (c) 2024 interstellardevelopment.org
|
|
|
|
|
2024-12-12 15:23:16 +01:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
func _ready() -> void:
|
2024-12-20 19:51:46 +01:00
|
|
|
($VBoxContainer/UsernameHBox/LineEdit as LineEdit).text = Game.username
|
|
|
|
($VBoxContainer/RoomnameHBox/LineEdit as LineEdit).text = Game.roomname
|
2024-12-12 15:23:16 +01:00
|
|
|
if ($VBoxContainer/SendButton as Button).pressed.connect(_on_send_button_pressed):
|
|
|
|
pass
|
|
|
|
|
|
|
|
func _on_send_button_pressed() -> void:
|
|
|
|
Game.username = ($VBoxContainer/UsernameHBox/LineEdit as LineEdit).text
|
|
|
|
Game.roomname = ($VBoxContainer/RoomnameHBox/LineEdit as LineEdit).text
|
|
|
|
Networking.join_room()
|