1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-08 18:09:45 +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

@ -1663,6 +1663,8 @@ static void menurender(void)
break; break;
case Menu::playerworlds: case Menu::playerworlds:
if (game.editor_disabled) if (game.editor_disabled)
{
if (game.currentmenuoption == 1)
{ {
if (SDL_GetHintBoolean("SteamDeck", SDL_FALSE)) if (SDL_GetHintBoolean("SteamDeck", SDL_FALSE))
{ {
@ -1673,6 +1675,7 @@ static void menurender(void)
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); 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
{ {
font::print_wrap(PR_CEN, -1, 180, loc::gettext("To install new player levels, copy the .vvvvvv files to the levels folder."), tr, tg, tb); font::print_wrap(PR_CEN, -1, 180, loc::gettext("To install new player levels, copy the .vvvvvv files to the levels folder."), tr, tg, tb);