Current menu
current_menu contains an ID number corresponding to the menu that the player is currently displaying. Individual values can be found by looking through menus.h and menus.c.
// Menu screens define MENU_MAIN 0 define MENU_MAIN_INGAME 50 define MENU_EPISODE 100 define MENU_USERMAP 101 define MENU_SELECTMAP 102 define MENU_SKILL 110 define MENU_SETUP 200 define MENU_GAMESETUP 201 define MENU_OPTIONS 202 define MENU_VIDEOSETUP 203 define MENU_KEYBOARDSETUP 204 define MENU_MOUSESETUP 205 define MENU_KEYBOARDASSIGN 210 define MENU_MOUSEASSIGN 211 define MENU_ADVMOUSE 212 define MENU_RENDERERSETUP 230 define MENU_COLORCORR 231 define MENU_COLORCORRGAME 232 define MENU_LOAD 300 define MENU_SAVE 351 define MENU_SAVETYPE 360 define MENU_STORY 400 define MENU_F1HELP 401 define MENU_QUIT 500 define MENU_QUITTOTITLE 501 define MENU_QUIT2 502 define MENU_SOUND 700 define MENU_SOUND_INGAME 701 define MENU_CREDITS 990 define MENU_CREDITS2 991 define MENU_CREDITS3 992 define MENU_CREDITS4 993 define MENU_CREDITS5 994 define MENU_CREDITS6 995 define MENU_CREDITS7 996 define MENU_CREDITS8 997 define MENU_CREDITS9 998 define MENU_CREDITS10 999 define MENU_CONFIRMLOAD 1000 define MENU_ABORTGAME 1500 define MENU_CONFIRMSAVE 2000 define MENU_ADULTMODE 10000 define MENU_ADULTPASSWORD 10001 define MENU_BUYDUKE 20000 define MENU_PLAYERSETUP 20002 define MENU_MPMACROS 20004 define MENU_MPMACROSTYPE 20005