extends HBoxContainer @export var game_id := "" @export var game_name := "": set = set_game_name func set_game_name(value): game_name = value %Name.text = value func _on_join_pressed() -> void: var response = await Network.request("%s/?join=%s" % [Client.game_lobby_url, game_id]) var result = response.parse_json() var game_data = result["data"] Network.join_game(game_data["ip"], game_data["port"]) get_tree().change_scene_to_file("res://UI/PlayerLobby/Lobby.tscn")