This repository has been archived on 2023-12-19. You can view files and clone it, but cannot push or open issues or pull requests.
MUR/scripts/menus/direct_join_menu.gd

16 lines
251 B
GDScript3
Raw Permalink Normal View History

extends Control
func _draw():
find_node("join").grab_focus()
func _on_join_pressed():
var ip = find_node("ip").text
var port = find_node("port").get_value()
client.join_game(ip, int(port))
queue_free()
func _on_back_pressed():
queue_free()