2024-01-28 21:08:08 +00:00
|
|
|
class_name UIManager
|
2024-02-17 18:43:47 +00:00
|
|
|
extends Node
|
2024-01-25 11:10:29 +00:00
|
|
|
|
2024-01-28 21:08:08 +00:00
|
|
|
signal chat_message_submitted(message: String)
|
|
|
|
|
2024-02-06 20:55:22 +00:00
|
|
|
@export var login: Signal
|
|
|
|
@export var logout: Signal
|
|
|
|
@export var ping_changed: Signal
|
|
|
|
@export var download_changed: Signal
|
|
|
|
@export var upload_changed: Signal
|
|
|
|
@export var message_received: Signal
|
2024-01-25 11:10:29 +00:00
|
|
|
|
|
|
|
func _enter_tree():
|
2024-02-17 18:43:47 +00:00
|
|
|
if !get_node_or_null("/root/Main"):
|
2024-02-06 14:51:48 +00:00
|
|
|
connect_fake()
|
|
|
|
|
|
|
|
func connect_fake():
|
2024-02-06 20:55:22 +00:00
|
|
|
for property in get_property_list():
|
|
|
|
if property.type != TYPE_SIGNAL:
|
|
|
|
continue
|
|
|
|
|
|
|
|
add_user_signal(property.name)
|
2024-02-17 18:43:47 +00:00
|
|
|
set(property.name, Signal(self, property.name))
|