diff options
Diffstat (limited to 'login.gd')
-rw-r--r-- | login.gd | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |