StartMessage

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


Menu

native static void StartMessage(string msg, int mode = 0, Name command = 'None')

Usage

Creates a MessageBoxMenu to display to the user. This is often used for intercepting menu actions like trying to access a blocked menu in multiplayer. Note that a menu must already be active for command to work properly.

Parameters

  • msg - The message to display to the user.
  • mode - The type of message box. If set to 0, it prompts the user with a yes or no option. If set to 1, acts as a simple message that closes on input.
  • command - The name of the menu to go to if the player selected yes. If command is 'None' then sends the selection to the parent menu instead via its MenuEvent().

Examples

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.