- handle menu customization via callbacks.
This commit is contained in:
parent
a084667bed
commit
73142ef2cf
8 changed files with 15 additions and 14 deletions
|
|
@ -234,7 +234,7 @@ bool M_SetSpecialMenu(FName& menu, int param)
|
|||
//
|
||||
//=============================================================================
|
||||
|
||||
void M_StartControlPanel(bool makeSound, bool scaleoverride)
|
||||
void OnMenuOpen(bool makeSound)
|
||||
{
|
||||
if (hud_toggled)
|
||||
D_ToggleHud();
|
||||
|
|
@ -249,7 +249,6 @@ void M_StartControlPanel(bool makeSound, bool scaleoverride)
|
|||
{
|
||||
S_Sound(CHAN_VOICE, CHANF_UI, "menu/activate", snd_menuvolume, ATTN_NONE);
|
||||
}
|
||||
M_DoStartControlPanel(scaleoverride);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
#include "menu.h"
|
||||
#include "savegamemanager.h"
|
||||
|
||||
void M_StartControlPanel (bool makeSound, bool scaleoverride = false);
|
||||
|
||||
|
||||
struct FNewGameStartup
|
||||
{
|
||||
const char *PlayerClass;
|
||||
|
|
@ -17,6 +14,7 @@ void M_StartupEpisodeMenu(FNewGameStartup *gs);
|
|||
void M_StartupSkillMenu(FNewGameStartup *gs);
|
||||
void M_CreateGameMenus();
|
||||
void SetDefaultMenuColors();
|
||||
void OnMenuOpen(bool makeSound);
|
||||
|
||||
class FSavegameManager : public FSavegameManagerBase
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue