waited far too long for an initial commit but here we are
This commit is contained in:
18
Scripts/server_form.gd
Normal file
18
Scripts/server_form.gd
Normal file
@ -0,0 +1,18 @@
|
||||
extends PanelContainer
|
||||
class_name ServerForm
|
||||
|
||||
signal connect_button_pressed
|
||||
signal host_button_pressed
|
||||
|
||||
|
||||
func _on_host_pressed() -> void:
|
||||
host_button_pressed.emit()
|
||||
queue_free()
|
||||
func _on_connect_pressed() -> void:
|
||||
connect_button_pressed.emit()
|
||||
queue_free()
|
||||
|
||||
func get_server_ip() -> String:
|
||||
return $VBoxContainer/HBoxContainer/ServerIP.text
|
||||
func get_server_port() -> String:
|
||||
return $VBoxContainer/HBoxContainer2/ServerPort.text
|
Reference in New Issue
Block a user