1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

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.
This commit is contained in:
Dav999 2023-08-27 03:35:13 +02:00 committed by Misa Elizabeth Kai
parent 6549dc0113
commit 4e7bf86722

View file

@ -1664,13 +1664,16 @@ static void menurender(void)
case Menu::playerworlds: case Menu::playerworlds:
if (game.editor_disabled) 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); if (SDL_GetHintBoolean("SteamDeck", SDL_FALSE))
} {
else 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);
{ }
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
{
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 else