MENUDEF

From Zandronum Wiki
Jump to: navigation, search

As of 3.0, Zandronum has ZDoom's menu rewrite and ZDoom Wiki MENUDEF is supported. Zandronum also contains some additions to the option menu that ZDoom currently does not. These features were created for Zandronum's custom menus (e.g. multiplayer options), but custom menus may utilize them as well.

TextField

TextField label, cvar [, graycheck ]

Defines a text input field. Designed for use with string CVars but other types of CVars may be used as well (input will behave as if entered into console). If graycheck is specified and points to a CVar, this text field will be disabled if the said CVar evaluates to a boolean false.

NumberField

NumberField label, cvar [, minimum, maximum [, step [, graycheck]]]

Defines a numeric input field, designed for use with number CVars (can be used with other kinds but data will be lost). Behaves like a slider except only the number is visible.

  • The minimum and maximum parameters default to 0 and 100, respectively. and determine the minimum and maximum amounts for the field.
  • The step parameter defaults to 1 and determines by how much the value will jump when the user shifts the value.
  • The graycheck parameter behaves like with text fields and defines a CVar whose value must not evaluate to a boolean false for the field to be available.

PlayerField

PlayerField label, cvar[, attributes]

Defines a field that selects a player. The index number of the player selected will be stored in the CVar (thus it should ideally be an integer CVar).

Additional behavior tweaks may be specified with attributes:

  • notself: the field will not select the local player
  • nobots</code>: the field will not select bots

NetgameOnly

NetgameOnly

The menu with this instruction is only available when playing online.