11 lines
342 B
GDScript3
11 lines
342 B
GDScript3
|
extends Control
|
||
|
|
||
|
func _ready() -> void:
|
||
|
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()
|