Odamex
Setting the Standard in Multiplayer Doom
client/src/m_menu.cpp File Reference

Enumerations

enum  d2_main_t {
  d2_newgame = 0, d2_options, d2_loadgame, d2_savegame,
  d2_quitdoom, d2_main_end
}
enum  episodes_t {
  ep1, ep2, ep3, ep4,
  ep_end
}
enum  newgame_t {
  killthings, toorough, hurtme, violence,
  nightmare, newg_end
}
enum  psetup_t {
  playername, playerteam, playerred, playergreen,
  playerblue, playersex, playerskin, playeraim,
  psetup_end
}
enum  read_t { rdthsempty1, read1_end }
enum  read_t2 { rdthsempty2, read2_end }
enum  read_t3 { rdthsempty3, read3_end }
enum  {
  load1, load2, load3, load4,
  load5, load6, load7, load8,
  load_end
}

Functions

void CL_SendUserInfo (void)
void M_ChangeTeam (int choice)
team_t D_TeamByName (const char *team)
gender_t D_GenderByName (const char *gender)
void M_NewGame (int choice)
void M_Episode (int choice)
void M_ChooseSkill (int choice)
void M_LoadGame (int choice)
void M_SaveGame (int choice)
void M_Options (int choice)
void M_EndGame (int choice)
void M_ReadThis (int choice)
void M_ReadThis2 (int choice)
void M_ReadThis3 (int choice)
void M_QuitDOOM (int choice)
void M_ChangeDetail (int choice)
void M_StartGame (int choice)
void M_Sound (int choice)
void M_FinishReadThis (int choice)
void M_LoadSelect (int choice)
void M_SaveSelect (int choice)
void M_ReadSaveStrings (void)
void M_QuickSave (void)
void M_QuickLoad (void)
void M_DrawMainMenu (void)
void M_DrawReadThis1 (void)
void M_DrawReadThis2 (void)
void M_DrawReadThis3 (void)
void M_DrawNewGame (void)
void M_DrawEpisode (void)
void M_DrawOptions (void)
void M_DrawSound (void)
void M_DrawLoad (void)
void M_DrawSave (void)
void M_DrawSaveLoadBorder (int x, int y, int len)
void M_SetupNextMenu (oldmenu_t *menudef)
void M_DrawEmptyCell (oldmenu_t *menu, int item)
void M_DrawSelCell (oldmenu_t *menu, int item)
int M_StringHeight (char *string)
void M_StartControlPanel (void)
void M_StartMessage (const char *string, void(*routine)(int), bool input)
void M_StopMessage (void)
void M_ClearMenus (void)
 EXTERN_CVAR (hud_targetnames) enum d1_main_t
 BEGIN_COMMAND (menu_main)
 END_COMMAND (menu_main) BEGIN_COMMAND(menu_help)
 END_COMMAND (menu_help) BEGIN_COMMAND(menu_save)
 END_COMMAND (menu_save) BEGIN_COMMAND(menu_load)
 END_COMMAND (menu_load) BEGIN_COMMAND(menu_options)
 END_COMMAND (menu_options) BEGIN_COMMAND(quicksave)
 END_COMMAND (quicksave) BEGIN_COMMAND(menu_endgame)
 END_COMMAND (menu_endgame) BEGIN_COMMAND(quickload)
 END_COMMAND (quickload) BEGIN_COMMAND(menu_quit)
 END_COMMAND (menu_quit) BEGIN_COMMAND(menu_player)
 END_COMMAND (menu_player) BEGIN_COMMAND(bumpgamma)
 END_COMMAND (bumpgamma) void M_ReadSaveStrings(void)
void M_DoSave (int slot)
void M_QuickSaveResponse (int ch)
void M_QuickLoadResponse (int ch)
void M_VerifyNightmare (int ch)
void M_EndGameResponse (int ch)
void STACK_ARGS call_terms (void)
void M_QuitResponse (int ch)
void M_DrawSlider (int x, int y, float min, float max, float cur)
 EXTERN_CVAR (cl_name) EXTERN_CVAR(cl_team) EXTERN_CVAR(cl_color) EXTERN_CVAR(cl_skin) EXTERN_CVAR(cl_gender) EXTERN_CVAR(cl_autoaim) void M_PlayerSetup(int choice)
bool M_Responder (event_t *ev)
void M_Drawer (void)
void M_PopMenuStack (void)
void M_Ticker (void)
 EXTERN_CVAR (screenblocks) void M_Init(void)

Variables

patch_thu_font [HU_FONTSIZE]
int screenSize
int quickSaveSlot
int messageToPrint
const char * messageString
int messx
int messy
int messageLastMenuActive
bool messageNeedsInput
void(* messageRoutine )(int response)
int genStringEnter
int genStringLen
void(* genStringEnd )(int slot)
int saveSlot
int saveCharIndex
char saveOldString [SAVESTRINGSIZE]
BOOL menuactive
int repeatKey
int repeatCount
bool st_firsttime
bool sendpause
char savegamestrings [10][SAVESTRINGSIZE]
char endstring [160]
menustack_t MenuStack [16]
int MenuStackDepth
short itemOn
short skullAnimCounter
short whichSkull
bool drawSkull
char skullName [2][9] = {"M_SKULL1", "M_SKULL2"}
oldmenu_tcurrentMenu
bool M_DemoNoPlay
 d1_main_e
