From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.


native static clearscope void SetMenu(Name mnu, int param = 0)


Sets the current menu to the one specified by the given name. This can be either a name as defined in MENUDEF or the actual class name of the menu. If using a class name then the menu must inherit from GenericMenu, otherwise it won't work. If wanting to use a menu not defined in MENUDEF that doesn't inherit from GenericMenu, see ActivateMenu() instead.


  • mnu - The MENUDEF name or class of the menu to set. MENUDEF names take priority.
  • param - Only used internally. Default is 0.
Internal usages include:
  • Specifying which player class was selected in PlayerclassMenu. -1000 means no player class while -1 means random.
  • Specifying which episode was selected in EpisodeMenu.
  • Specifying which skill was selected in SkillMenu.


Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.