From d8b97db6a896e6d770f904adb80a90def8fc153f Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 9 Jan 2024 17:06:33 -0800 Subject: [PATCH] Make sure mode text is visible above act prompts This makes the mode indicator text be visible even if there is an activity zone prompt on screen, by making it so that it gets moved if an activity prompt is being rendered. This is to make sure that it's visible no matter what, even if e.g. a custom level starts the player on an activity zone. --- desktop_version/src/Render.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index a1dc818a..aac8130c 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -2187,7 +2187,12 @@ static void mode_indicator_text(const int alpha) if (game.advancetext) { /* Prevent clashing */ - y += 15; + y = 20; + } + if (game.act_fade > 5 || game.prev_act_fade > 5) + { + /* Prevent clashing */ + y = 37; } /* FIXME: Some strings have not yet been translated. In order to not have