RingRacers/src/menus/play-1.c
toaster 6d43d8ef09 Add SECRET_ONLINE.
- Online menu is inaccessible until unlocked.
- Unlike most unlocks, the fact that it's not enabled is very clearly signposted.
    - This is because the previous entry in the series barely had any offline content at all, so the fact you'll have to work for it will catch a lot of people by surprise.
    - Has a message that straight up tells you you need experience in Grand Prix mode.
- Has no affect in TESTERS builds, for which this is the only method of play available.
2023-02-27 17:01:15 +00:00

43 lines
1 KiB
C

/// \file menus/play-1.c
/// \brief Play Menu
#include "../k_menu.h"
#include "../m_cond.h"
menuitem_t PLAY_MainMenu[] =
{
{IT_STRING | IT_CALL, "Local Play", "Play only on this computer.",
NULL, {.routine = M_SetupGametypeMenu}, 0, 0},
{IT_STRING | IT_CALL, "Online", NULL,
NULL, {.routine = M_MPOptSelectInit}, /*M_MPRoomSelectInit,*/ 0, 0},
{IT_STRING | IT_CALL, "Back", NULL, NULL, {.routine = M_GoBack}, 0, 0},
};
menu_t PLAY_MainDef = KARTGAMEMODEMENU(PLAY_MainMenu, &PLAY_CharSelectDef);
void M_SetupPlayMenu(INT32 choice)
{
#ifdef TESTERS
(void)choice;
#else
if (choice != -1)
PLAY_MainDef.prevMenu = currentMenu;
// Enable/disable online play.
if (!M_SecretUnlocked(SECRET_ONLINE, true))
{
PLAY_MainMenu[1].status = IT_TRANSTEXT2 | IT_CALL;
PLAY_MainMenu[1].tooltip = "You'll need experience to play over the internet!";
}
else
{
PLAY_MainMenu[1].status = IT_STRING | IT_CALL;
PLAY_MainMenu[1].tooltip = "Connect to other computers over the internet.";
}
if (choice != -1)
M_SetupNextMenu(&PLAY_MainDef, false);
#endif
}