Skip to content

Commit

Permalink
- did some reshuffling on Exhumed's menu.
Browse files Browse the repository at this point in the history
To allow adding a "User map" item and prevent accidental reset of ongoing games, both the items for starting the campaign and the training map are now in a submenu.
This allows the game to go through the regular startup procedure common to all games, which in turn allows adding the "User map" item to the episode selection.
  • Loading branch information
coelckers committed Jan 24, 2022
1 parent a252b20 commit 2022de8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
5 changes: 5 additions & 0 deletions source/core/gamecontrol.cpp
Expand Up @@ -635,6 +635,11 @@ void SetDefaultStrings()
gSkillNames[3] = "$WELL DONE";
gSkillNames[4] = "$EXTRA CRISPY";
}
// Exhumed has no skills, but we still need a menu with one entry.
else if (isExhumed())
{
gSkillNames[0] = "Default";
}

//Set a few quotes which are used for common handling of a few status messages
quoteMgr.InitializeQuote(23, "$MESSAGES: ON");
Expand Down
7 changes: 0 additions & 7 deletions source/core/menu/razemenu.cpp
Expand Up @@ -150,14 +150,7 @@ bool M_SetSpecialMenu(FName& menu, int param)
return true;

case NAME_Startgame:
case NAME_StartgameNoSkill:
NewGameStartupInfo.Skill = param;
if (menu == NAME_StartgameNoSkill)
{
menu = NAME_Startgame;
NewGameStartupInfo.Episode = param;
NewGameStartupInfo.Skill = 1;
}
if (DoStartGame(NewGameStartupInfo))
{
M_ClearMenus();
Expand Down
1 change: 0 additions & 1 deletion source/core/namedef_custom.h
Expand Up @@ -2,7 +2,6 @@

xx(IngameMenu)
xx(ListMenuItemBloodDripDrawer)
xx(StartgameNoSkill)
xx(UsermapMenu)
xx(EngineCredits)
xx(EngineCredits2)
Expand Down
21 changes: 17 additions & 4 deletions wadsrc/static/menudef.txt
Expand Up @@ -69,9 +69,9 @@ LISTMENU "MainMenu"
linespacing 22
Animated
ExhumedPlasma
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 0
ExhumedTextItem "$MNU_NEWGAME", "n", "EpisodeMenu"
ExhumedTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameNoSkill", 1
//ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameNoSkill", 1
ExhumedTextItem "$MNU_OPTIONS", "v", "OptionsMenu"
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
}
Expand Down Expand Up @@ -143,9 +143,9 @@ LISTMENU "IngameMenu"
linespacing 22
Animated
ExhumedLogo
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 0
ExhumedTextItem "$MNU_NEWGAME", "n", "EpisodeMenu", 0
ExhumedTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameNoSkill", 1
//ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameNoSkill", 1
ExhumedTextItem "$MNU_OPTIONS", "v", "OptionsMenu"
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
}
Expand Down Expand Up @@ -181,6 +181,12 @@ LISTMENU "EpisodeMenu"
Position 35, 32
Linespacing 17
}
ifgame(Exhumed)
{
class ExhumedMainMenu
Position 160, 65
linespacing 22
}
}

LISTMENU "SkillMenu"
Expand Down Expand Up @@ -208,6 +214,13 @@ LISTMENU "SkillMenu"
Position 35, 32
Linespacing 17
}
ifgame(Exhumed)
{
class ExhumedMainMenu
Position 160, 65
linespacing 22
CaptionItem "$MNU_DIFFICULTY"
}
}

//-------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 2022de8

Please sign in to comment.