summaryrefslogtreecommitdiff
path: root/login.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-15 14:23:25 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-15 14:23:25 +0100
commita14e88ff4d0d87841a44254e2bff1784da6e8b48 (patch)
tree0507cb8117da7943805a6479aef4526edb2db4dd /login.gd
parentca4d1945598863d0ce297f4272317e5dd5797f88 (diff)
next commit
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