From a4293a0236ed90416494e2a3f4d8da6383c8932c Mon Sep 17 00:00:00 2001 From: yukirij Date: Sat, 12 Oct 2024 22:54:19 -0700 Subject: [PATCH] Remove spectator count from local play. --- www/js/interface.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/www/js/interface.js b/www/js/interface.js index 0974d99..adecbd8 100644 --- a/www/js/interface.js +++ b/www/js/interface.js @@ -739,10 +739,12 @@ const INTERFACE = { ctx.fillText(GAME_DATA.turn, width - gui_margin.t, gui_margin.t); // Number of spectators - ctx.fillStyle = INTERFACE.Color.Text; - ctx.textBaseline = "bottom"; - ctx.textAlign = "right"; - ctx.fillText("⚇" + INTERFACE_DATA.Session.Client.Spectators.count, width - gui_margin.t, height - gui_margin.t); + if(INTERFACE_DATA.mode == INTERFACE.Mode.Player || INTERFACE_DATA.mode == INTERFACE.Mode.Review) { + ctx.fillStyle = INTERFACE.Color.Text; + ctx.textBaseline = "bottom"; + ctx.textAlign = "right"; + ctx.fillText("⚇" + INTERFACE_DATA.Session.Client.Spectators.count, width - gui_margin.t, height - gui_margin.t); + } // Game state message let message = null;