2024-02-22 06:22:22 +11:00
|
|
|
class_name ServerForm extends PanelContainer
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
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
|
2023-12-17 02:02:16 +11:00
|
|
|
|
|
|
|
|
|
|
|
func _on_button_mouse_entered() -> void:
|
|
|
|
$AudioStreamPlayer.play()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_button_pressed() -> void:
|
|
|
|
Game.scene_switch_main_menu()
|