From a14e88ff4d0d87841a44254e2bff1784da6e8b48 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 15 Dec 2024 14:23:25 +0100 Subject: next commit --- login.gd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'login.gd') diff --git a/login.gd b/login.gd index 1b7ccb7..fedf2de 100644 --- a/login.gd +++ b/login.gd @@ -9,7 +9,7 @@ var current_character_information: CharacterInformation func _ready() -> void: switch_screen(%Login) - $BackgroundMusic.play() + #$BackgroundMusic.play() %ChatWindow.visible = false @@ -112,11 +112,10 @@ func _on_character_selected_pressed(slot_idx: int): # TODO: switch to game :) %ChatWindow.visible = true - Network.map_server.received_packet.connect(func(packet: Packet): - if packet is ServerMessagePacket: - %ChatWindow.add_message(packet.message) - ) + %ChatWindow.initialize() # TODO: load map var map_loaded_packet := MapLoadedPacket.new() Network.map_server.send(map_loaded_packet) + + # TODO: check which map server packets to send next -- cgit v1.2.3