Improved UI

This commit is contained in:
2024-01-26 22:02:25 +01:00
parent 252d55b30f
commit 48b8011199
5 changed files with 77 additions and 56 deletions

View File

@ -1,7 +1,7 @@
extends NetworkNode
@export var host: String
@export var port: int
@export var host := "127.0.0.1"
@export var port := 4242
signal download_changed(down: int)
signal upload_changed(up: int)

View File

@ -23,6 +23,7 @@ func handle_packet(data: PackedByteArray, _peer: PacketPeer):
print("[%s] Auth token: %s" % [Global.username, auth_token])
DisplayServer.window_set_title("%s - %s" % [Global.username, Global.account_id])
DisplayServer.window_set_position(Vector2((Global.instance_id % 2) * 960, (Global.instance_id / 2 % 2) * 540))
func send_login():
if is_logged_in():