From 168839a5230d2391386259bb7594b7f0be336ed6 Mon Sep 17 00:00:00 2001 From: Geoffrey Allott Date: Sat, 17 Jun 2023 23:27:41 +0100 Subject: [PATCH] show main menu as background to initial login; show splash screen upon press of close button in login screen --- site/modules/socket.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/modules/socket.js b/site/modules/socket.js index f62eda1..20f018a 100644 --- a/site/modules/socket.js +++ b/site/modules/socket.js @@ -30,6 +30,9 @@ export class Socket { this.scheduled_actions = []; this.schedule_timeout = null; + + this.game = new MainMenu(this.container, message => this.send(message)); + this.container.append(this.close_button()); } onopen() { @@ -294,6 +297,10 @@ export class Socket { this.send({type: "LeaveGame"}); this.send({type: "JoinLobby", filter: this.last_filter}); break; + default: + this.show_login(); + this.splash.show(); + break; } } -- 2.34.1