From 4e7bf8672244bfb3cf5a65c071d01de69da8eae0 Mon Sep 17 00:00:00 2001 From: Dav999 Date: Sun, 27 Aug 2023 03:35:13 +0200 Subject: [PATCH] Change editor unsupported message to only appear when editor is selected Showing the option on the "play a level" option feels to me as though inexperienced players would think they're not supposed to open the player levels, because the message says editor levels are unsupported, right? But the message is only referring to the level editor, so in my opinion, it's clearer to only show it there. --- desktop_version/src/Render.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index b3075997..507362c1 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1664,13 +1664,16 @@ static void menurender(void) case Menu::playerworlds: if (game.editor_disabled) { - if (SDL_GetHintBoolean("SteamDeck", SDL_FALSE)) + if (game.currentmenuoption == 1) { - font::print_wrap(PR_CEN, -1, 180, loc::gettext("The level editor is not currently supported on Steam Deck, as it requires a keyboard and mouse to use."), tr, tg, tb); - } - else - { - font::print_wrap(PR_CEN, -1, 180, loc::gettext("The level editor is not currently supported on this device, as it requires a keyboard and mouse to use."), tr, tg, tb); + if (SDL_GetHintBoolean("SteamDeck", SDL_FALSE)) + { + font::print_wrap(PR_CEN, -1, 180, loc::gettext("The level editor is not currently supported on Steam Deck, as it requires a keyboard and mouse to use."), tr, tg, tb); + } + else + { + font::print_wrap(PR_CEN, -1, 180, loc::gettext("The level editor is not currently supported on this device, as it requires a keyboard and mouse to use."), tr, tg, tb); + } } } else