summaryrefslogtreecommitdiff
path: root/login.gd
diff options
context:
space:
mode:
Diffstat (limited to 'login.gd')
-rw-r--r--login.gd9
1 files changed, 4 insertions, 5 deletions
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