2020-10-04 16:31:48 +00:00
|
|
|
#pragma once
|
|
|
|
#include "menu.h"
|
|
|
|
#include "gamestruct.h"
|
|
|
|
#include "c_cvars.h"
|
2020-10-07 16:32:57 +00:00
|
|
|
#include "savegamemanager.h"
|
2020-10-04 16:31:48 +00:00
|
|
|
|
2020-10-06 23:12:57 +00:00
|
|
|
extern bool help_disabled;
|
|
|
|
|
2020-10-04 16:31:48 +00:00
|
|
|
extern FNewGameStartup NewGameStartupInfo;
|
|
|
|
void M_StartupEpisodeMenu(FNewGameStartup *gs);
|
|
|
|
void M_StartupSkillMenu(FNewGameStartup *gs);
|
2020-10-04 20:21:11 +00:00
|
|
|
void SetDefaultMenuColors();
|
2020-10-06 23:31:41 +00:00
|
|
|
void BuildGameMenus();
|
2020-10-04 16:31:48 +00:00
|
|
|
|
2020-10-07 16:32:57 +00:00
|
|
|
class FSavegameManager : public FSavegameManagerBase
|
2020-10-04 16:31:48 +00:00
|
|
|
{
|
2020-10-07 16:32:57 +00:00
|
|
|
void PerformSaveGame(const char *fn, const char *sgdesc) override;
|
|
|
|
void PerformLoadGame(const char *fn, bool) override;
|
|
|
|
FString ExtractSaveComment(FSerializer &arc) override;
|
|
|
|
FString BuildSaveName(const char* prefix, int slot) override;
|
|
|
|
void ReadSaveStrings() override;
|
2020-10-04 16:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern FSavegameManager savegameManager;
|
|
|
|
|
|
|
|
enum EMenuSounds : int
|
|
|
|
{
|
|
|
|
ActivateSound,
|
|
|
|
CursorSound,
|
|
|
|
AdvanceSound,
|
|
|
|
BackSound,
|
|
|
|
CloseSound,
|
|
|
|
PageSound,
|
|
|
|
ChangeSound,
|
|
|
|
ChooseSound
|
|
|
|
};
|
|
|
|
|
|
|
|
EXTERN_CVAR(Bool, menu_sounds)
|