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.