Add "Tutorial" to the 1P menu, above "Start Game". It doesn't actually do anything yet, mind!

Also, change said menu's def to start at "Start Game" when entering it for the first time.
This commit is contained in:
Monster Iestyn 2018-08-11 18:01:54 +01:00
parent 30e4d2cd51
commit 0b88c364bc

View file

@ -731,6 +731,7 @@ static menuitem_t SR_EmblemHintMenu[] =
// Single Player Main // Single Player Main
static menuitem_t SP_MainMenu[] = static menuitem_t SP_MainMenu[] =
{ {
{IT_STRING, NULL, "Tutorial", NULL, 84},
{IT_CALL | IT_STRING, NULL, "Start Game", M_LoadGame, 92}, {IT_CALL | IT_STRING, NULL, "Start Game", M_LoadGame, 92},
{IT_SECRET, NULL, "Record Attack", M_TimeAttack, 100}, {IT_SECRET, NULL, "Record Attack", M_TimeAttack, 100},
{IT_SECRET, NULL, "NiGHTS Mode", M_NightsAttack, 108}, {IT_SECRET, NULL, "NiGHTS Mode", M_NightsAttack, 108},
@ -739,6 +740,7 @@ static menuitem_t SP_MainMenu[] =
enum enum
{ {
sptutorial,
sploadgame, sploadgame,
sprecordattack, sprecordattack,
spnightsmode, spnightsmode,
@ -1554,7 +1556,18 @@ menu_t SR_EmblemHintDef =
}; };
// Single Player // Single Player
menu_t SP_MainDef = CENTERMENUSTYLE(NULL, SP_MainMenu, &MainDef, 72); menu_t SP_MainDef = //CENTERMENUSTYLE(NULL, SP_MainMenu, &MainDef, 72);
{
NULL,
sizeof(SP_MainMenu)/sizeof(menuitem_t),
&MainDef,
SP_MainMenu,
M_DrawCenteredMenu,
BASEVIDWIDTH/2, 72,
1, // start at "Start Game" on first entry
NULL
};
menu_t SP_LoadDef = menu_t SP_LoadDef =
{ {
"M_PICKG", "M_PICKG",