Current menu

From EDukeWiki
Revision as of 02:03, 9 February 2020 by Doom64hunter (talk | contribs) (Updated the enum to what's present in r8620)
Jump to navigation Jump to search

current_menu contains an ID corresponding to the menu that the player is currently displaying. Individual values can be found by looking through menus.h and menus.c.

The enum displayed below shows all possible values present in eduke32 r8620:

enum MenuIndex_t {
   MENU_NULL               = INT32_MIN, // sentinel for "do nothing"
   MENU_CLOSE              = -2, // sentinel for "close the menu"/"no menu"
   MENU_PREVIOUS           = -1, // sentinel for "go to previous menu"
   MENU_MAIN               = 0,
   MENU_MAIN_INGAME        = 50,
   MENU_EPISODE            = 100,
   MENU_USERMAP            = 101,
   MENU_NEWGAMECUSTOM      = 102,
   MENU_NEWGAMECUSTOMSUB   = 103,
   MENU_SKILL              = 110,
   MENU_GAMESETUP          = 200,
   MENU_OPTIONS            = 202,
   MENU_VIDEOSETUP         = 203,
   MENU_KEYBOARDSETUP      = 204,
   MENU_MOUSESETUP         = 205,
   MENU_JOYSTICKSETUP      = 206,
   MENU_JOYSTICKBTNS       = 207,
   MENU_JOYSTICKAXES       = 208,
   MENU_KEYBOARDKEYS       = 209,
   MENU_MOUSEBTNS          = 210,
   MENU_MOUSEADVANCED      = 212,
   MENU_JOYSTICKAXIS       = 213,
   MENU_TOUCHSETUP         = 214,
   MENU_TOUCHSENS          = 215,
   MENU_TOUCHBUTTONS       = 216,
   MENU_CONTROLS           = 220,
   MENU_POLYMOST           = 230,
   MENU_COLCORR            = 231,
   MENU_COLCORR_INGAME     = 232,
   MENU_SCREENSETUP        = 233,
   MENU_DISPLAYSETUP       = 234,
   MENU_POLYMER            = 240,
   MENU_LOAD               = 300,
   MENU_SAVE               = 350,
   MENU_STORY              = 400,
   MENU_F1HELP             = 401,
   MENU_QUIT               = 500,
   MENU_QUITTOTITLE        = 501,
   MENU_QUIT_INGAME        = 502,
   MENU_NETSETUP           = 600,
   MENU_NETWAITMASTER      = 601,
   MENU_NETWAITVOTES       = 603,
   MENU_SOUND              = 700,
   MENU_SOUND_INGAME       = 701,
   MENU_ADVSOUND           = 702,
   MENU_SAVESETUP          = 750,
   MENU_SAVECLEANVERIFY    = 751,
   MENU_RESETSTATSVERIFY   = 752,
   MENU_CHEATS             = 800,
   MENU_CHEATENTRY         = 801,
   MENU_CHEAT_WARP         = 802,
   MENU_CHEAT_SKILL        = 803,
   MENU_CREDITS            = 990,
   MENU_CREDITS2           = 991,
   MENU_CREDITS3           = 992,
   MENU_CREDITS4           = 993,
   MENU_CREDITS5           = 994,
   MENU_LOADVERIFY         = 1000,
   MENU_LOADDELVERIFY      = 1100,
   MENU_NEWVERIFY          = 1500,
   MENU_SAVEVERIFY         = 2000,
   MENU_SAVEDELVERIFY      = 2100,
   MENU_COLCORRRESETVERIFY = 2200,
   MENU_KEYSRESETVERIFY    = 2201,
   MENU_KEYSCLASSICVERIFY  = 2202,
   MENU_JOYSTANDARDVERIFY  = 2203,
   MENU_JOYPROVERIFY       = 2204,
   MENU_JOYCLEARVERIFY     = 2205,
   MENU_ADULTPASSWORD      = 10001,
   MENU_RESETPLAYER        = 15000,
   MENU_BUYDUKE            = 20000,
   MENU_NETWORK            = 20001,
   MENU_PLAYER             = 20002,
   MENU_MACROS             = 20004,
   MENU_NETHOST            = 20010,
   MENU_NETOPTIONS         = 20011,
   MENU_NETUSERMAP         = 20012,
   MENU_NETJOIN            = 20020,
};