- Exhumed menu definition.

This commit is contained in:
Christoph Oelckers 2019-12-13 21:44:51 +01:00
parent 0885befe6b
commit 7e73073103
3 changed files with 26 additions and 0 deletions

View file

@ -464,6 +464,7 @@ bool M_SetMenu(FName menu, int param, FName caller)
{
case NAME_StartGame:
M_ClearMenus(); // must be done before starting the level.
if (caller == NAME_MainMenu) GameStartupInfo.Episode = param;
STAT_StartNewGame(gVolumeNames[GameStartupInfo.Episode], GameStartupInfo.Skill);
gi->StartGame(GameStartupInfo);
return false;

View file

@ -151,6 +151,7 @@ static const gamefilter games[] = {
{ "RedneckRides", GAMEFLAG_RRRA},
{ "Blood", GAMEFLAG_BLOOD},
{ "ShadowWarrior", GAMEFLAG_SW},
{ "Exhumed", GAMEFLAG_POWERSLAVE|GAMEFLAG_EXHUMED},
};
// for other parts that need to filter by game name.

View file

@ -78,6 +78,18 @@ LISTMENU "MainMenu"
}
NativeTextItem "$MNU_QUITGAME", "q", "QuitMenu"
}
ifgame(Exhumed)
{
Position 160, 65
centermenu
class "Exhumed.MainMenu"
linespacing 22
NativeTextItem "3460", "n", "StartGame 1"
NativeTextItem "3461", "l", "LoadGameMenu"
NativeTextItem "3462", "m", "StartGame 2"
NativeTextItem "3463", "v", "OptionsMenu"
NativeTextItem "3464", "q", "QuitMenu"
}
}
//-------------------------------------------------------------------------------------------
@ -153,6 +165,18 @@ LISTMENU "IngameMenu"
}
NativeTextItem "$MNU_QUITGAME", "q", "QuitMenu"
}
ifgame(Exhumed)
{
Position 160, 65
centermenu
class "Exhumed.MainMenu"
linespacing 22
NativeTextItem "3460", "n", "StartGame 1"
NativeTextItem "3461", "l", "LoadGameMenu"
NativeTextItem "3462", "m", "StartGame 2"
NativeTextItem "3463", "v", "OptionsMenu"
NativeTextItem "3464", "q", "QuitMenu"
}
}
//-------------------------------------------------------------------------------------------