oldmenuitem_t DoomMainMenu []
enum d2_main_t d2_main_e
oldmenuitem_t Doom2MainMenu []
oldmenu_t MainDef
enum episodes_t episodes_e
oldmenuitem_t EpisodeMenu []
oldmenu_t EpiDef
enum newgame_t newgame_e
oldmenuitem_t NewGameMenu []
oldmenu_t NewDef
byte FireRemap [256]
enum psetup_t psetup_e
oldmenuitem_t PlayerSetupMenu []
oldmenu_t PSetupDef
bool OptionsActive
oldmenu_t OptionsDef
enum read_t read_e
oldmenuitem_t ReadMenu1 []
oldmenu_t ReadDef1
enum read_t2 read_e2
oldmenuitem_t ReadMenu2 []
oldmenu_t ReadDef2
enum read_t3 read_e3
oldmenuitem_t ReadMenu3 []
oldmenu_t ReadDef3
enum { ... }  load_e
oldmenuitem_t LoadMenu []
oldmenu_t LoadDef
oldmenuitem_t SaveMenu []
oldmenu_t SaveDef
char tempstring [80]
int epi

Enumeration Type Documentation

anonymous enum
Enumerator:
load1 
load2 
load3 
load4 
load5 
load6 
load7 
load8 
load_end 
enum d2_main_t
Enumerator:
d2_newgame 
d2_options 
d2_loadgame 
d2_savegame 
d2_quitdoom 
d2_main_end 
enum episodes_t
Enumerator:
ep1 
ep2 
ep3 
ep4 
ep_end 
enum newgame_t
Enumerator:
killthings 
toorough 
hurtme 
violence 
nightmare 
newg_end 
enum psetup_t
Enumerator:
playername 
playerteam 
playerred 
playergreen 
playerblue 
playersex 
playerskin 
playeraim 
psetup_end 
enum read_t
Enumerator:
rdthsempty1 
read1_end 
enum read_t2
Enumerator:
rdthsempty2 
read2_end 
enum read_t3
Enumerator:
rdthsempty3 
read3_end 

Function Documentation

BEGIN_COMMAND ( menu_main  )
void STACK_ARGS call_terms ( void  )
void CL_SendUserInfo ( void  )
gender_t D_GenderByName ( const char *  gender)
team_t D_TeamByName ( const char *  team)
END_COMMAND ( menu_player  )
END_COMMAND ( bumpgamma  )
END_COMMAND ( menu_quit  )
END_COMMAND ( menu_main  )
END_COMMAND ( menu_help  )
END_COMMAND ( menu_save  )
END_COMMAND ( menu_load  )
END_COMMAND ( menu_options  )
END_COMMAND ( quicksave  )
END_COMMAND ( menu_endgame  )
END_COMMAND ( quickload  )
EXTERN_CVAR ( cl_name  )
EXTERN_CVAR ( screenblocks  )
EXTERN_CVAR ( hud_targetnames  )
void M_ChangeDetail ( int  choice)
void M_ChangeTeam ( int  choice)
void M_ChooseSkill ( int  choice)
void M_ClearMenus ( void  )
void M_DoSave ( int  slot)
void M_DrawEmptyCell ( oldmenu_t menu,
int  item 
)
void M_DrawEpisode ( void  )
void M_Drawer ( void  )
void M_DrawLoad ( void  )
void M_DrawMainMenu ( void  )
void M_DrawNewGame ( void  )
void M_DrawOptions ( void  )
void M_DrawReadThis1 ( void  )
void M_DrawReadThis2 ( void  )
void M_DrawReadThis3 ( void  )
void M_DrawSave ( void  )
void M_DrawSaveLoadBorder ( int  x,
int  y,
int  len 
)
void M_DrawSelCell ( oldmenu_t menu,
int  item 
)
void M_DrawSlider ( int  x,
int  y,
float  min,
float  max,
float  cur 
)
void M_DrawSound ( void  )
void M_EndGame ( int  choice)
void M_EndGameResponse ( int  ch)
void M_Episode ( int  choice)
void M_FinishReadThis ( int  choice)
void M_LoadGame ( int  choice)
void M_LoadSelect ( int  choice)
void M_NewGame ( int  choice)
void M_Options ( int  choice)
void M_PopMenuStack ( void  )
void M_QuickLoad ( void  )
void M_QuickLoadResponse ( int  ch)
void M_QuickSave ( void  )
void M_QuickSaveResponse ( int  ch)
void M_QuitDOOM ( int  choice)
void M_QuitResponse ( int  ch)
void M_ReadSaveStrings ( void  )
void M_ReadThis ( int  choice)
void M_ReadThis2 ( int  choice)
void M_ReadThis3 ( int  choice)
bool M_Responder ( event_t ev)
void M_SaveGame ( int  choice)
void M_SaveSelect ( int  choice)
void M_SetupNextMenu ( oldmenu_t menudef)
void M_Sound ( int  choice)
void M_StartControlPanel ( void  )
void M_StartGame ( int  choice)
void M_StartMessage ( const char *  string,
void(*)(int)  routine,
bool  input 
)
void M_StopMessage ( void  )
int M_StringHeight ( char *  string)
void M_Ticker ( void  )
void M_VerifyNightmare ( int  ch)

