From 8f3c587f7ac544d95a6fcca3b6403eda7379f6dd Mon Sep 17 00:00:00 2001 From: AllyTally Date: Thu, 24 Aug 2023 11:11:43 -0300 Subject: [PATCH] Replace no level editor string --- desktop_version/lang/en/strings.xml | 3 ++- desktop_version/src/Render.cpp | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/desktop_version/lang/en/strings.xml b/desktop_version/lang/en/strings.xml index 31259917..578f3915 100644 --- a/desktop_version/lang/en/strings.xml +++ b/desktop_version/lang/en/strings.xml @@ -417,7 +417,8 @@ - + + diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 368a6bcf..b3075997 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1664,7 +1664,14 @@ static void menurender(void) case Menu::playerworlds: if (game.editor_disabled) { - font::print_wrap(PR_CEN, -1, 180, loc::gettext("This version of the game does not support the level editor, but it might be supported in the future."), 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 {