Current menu: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
When the player is displaying the menu ( the menu when the player presses escape or when game starts ) this gamevar is set to the number corresponding to the menu that the player is currently displaying.
'''''current_menu''''' contains an ID number corresponding to the menu that the player is currently displaying. Individual values can be found by looking through [{{EDuke32 source|source/menus.h}} menus.h] and [{{EDuke32 source|source/menus.c}} menus.c].
 
Here are some sample values:


* 0: Main menu (title screen)
* 0: Main menu (title screen)
Line 22: Line 24:
* 700: Sound setup
* 700: Sound setup
* 1,000: Load game (confirm)
* 1,000: Load game (confirm)
* 1,500: "Abort this game?"
* 1,500: "ABORT this game?"
* 2,000: Save game (confirm)
* 2,000: Save game (confirm)
* 20,002: Player setup
* 20,002: Player setup

Revision as of 21:18, 28 October 2012

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.

Here are some sample values:

  • 0: Main menu (title screen)
  • 50: Main menu (game paused)
  • 100: Select an episode
  • 102: Select a user map
  • 110: Select skill
  • 200: Game setup
  • 201: More game setup
  • 202: Options
  • 203: Video setup
  • 204: Keyboard setup
  • 205: Mouse setup
  • 212: Advanced mouse setup
  • 230: Renderer setup
  • 231: Color correction
  • 300: Load game
  • 351: Save game
  • 360: Save game (text box)
  • 500: "Are you sure you want to quit?"
  • 501: "Quit to title?"
  • 700: Sound setup
  • 1,000: Load game (confirm)
  • 1,500: "ABORT this game?"
  • 2,000: Save game (confirm)
  • 20,002: Player setup
  • 20,004: Multiplayer macros
  • 20,005: Multiplayer macros (text box)