Variable Documentation

Initial value:
{
        {1,"M_NGAME",M_NewGame,'N'},
        {1,"M_OPTION",M_Options,'O'},   
    {1,"M_LOADG",M_LoadGame,'L'},
    {1,"M_SAVEG",M_SaveGame,'S'},
        {1,"M_QUITG",M_QuitDOOM,'Q'}
}
Initial value:
{
        {1,"M_NGAME",M_NewGame,'N'},
        {1,"M_OPTION",M_Options,'O'},   
    {1,"M_LOADG",M_LoadGame,'L'},
    {1,"M_SAVEG",M_SaveGame,'S'},
    {1,"M_RDTHIS",M_ReadThis,'R'},
        {1,"M_QUITG",M_QuitDOOM,'Q'}
}
bool drawSkull
char endstring[160]
int epi
Initial value:
Initial value:
{
        {1,"M_EPI1", M_Episode,'k'},
        {1,"M_EPI2", M_Episode,'t'},
        {1,"M_EPI3", M_Episode,'i'},
        {1,"M_EPI4", M_Episode,'t'}
}
void(* genStringEnd)(int slot)
patch_t* hu_font[HU_FONTSIZE]
short itemOn
enum { ... } load_e
Initial value:
{
        load_end,
        LoadMenu,
        M_DrawLoad,
        80,54,
        0
}
Initial value:
{
        {1,"", M_LoadSelect,'1'},
        {1,"", M_LoadSelect,'2'},
        {1,"", M_LoadSelect,'3'},
        {1,"", M_LoadSelect,'4'},
        {1,"", M_LoadSelect,'5'},
        {1,"", M_LoadSelect,'6'},
        {1,"", M_LoadSelect,'7'},
        {1,"", M_LoadSelect,'8'},
}
Initial value:
{
        d1_main_end,
        DoomMainMenu,
        M_DrawMainMenu,
        97,64,
        0
}
void(* messageRoutine)(int response)
const char* messageString
int messx
int messy
Initial value:
{
        {1,"M_JKILL",           M_ChooseSkill, 'i'},
        {1,"M_ROUGH",           M_ChooseSkill, 'h'},
        {1,"M_HURT",            M_ChooseSkill, 'h'},
        {1,"M_ULTRA",           M_ChooseSkill, 'u'},
        {1,"M_NMARE",           M_ChooseSkill, 'n'}
}
Initial value:
{
        0,
        NULL,
        NULL,
        0,0,
        0
}
Initial value:
{
        { 1,"", M_EditPlayerName, 'N' },
        { 2,"", M_ChangeTeam, 'T' },
        { 2,"", M_SlidePlayerRed, 'R' },
        { 2,"", M_SlidePlayerGreen, 'G' },
        { 2,"", M_SlidePlayerBlue, 'B' },
        { 2,"", M_ChangeGender, 'E' },
        { 2,"", M_ChangeSkin, 'S' },
        { 2,"", M_ChangeAutoAim, 'A' }
}
Initial value:
 {
        psetup_end,
        PlayerSetupMenu,
        M_PlayerSetupDrawer,
        48,     47,
        playername
}
enum read_t read_e
Initial value:
Initial value:
Initial value:
Initial value:
{
        {1,"",M_ReadThis2,0}
}
Initial value:
{
        {1,"",M_ReadThis3,0}
}
Initial value:
{
        {1,"",M_FinishReadThis,0}
}
int repeatKey
Initial value:
{
        load_end,
        SaveMenu,
        M_DrawSave,
        80,54,
        0
}
char savegamestrings[10][SAVESTRINGSIZE]
Initial value:
{
        {1,"", M_SaveSelect,'1'},
        {1,"", M_SaveSelect,'2'},
        {1,"", M_SaveSelect,'3'},
        {1,"", M_SaveSelect,'4'},
        {1,"", M_SaveSelect,'5'},
        {1,"", M_SaveSelect,'6'},
        {1,"", M_SaveSelect,'7'},
        {1,"", M_SaveSelect,'8'}
}
char saveOldString[SAVESTRINGSIZE]
int saveSlot
bool sendpause
char skullName[2][9] = {"M_SKULL1", "M_SKULL2"}
char tempstring[80]
short whichSkull
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends