1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-28 02:54:19 +00:00
algodist-steffo-nanogolf/scenes/server_options_menu.gd

18 lines
381 B
GDScript3
Raw Normal View History

2024-02-19 04:20:40 +00:00
extends PanelContainer
class_name ServerOptionsMenu
2024-02-27 02:54:47 +00:00
@export var port: int = 12345
2024-02-19 04:20:40 +00:00
signal hosting_confirmed(port: int)
signal connecting_confirmed(address: String, port: int)
@onready var line_edit: LineEdit = $"Layout/LineEdit"
func _on_host_button_pressed():
hosting_confirmed.emit(port)
func _on_connect_button_pressed():
2024-02-28 05:30:45 +00:00
connecting_confirmed.emit(line_edit.text, port)