From ef4c43161d5e5e9d0fff65f6c9a48317e3cf368b Mon Sep 17 00:00:00 2001 From: Not Date: Sat, 14 Jan 2023 20:16:29 +0100 Subject: [PATCH] draw browser when gui is disabled --- leaderboard.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/leaderboard.lua b/leaderboard.lua index e5a060f..d1643ad 100644 --- a/leaderboard.lua +++ b/leaderboard.lua @@ -1046,7 +1046,7 @@ local function drawScoreboard(v, player) cachePatches(v) - local gui = cv_gui.value + local gui = cv_gui.value or drawState == DS_BROWSER -- Force enable gui at start and end of the race if leveltime < START_TIME or player.exiting or player.lives == 0 then @@ -1055,13 +1055,13 @@ local function drawScoreboard(v, player) if gui then stateFunctions[drawState](v, player, ScoreTable, gui) - end - local pos = 0 - -- Draw current active modes bottom left - pos = drawMode(v, pos, F_SPBJUS) - pos = drawMode(v, pos, F_SPBBIG) - pos = drawMode(v, pos, F_SPBEXP) + local pos = 0 + -- Draw current active modes bottom left + pos = drawMode(v, pos, F_SPBJUS) + pos = drawMode(v, pos, F_SPBBIG) + pos = drawMode(v, pos, F_SPBEXP) + end end hud.add(drawScoreboard, "game")