From bc54bc57b6891b99e679b36dd43d0711003b7990 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 8 Oct 2021 20:06:36 -0400 Subject: [PATCH] Changed Display Gamemode to Debug Info Cambridge version will display at all times if on --- main.lua | 8 +++++--- scene/game_config.lua | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index 03a53ef..0a11db9 100644 --- a/main.lua +++ b/main.lua @@ -75,9 +75,11 @@ function love.draw() scene:render() - love.graphics.setFont(font_3x5_2) - love.graphics.setColor(1, 1, 1, 1) - love.graphics.printf(version, 0, 460, 635, "right") + if config.gamesettings.display_gamemode == 1 or scene.title == "Title" then + love.graphics.setFont(font_3x5_2) + love.graphics.setColor(1, 1, 1, 1) + love.graphics.printf(version, 0, 460, 635, "right") + end love.graphics.pop() diff --git a/scene/game_config.lua b/scene/game_config.lua index a161cf8..c71aa17 100644 --- a/scene/game_config.lua +++ b/scene/game_config.lua @@ -12,7 +12,7 @@ ConfigScene.options = { {"piece_colour", "Piece Colours", false, {"Per ruleset", "Arika", "TTC"}}, {"world_reverse", "A Button Rotation", false, {"Left", "Auto", "Right"}}, {"spawn_positions", "Spawn Positions", false, {"Per ruleset", "In field", "Out of field"}}, - {"display_gamemode", "Display Gamemode", false, {"On", "Off"}}, + {"display_gamemode", "Debug Info", false, {"On", "Off"}}, {"das_last_key", "DAS Last Key", false, {"Off", "On"}}, {"smooth_movement", "Smooth Piece Drop", false, {"On", "Off"}}, {"synchroes_allowed", "Synchroes", false, {"Per ruleset", "On", "Off"}},