From 1bf8f91ef2be31e73f725493b1d83017ed2e4bed Mon Sep 17 00:00:00 2001 From: Boshi Date: Wed, 16 Dec 2020 22:21:26 -0500 Subject: [PATCH] Displays current gamemode in game (toggle) --- scene/game.lua | 4 ++++ scene/game_config.lua | 1 + 2 files changed, 5 insertions(+) diff --git a/scene/game.lua b/scene/game.lua index 2629ae6..32da8f9 100644 --- a/scene/game.lua +++ b/scene/game.lua @@ -68,6 +68,10 @@ function GameScene:render() self.game:drawCustom() + love.graphics.setFont(font_3x5_2) + if config.gamesettings.display_gamemode == 1 then + love.graphics.printf(self.game.name .. " - " .. self.ruleset.name, 0, 460, 640, "left") + end end function GameScene:onInputPress(e) diff --git a/scene/game_config.lua b/scene/game_config.lua index 2f56854..faaaf7e 100644 --- a/scene/game_config.lua +++ b/scene/game_config.lua @@ -9,6 +9,7 @@ ConfigScene.options = { {"manlock", "Manual locking",{"Per ruleset","Per gamemode","Harddrop", "Softdrop"}}, {"piece_colour", "Piece Colours", {"Per ruleset","Arika" ,"TTC"}}, {"world_reverse","A Button Rotation", {"Left" ,"Auto" ,"Right"}}, + {"display_gamemode", "Display Gamemode", {"On", "Off"}}, {"next_se", "Next Piece SFX", {"On", "Off"}}, {"das_last_key", "DAS Switch", {"Default", "Instant"}}, {"synchroes_allowed", "Synchroes", {"Per ruleset", "On", "Off"}},