MiniQuake

src/miniquake/menu.ml

Package
miniquake.menu
Reachable
Yes

Imports

Declarations

back

function back(state)

This mirrors the original escape path: submenus return to the main menu; escape from the main menu returns to the game; quit returns to its caller.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `back`.

View source

baseEpisodes

function baseEpisodes()

Implements the `baseEpisodes` operation for `miniquake.menu` (base episodes).

View source

baseLevels

function baseLevels()

Implements the `baseLevels` operation for `miniquake.menu` (base levels).

View source

cachedLayout

cachedLayout

Tracks the module-level cached layout state owned by `miniquake.menu`.

View source

cachedLayoutHeight

cachedLayoutHeight

Tracks the module-level cached layout height state owned by `miniquake.menu`.

View source

cachedLayoutWidth

cachedLayoutWidth

Tracks the module-level cached layout width state owned by `miniquake.menu`.

View source

changeHelpPage

function changeHelpPage(state, delta)

Update subsystem configuration for change help page.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `changeHelpPage`.
deltadynamic—The delta input consumed by `changeHelpPage`.

View source

create

function create()

Implements the `create` operation for `miniquake.menu` (create).

View source

drawCheckbox

function drawCheckbox(texture, x, y, enabled, transform)

Render checkbox.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `drawCheckbox`.
ydynamic—The y input consumed by `drawCheckbox`.
enableddynamic—Whether the optional behavior is enabled.
transformdynamic—The transform input consumed by `drawCheckbox`.

View source

drawDot

function drawDot(state, realtime, y, transform)

Render dot.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawDot`.
realtimedynamic—Time value used by the operation.
ydynamic—The y input consumed by `drawDot`.
transformdynamic—The transform input consumed by `drawDot`.

View source

drawFallbackList

function drawFallbackList(state, texture, transform)

Render fallback list.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawFallbackList`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawFallbackList`.

View source

drawGameOptions

function drawGameOptions(state, texture, transform, realtime, registry)

Render game options.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawGameOptions`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawGameOptions`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `drawGameOptions`.

View source

drawHelp

function drawHelp(state, texture, transform)

Render help.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawHelp`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawHelp`.

View source

drawKeys

function drawKeys(state, texture, transform, realtime)

Render keys.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawKeys`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawKeys`.
realtimedynamic—Time value used by the operation.

View source

drawLanConfig

function drawLanConfig(state, texture, transform, realtime)

Render lan config.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawLanConfig`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawLanConfig`.
realtimedynamic—Time value used by the operation.

View source

drawMain

function drawMain(state, texture, transform, realtime)

Render main.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawMain`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawMain`.
realtimedynamic—Time value used by the operation.

View source

drawMultiplayer

function drawMultiplayer(state, texture, transform, realtime)

Render multiplayer.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawMultiplayer`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawMultiplayer`.
realtimedynamic—Time value used by the operation.

View source

drawNetwork

function drawNetwork(state, texture, transform, realtime)

Render network.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawNetwork`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawNetwork`.
realtimedynamic—Time value used by the operation.

View source

drawOptions

function drawOptions(state, texture, transform, realtime, registry)

Render options.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawOptions`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawOptions`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `drawOptions`.

View source

drawPage

function drawPage(state, texture, transform, realtime, registry, page)

Render page.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawPage`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawPage`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `drawPage`.
pagedynamic—The page input consumed by `drawPage`.

View source

drawQuit

function drawQuit(state, texture, transform)

Render quit.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawQuit`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawQuit`.

View source

drawSaveSlots

function drawSaveSlots(state, texture, transform, realtime, page)

Render save slots.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawSaveSlots`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawSaveSlots`.
realtimedynamic—Time value used by the operation.
pagedynamic—The page input consumed by `drawSaveSlots`.

View source

drawSearch

function drawSearch(state, texture, transform)

Render search.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawSearch`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawSearch`.

View source

drawServerList

function drawServerList(state, texture, transform, realtime)

Render server list.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawServerList`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawServerList`.
realtimedynamic—Time value used by the operation.

View source

drawSetup

function drawSetup(state, texture, transform, realtime, registry)

Render setup.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawSetup`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawSetup`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `drawSetup`.

View source

drawSinglePlayer

function drawSinglePlayer(state, texture, transform, realtime)

Render single player.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawSinglePlayer`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawSinglePlayer`.
realtimedynamic—Time value used by the operation.

View source

drawSlider

function drawSlider(texture, x, y, range, transform)

Render slider.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `drawSlider`.
ydynamic—The y input consumed by `drawSlider`.
rangedynamic—The range input consumed by `drawSlider`.
transformdynamic—The transform input consumed by `drawSlider`.

View source

drawTextBox

function drawTextBox(state, x, y, width, lines, transform)

M_DrawTextBox from WinQuake/menu.c. Width is measured in characters; every center tile covers two characters (16 pixels).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawTextBox`.
xdynamic—The x input consumed by `drawTextBox`.
ydynamic—The y input consumed by `drawTextBox`.
widthdynamic—Requested width in pixels or data units.
linesdynamic—The lines input consumed by `drawTextBox`.
transformdynamic—The transform input consumed by `drawTextBox`.

View source

drawVideo

function drawVideo(state, texture, transform, realtime)

Render video.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `drawVideo`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `drawVideo`.
realtimedynamic—Time value used by the operation.

View source

episodeTable

function episodeTable(state)

Implements the `episodeTable` operation for `miniquake.menu` (episode table).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `episodeTable`.

View source

excludedMenuPath

function excludedMenuPath(state, name)

Return excluded menu path derived from the active module state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `excludedMenuPath`.
namedynamic—Stable name that identifies the requested object or option.

View source

findPicture

function findPicture(state, name)

Return picture.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `findPicture`.
namedynamic—Stable name that identifies the requested object or option.

View source

findWadPicture

function findWadPicture(state, lumpName)

Return wad picture.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `findWadPicture`.
lumpNamedynamic—Name that identifies the requested value or resource.

View source

fixedServerField

function fixedServerField(text, width)

Implements the `fixedServerField` operation for `miniquake.menu` (fixed server field).

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
widthdynamic—Requested width in pixels or data units.

View source

gameTypeText

function gameTypeText(registry)

Implements the `gameTypeText` operation for `miniquake.menu` (game type text).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `gameTypeText`.

View source

HELP_PAGES

const HELP_PAGES = 6

Defines the help pages value used by `miniquake.menu`.

View source

hipnoticEpisodes

function hipnoticEpisodes()

Implements the `hipnoticEpisodes` operation for `miniquake.menu` (hipnotic episodes).

View source

hipnoticLevels

function hipnoticLevels()

Implements the `hipnoticLevels` operation for `miniquake.menu` (hipnotic levels).

View source

initialize

function initialize(state, filesystem, palette)

Initializes ialize for `miniquake.menu`.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `initialize`.
filesystemdynamic—The filesystem input consumed by `initialize`.
palettedynamic—The palette input consumed by `initialize`.

View source

itemsForPage

function itemsForPage(page)

Implements the `itemsForPage` operation for `miniquake.menu` (items for page).

ParameterTypeDefaultDescription
pagedynamic—The page input consumed by `itemsForPage`.

View source

keyCommandAt

function keyCommandAt(state)

Implements the `keyCommandAt` operation for `miniquake.menu` (key command at).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `keyCommandAt`.

View source

keyCommands

function keyCommands()

Implements the `keyCommands` operation for `miniquake.menu` (key commands).

View source

keyItems

function keyItems()

Implements the `keyItems` operation for `miniquake.menu` (key items).

View source

layout

function layout(width, height)

Implements the `layout` operation for `miniquake.menu` (layout).

ParameterTypeDefaultDescription
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

levelTable

function levelTable(state)

Implements the `levelTable` operation for `miniquake.menu` (level table).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `levelTable`.

View source

loadPicture

function loadPicture(state, filesystem, palette, path, transparent)

Read and validate picture.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `loadPicture`.
filesystemdynamic—The filesystem input consumed by `loadPicture`.
palettedynamic—The palette input consumed by `loadPicture`.
pathdynamic—Filesystem path to process.
transparentdynamic—The transparent input consumed by `loadPicture`.

View source

loadStatusBarPictures

function loadStatusBarPictures(state, filesystem, palette)

Read and validate status bar pictures.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `loadStatusBarPictures`.
filesystemdynamic—The filesystem input consumed by `loadStatusBarPictures`.
palettedynamic—The palette input consumed by `loadStatusBarPictures`.

View source

loadWadPicture

function loadWadPicture(state, archive, palette, lumpName, transparent)

Draw_PicFromWad compatibility. Status-bar and common UI pictures live in gfx.wad rather than as loose qpic files. Keep a distinct registry key so a WAD lump can never collide with a similarly named filesystem picture.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `loadWadPicture`.
archivedynamic—The archive input consumed by `loadWadPicture`.
palettedynamic—The palette input consumed by `loadWadPicture`.
lumpNamedynamic—Name that identifies the requested value or resource.
transparentdynamic—The transparent input consumed by `loadWadPicture`.

View source

M_AdjustSliders

function M_AdjustSliders(state, registry, direction)

Apply the Quake-compatible m adjust sliders behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_AdjustSliders`.
registrydynamic—The registry input consumed by `M_AdjustSliders`.
directiondynamic—The direction input consumed by `M_AdjustSliders`.

View source

M_BuildTranslationTable

function M_BuildTranslationTable(top, bottom)

Apply the Quake-compatible m build translation table behavior.

ParameterTypeDefaultDescription
topdynamic—The top input consumed by `M_BuildTranslationTable`.
bottomdynamic—The bottom input consumed by `M_BuildTranslationTable`.

View source

M_CommandTrace

function M_CommandTrace(state)

Apply the Quake-compatible m command trace behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_CommandTrace`.

View source

M_ConfigureNetSubsystem

function M_ConfigureNetSubsystem(state)

Apply the Quake-compatible m configure net subsystem behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ConfigureNetSubsystem`.

View source

M_Draw

function M_Draw(state, texture, width, height, mapName, realtime, registry)

Apply the Quake-compatible m draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Draw`.
texturedynamic—Texture resource processed by the operation.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
mapNamedynamic—Name of the map to load or inspect.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `M_Draw`.

View source

M_DrawCharacter

function M_DrawCharacter(texture, x, y, number, transform)

Apply the Quake-compatible m draw character behavior.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `M_DrawCharacter`.
ydynamic—The y input consumed by `M_DrawCharacter`.
numberdynamic—The number input consumed by `M_DrawCharacter`.
transformdynamic—The transform input consumed by `M_DrawCharacter`.

View source

M_DrawCheckbox

function M_DrawCheckbox(texture, x, y, enabled, transform)

Apply the Quake-compatible m draw checkbox behavior.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `M_DrawCheckbox`.
ydynamic—The y input consumed by `M_DrawCheckbox`.
enableddynamic—Whether the optional behavior is enabled.
transformdynamic—The transform input consumed by `M_DrawCheckbox`.

View source

M_DrawPic

function M_DrawPic(state, name, x, y, transform)

Apply the Quake-compatible m draw pic behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_DrawPic`.
namedynamic—Stable name that identifies the requested object or option.
xdynamic—The x input consumed by `M_DrawPic`.
ydynamic—The y input consumed by `M_DrawPic`.
transformdynamic—The transform input consumed by `M_DrawPic`.

View source

M_DrawSlider

function M_DrawSlider(texture, x, y, range, transform)

Apply the Quake-compatible m draw slider behavior.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `M_DrawSlider`.
ydynamic—The y input consumed by `M_DrawSlider`.
rangedynamic—The range input consumed by `M_DrawSlider`.
transformdynamic—The transform input consumed by `M_DrawSlider`.

View source

M_DrawTextBox

function M_DrawTextBox(state, x, y, width, lines, transform)

Apply the Quake-compatible m draw text box behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_DrawTextBox`.
xdynamic—The x input consumed by `M_DrawTextBox`.
ydynamic—The y input consumed by `M_DrawTextBox`.
widthdynamic—Requested width in pixels or data units.
linesdynamic—The lines input consumed by `M_DrawTextBox`.
transformdynamic—The transform input consumed by `M_DrawTextBox`.

View source

M_DrawTransPic

function M_DrawTransPic(state, name, x, y, transform)

Apply the Quake-compatible m draw trans pic behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_DrawTransPic`.
namedynamic—Stable name that identifies the requested object or option.
xdynamic—The x input consumed by `M_DrawTransPic`.
ydynamic—The y input consumed by `M_DrawTransPic`.
transformdynamic—The transform input consumed by `M_DrawTransPic`.

View source

M_DrawTransPicTranslate

function M_DrawTransPicTranslate(state, name, x, y, transform, top, bottom)

Apply the Quake-compatible m draw trans pic translate behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_DrawTransPicTranslate`.
namedynamic—Stable name that identifies the requested object or option.
xdynamic—The x input consumed by `M_DrawTransPicTranslate`.
ydynamic—The y input consumed by `M_DrawTransPicTranslate`.
transformdynamic—The transform input consumed by `M_DrawTransPicTranslate`.
topdynamic—The top input consumed by `M_DrawTransPicTranslate`.
bottomdynamic—The bottom input consumed by `M_DrawTransPicTranslate`.

View source

M_ExcludedPaths

function M_ExcludedPaths(state)

Apply the Quake-compatible m excluded paths behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ExcludedPaths`.

View source

M_FindKeysForCommand

function M_FindKeysForCommand(command)

Apply the Quake-compatible m find keys for command behavior.

ParameterTypeDefaultDescription
commanddynamic—Console or protocol command to execute.

View source

M_GameOptions_Draw

function M_GameOptions_Draw(state, texture, transform, realtime, registry)

Apply the Quake-compatible m game options draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_GameOptions_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_GameOptions_Draw`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `M_GameOptions_Draw`.

View source

M_GameOptions_Key

function M_GameOptions_Key(state, key, registry)

Apply the Quake-compatible m game options key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_GameOptions_Key`.
keydynamic—Key used to identify the requested entry.
registrydynamic—The registry input consumed by `M_GameOptions_Key`.

View source

M_Help_Draw

function M_Help_Draw(state, texture, transform)

Apply the Quake-compatible m help draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Help_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Help_Draw`.

View source

M_Help_Key

function M_Help_Key(state, key)

Apply the Quake-compatible m help key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Help_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Init

function M_Init(state)

Apply the Quake-compatible m init behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Init`.

View source

M_Keydown

function M_Keydown(state, key, registry)

Apply the Quake-compatible m keydown behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Keydown`.
keydynamic—Key used to identify the requested entry.
registrydynamic—The registry input consumed by `M_Keydown`.

View source

M_Keys_Draw

function M_Keys_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m keys draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Keys_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Keys_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Keys_Key

function M_Keys_Key(state, key)

Apply the Quake-compatible m keys key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Keys_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_LanConfig_Draw

function M_LanConfig_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m lan config draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_LanConfig_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_LanConfig_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_LanConfig_Key

function M_LanConfig_Key(state, key)

Apply the Quake-compatible m lan config key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_LanConfig_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Load_Draw

function M_Load_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m load draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Load_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Load_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Load_Key

function M_Load_Key(state, key)

Apply the Quake-compatible m load key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Load_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Main_Draw

function M_Main_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m main draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Main_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Main_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Main_Key

function M_Main_Key(state, key)

Apply the Quake-compatible m main key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Main_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Menu_GameOptions_f

function M_Menu_GameOptions_f(state, maximumClients, missionPack)

Apply the Quake-compatible m menu game options f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_GameOptions_f`.
maximumClientsdynamic—The maximum clients input consumed by `M_Menu_GameOptions_f`.
missionPackdynamic—The mission pack input consumed by `M_Menu_GameOptions_f`.

View source

M_Menu_Help_f

function M_Menu_Help_f(state)

Apply the Quake-compatible m menu help f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Help_f`.

View source

M_Menu_Keys_f

function M_Menu_Keys_f(state)

Apply the Quake-compatible m menu keys f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Keys_f`.

View source

M_Menu_LanConfig_f

function M_Menu_LanConfig_f(state)

Apply the Quake-compatible m menu lan config f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_LanConfig_f`.

View source

M_Menu_Load_f

function M_Menu_Load_f(state)

Apply the Quake-compatible m menu load f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Load_f`.

View source

M_Menu_Main_f

function M_Menu_Main_f(state)

Apply the Quake-compatible m menu main f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Main_f`.

View source

M_Menu_ModemConfig_f

function M_Menu_ModemConfig_f(state)

Apply the Quake-compatible m menu modem config f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_ModemConfig_f`.

View source

M_Menu_MultiPlayer_f

function M_Menu_MultiPlayer_f(state)

Apply the Quake-compatible m menu multi player f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_MultiPlayer_f`.

View source

M_Menu_Net_f

function M_Menu_Net_f(state)

Apply the Quake-compatible m menu net f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Net_f`.

View source

M_Menu_Options_f

function M_Menu_Options_f(state)

Apply the Quake-compatible m menu options f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Options_f`.

View source

M_Menu_Quit_f

function M_Menu_Quit_f(state)

Apply the Quake-compatible m menu quit f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Quit_f`.

View source

M_Menu_Save_f

function M_Menu_Save_f(state, serverActive, intermission, maxClients)

Apply the Quake-compatible m menu save f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Save_f`.
serverActivedynamic—The server active input consumed by `M_Menu_Save_f`.
intermissiondynamic—The intermission input consumed by `M_Menu_Save_f`.
maxClientsdynamic—The max clients input consumed by `M_Menu_Save_f`.

View source

M_Menu_Search_f

function M_Menu_Search_f(state, network, port, realtime)

Apply the Quake-compatible m menu search f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Search_f`.
networkdynamic—The network input consumed by `M_Menu_Search_f`.
portdynamic—The port input consumed by `M_Menu_Search_f`.
realtimedynamic—Time value used by the operation.

View source

M_Menu_SerialConfig_f

function M_Menu_SerialConfig_f(state)

Apply the Quake-compatible m menu serial config f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_SerialConfig_f`.

View source

M_Menu_ServerList_f

function M_Menu_ServerList_f(state, servers)

Apply the Quake-compatible m menu server list f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_ServerList_f`.
serversdynamic—The servers input consumed by `M_Menu_ServerList_f`.

View source

M_Menu_Setup_f

function M_Menu_Setup_f(state, registry)

Apply the Quake-compatible m menu setup f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Setup_f`.
registrydynamic—The registry input consumed by `M_Menu_Setup_f`.

View source

M_Menu_SinglePlayer_f

function M_Menu_SinglePlayer_f(state)

Apply the Quake-compatible m menu single player f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_SinglePlayer_f`.

View source

M_Menu_Video_f

function M_Menu_Video_f(state)

Apply the Quake-compatible m menu video f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Menu_Video_f`.

View source

M_ModemConfig_Draw

function M_ModemConfig_Draw(state, texture, transform)

Apply the Quake-compatible m modem config draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ModemConfig_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_ModemConfig_Draw`.

View source

M_ModemConfig_Key

function M_ModemConfig_Key(state, key)

Apply the Quake-compatible m modem config key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ModemConfig_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_MultiPlayer_Draw

function M_MultiPlayer_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m multi player draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_MultiPlayer_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_MultiPlayer_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_MultiPlayer_Key

function M_MultiPlayer_Key(state, key)

Apply the Quake-compatible m multi player key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_MultiPlayer_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Net_Draw

function M_Net_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m net draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Net_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Net_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Net_Key

function M_Net_Key(state, key)

Apply the Quake-compatible m net key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Net_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_NetStart_Change

function M_NetStart_Change(state, registry, direction)

Apply the Quake-compatible m net start change behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_NetStart_Change`.
registrydynamic—The registry input consumed by `M_NetStart_Change`.
directiondynamic—The direction input consumed by `M_NetStart_Change`.

View source

M_Options_Draw

function M_Options_Draw(state, texture, transform, realtime, registry)

Apply the Quake-compatible m options draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Options_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Options_Draw`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `M_Options_Draw`.

View source

M_Options_Key

function M_Options_Key(state, key, registry)

Apply the Quake-compatible m options key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Options_Key`.
keydynamic—Key used to identify the requested entry.
registrydynamic—The registry input consumed by `M_Options_Key`.

View source

M_Print

function M_Print(texture, x, y, text, transform)

Apply the Quake-compatible m print behavior.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `M_Print`.
ydynamic—The y input consumed by `M_Print`.
textdynamic—Text to parse or process.
transformdynamic—The transform input consumed by `M_Print`.

View source

M_PrintWhite

function M_PrintWhite(texture, x, y, text, transform)

Apply the Quake-compatible m print white behavior.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `M_PrintWhite`.
ydynamic—The y input consumed by `M_PrintWhite`.
textdynamic—Text to parse or process.
transformdynamic—The transform input consumed by `M_PrintWhite`.

View source

M_Quit_Draw

function M_Quit_Draw(state, texture, transform)

Apply the Quake-compatible m quit draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Quit_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Quit_Draw`.

View source

M_Quit_Key

function M_Quit_Key(state, key)

Apply the Quake-compatible m quit key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Quit_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Save_Draw

function M_Save_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m save draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Save_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Save_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Save_Key

function M_Save_Key(state, key)

Apply the Quake-compatible m save key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Save_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_ScanSaves

function M_ScanSaves(state, labels, loadable)

Apply the Quake-compatible m scan saves behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ScanSaves`.
labelsdynamic—The labels input consumed by `M_ScanSaves`.
loadabledynamic—The loadable input consumed by `M_ScanSaves`.

View source

M_Search_Draw

function M_Search_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m search draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Search_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Search_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Search_Key

function M_Search_Key(state, key)

Apply the Quake-compatible m search key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Search_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_SerialConfig_Draw

function M_SerialConfig_Draw(state, texture, transform)

Apply the Quake-compatible m serial config draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_SerialConfig_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_SerialConfig_Draw`.

View source

M_SerialConfig_Key

function M_SerialConfig_Key(state, key)

Apply the Quake-compatible m serial config key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_SerialConfig_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_ServerList_Draw

function M_ServerList_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m server list draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ServerList_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_ServerList_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_ServerList_Key

function M_ServerList_Key(state, key)

Apply the Quake-compatible m server list key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ServerList_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_Setup_Draw

function M_Setup_Draw(state, texture, transform, realtime, registry)

Apply the Quake-compatible m setup draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Setup_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Setup_Draw`.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `M_Setup_Draw`.

View source

M_Setup_Key

function M_Setup_Key(state, key)

Apply the Quake-compatible m setup key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Setup_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_SetVideoCallbacks

function M_SetVideoCallbacks(state, drawCallback, keyCallback)

Apply the Quake-compatible m set video callbacks behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_SetVideoCallbacks`.
drawCallbackdynamic—The draw callback input consumed by `M_SetVideoCallbacks`.
keyCallbackdynamic—The key callback input consumed by `M_SetVideoCallbacks`.

View source

M_SinglePlayer_Draw

function M_SinglePlayer_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m single player draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_SinglePlayer_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_SinglePlayer_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_SinglePlayer_Key

function M_SinglePlayer_Key(state, key)

Apply the Quake-compatible m single player key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_SinglePlayer_Key`.
keydynamic—Key used to identify the requested entry.

View source

M_ToggleMenu_f

function M_ToggleMenu_f(state)

Apply the Quake-compatible m toggle menu f behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_ToggleMenu_f`.

View source

M_UnbindCommand

function M_UnbindCommand(command)

Apply the Quake-compatible m unbind command behavior.

ParameterTypeDefaultDescription
commanddynamic—Console or protocol command to execute.

View source

M_Video_Draw

function M_Video_Draw(state, texture, transform, realtime)

Apply the Quake-compatible m video draw behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Video_Draw`.
texturedynamic—Texture resource processed by the operation.
transformdynamic—The transform input consumed by `M_Video_Draw`.
realtimedynamic—Time value used by the operation.

View source

M_Video_Key

function M_Video_Key(state, key)

Apply the Quake-compatible m video key behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `M_Video_Key`.
keydynamic—Key used to identify the requested entry.

View source

mainItems

function mainItems()

Implements the `mainItems` operation for `miniquake.menu` (main items).

View source

menuStringLess

function menuStringLess(left, right)

Implements the `menuStringLess` operation for `miniquake.menu` (menu string less).

ParameterTypeDefaultDescription
leftdynamic—The left input consumed by `menuStringLess`.
rightdynamic—The right input consumed by `menuStringLess`.

View source

MNET_IPX

const MNET_IPX = 1

Defines the mnet ipx value used by `miniquake.menu`.

View source

MNET_TCP

const MNET_TCP = 2

Defines the mnet tcp value used by `miniquake.menu`.

View source

move

function move(state, delta)

Transfer data for move.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `move`.
deltadynamic—The delta input consumed by `move`.

View source

moveHelp

function moveHelp(state, delta)

Transfer data for move help.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `moveHelp`.
deltadynamic—The delta input consumed by `moveHelp`.

View source

multiplayerItems

function multiplayerItems()

Implements the `multiplayerItems` operation for `miniquake.menu` (multiplayer items).

View source

normalizeLanPort

function normalizeLanPort(state)

Convert lan port into its canonical representation.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `normalizeLanPort`.

View source

openMain

function openMain(state)

Initialize state for open main.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `openMain`.

View source

openPage

function openPage(state, page)

Initialize state for open page.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `openPage`.
pagedynamic—The page input consumed by `openPage`.

View source

optionsItems

function optionsItems()

Implements the `optionsItems` operation for `miniquake.menu` (options items).

View source

PAGE_GAME_OPTIONS

const PAGE_GAME_OPTIONS = "gameoptions"

Defines the page game options value used by `miniquake.menu`.

View source

PAGE_HELP

const PAGE_HELP = "help"

Defines the page help value used by `miniquake.menu`.

View source

PAGE_KEYS

const PAGE_KEYS = "keys"

Defines the page keys value used by `miniquake.menu`.

View source

PAGE_LAN

const PAGE_LAN = "lanconfig"

Defines the page lan value used by `miniquake.menu`.

View source

PAGE_LOAD

const PAGE_LOAD = "load"

Defines the page load value used by `miniquake.menu`.

View source

PAGE_MAIN

const PAGE_MAIN = "main"

Defines the page main value used by `miniquake.menu`.

View source

PAGE_MODEM

const PAGE_MODEM = "modemconfig"

Defines the page modem value used by `miniquake.menu`.

View source

PAGE_MULTI

const PAGE_MULTI = "multiplayer"

Defines the page multi value used by `miniquake.menu`.

View source

PAGE_MULTIPLAYER

const PAGE_MULTIPLAYER = PAGE_MULTI

Defines the page multiplayer value used by `miniquake.menu`.

View source

PAGE_NET

const PAGE_NET = "net"

Defines the page net value used by `miniquake.menu`.

View source

PAGE_OPTIONS

const PAGE_OPTIONS = "options"

Defines the page options value used by `miniquake.menu`.

View source

PAGE_QUIT

const PAGE_QUIT = "quit"

Defines the page quit value used by `miniquake.menu`.

View source

PAGE_SAVE

const PAGE_SAVE = "save"

Defines the page save value used by `miniquake.menu`.

View source

PAGE_SEARCH

const PAGE_SEARCH = "search"

Defines the page search value used by `miniquake.menu`.

View source

PAGE_SERIAL

const PAGE_SERIAL = "serialconfig"

Defines the page serial value used by `miniquake.menu`.

View source

PAGE_SERVER_LIST

const PAGE_SERVER_LIST = "serverlist"

Defines the page server list value used by `miniquake.menu`.

View source

PAGE_SETUP

const PAGE_SETUP = "setup"

Defines the page setup value used by `miniquake.menu`.

View source

PAGE_SINGLE

const PAGE_SINGLE = "singleplayer"

Defines the page single value used by `miniquake.menu`.

View source

PAGE_SINGLEPLAYER

const PAGE_SINGLEPLAYER = PAGE_SINGLE

Descriptive aliases retained for callers that use the long names.

View source

PAGE_VIDEO

const PAGE_VIDEO = "video"

Defines the page video value used by `miniquake.menu`.

View source

playerTranslation

function playerTranslation(registry)

Implements the `playerTranslation` operation for `miniquake.menu` (player translation).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `playerTranslation`.

View source

rememberSelection

function rememberSelection(state)

Implements the `rememberSelection` operation for `miniquake.menu` (remember selection).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `rememberSelection`.

View source

render

function render(state, texture, width, height, mapName, realtime, registry)

Implements the `render` operation for `miniquake.menu` (render).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `render`.
texturedynamic—Texture resource processed by the operation.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
mapNamedynamic—Name of the map to load or inspect.
realtimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `render`.

View source

rogueEpisodes

function rogueEpisodes()

Implements the `rogueEpisodes` operation for `miniquake.menu` (rogue episodes).

View source

rogueLevels

function rogueLevels()

Implements the `rogueLevels` operation for `miniquake.menu` (rogue levels).

View source

saveSlotItems

function saveSlotItems()

Encode and write slot items.

View source

selectedCommand

function selectedCommand(state)

Implements the `selectedCommand` operation for `miniquake.menu` (selected command).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `selectedCommand`.

View source

selectedLevel

function selectedLevel(state)

Implements the `selectedLevel` operation for `miniquake.menu` (selected level).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `selectedLevel`.

View source

setActive

function setActive(state, active)

Update module state for active.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `setActive`.
activedynamic—The active input consumed by `setActive`.

View source

setItems

function setItems(state, items)

Update module state for items.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `setItems`.
itemsdynamic—The items input consumed by `setItems`.

View source

setPage

function setPage(state, page)

Public spelling used by the host and tests. Keeping page changes in one function ensures selection/status state is reset exactly once.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `setPage`.
pagedynamic—The page input consumed by `setPage`.

View source

setStatus

function setStatus(state, text)

Update module state for status.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `setStatus`.
textdynamic—Text to parse or process.

View source

setupAppend

function setupAppend(state, key)

Update module state for up append.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `setupAppend`.
keydynamic—Key used to identify the requested entry.

View source

setupBackspace

function setupBackspace(state)

Update module state for up backspace.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `setupBackspace`.

View source

shutdown

function shutdown(state)

Implements the `shutdown` operation for `miniquake.menu` (shutdown).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `shutdown`.

View source

singlePlayerItems

function singlePlayerItems()

Implements the `singlePlayerItems` operation for `miniquake.menu` (single player items).

View source

sortServers

function sortServers(state)

Implements the `sortServers` operation for `miniquake.menu` (sort servers).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `sortServers`.

View source

storedSelection

function storedSelection(state, page, fallback)

Implements the `storedSelection` operation for `miniquake.menu` (stored selection).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `storedSelection`.
pagedynamic—The page input consumed by `storedSelection`.
fallbackdynamic—Value to use when the requested input is unavailable or invalid.

View source

teamplayText

function teamplayText(state, registry)

Implements the `teamplayText` operation for `miniquake.menu` (teamplay text).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `teamplayText`.
registrydynamic—The registry input consumed by `teamplayText`.

View source

titleForPage

function titleForPage(page)

Implements the `titleForPage` operation for `miniquake.menu` (title for page).

ParameterTypeDefaultDescription
pagedynamic—The page input consumed by `titleForPage`.

View source

toggle

function toggle(state)

Update subsystem configuration for toggle.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `toggle`.

View source

traceDraw

function traceDraw(state, name)

----------------------------------------------------------------------------- Exact menu.c / menu.h entry points.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `traceDraw`.
namedynamic—Stable name that identifies the requested object or option.

View source

virtualCenteredPicture

function virtualCenteredPicture(state, name, y, transform, alpha)

Implements the `virtualCenteredPicture` operation for `miniquake.menu` (virtual centered picture).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `virtualCenteredPicture`.
namedynamic—Stable name that identifies the requested object or option.
ydynamic—The y input consumed by `virtualCenteredPicture`.
transformdynamic—The transform input consumed by `virtualCenteredPicture`.
alphadynamic—The alpha input consumed by `virtualCenteredPicture`.

View source

virtualCenteredString

function virtualCenteredString(texture, y, text, transform, alpha)

Implements the `virtualCenteredString` operation for `miniquake.menu` (virtual centered string).

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
ydynamic—The y input consumed by `virtualCenteredString`.
textdynamic—Text to parse or process.
transformdynamic—The transform input consumed by `virtualCenteredString`.
alphadynamic—The alpha input consumed by `virtualCenteredString`.

View source

virtualPicture

function virtualPicture(state, name, x, y, transform, alpha)

Implements the `virtualPicture` operation for `miniquake.menu` (virtual picture).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.menu` state used by `virtualPicture`.
namedynamic—Stable name that identifies the requested object or option.
xdynamic—The x input consumed by `virtualPicture`.
ydynamic—The y input consumed by `virtualPicture`.
transformdynamic—The transform input consumed by `virtualPicture`.
alphadynamic—The alpha input consumed by `virtualPicture`.

View source

virtualSolid

function virtualSolid(x, y, width, height, transform, red, green, blue, alpha)

Implements the `virtualSolid` operation for `miniquake.menu` (virtual solid).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `virtualSolid`.
ydynamic—The y input consumed by `virtualSolid`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
transformdynamic—The transform input consumed by `virtualSolid`.
reddynamic—The red input consumed by `virtualSolid`.
greendynamic—The green input consumed by `virtualSolid`.
bluedynamic—The blue input consumed by `virtualSolid`.
alphadynamic—The alpha input consumed by `virtualSolid`.

View source

virtualString

function virtualString(texture, x, y, text, transform, alpha)

Implements the `virtualString` operation for `miniquake.menu` (virtual string).

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `virtualString`.
ydynamic—The y input consumed by `virtualString`.
textdynamic—Text to parse or process.
transformdynamic—The transform input consumed by `virtualString`.
alphadynamic—The alpha input consumed by `virtualString`.

View source

virtualWhiteString

function virtualWhiteString(texture, x, y, text, transform, alpha)

Implements the `virtualWhiteString` operation for `miniquake.menu` (virtual white string).

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `virtualWhiteString`.
ydynamic—The y input consumed by `virtualWhiteString`.
textdynamic—Text to parse or process.
transformdynamic—The transform input consumed by `virtualWhiteString`.
alphadynamic—The alpha input consumed by `virtualWhiteString`.

View source

widthTwo

function widthTwo(number)

Implements the `widthTwo` operation for `miniquake.menu` (width two).

ParameterTypeDefaultDescription
numberdynamic—The number input consumed by `widthTwo`.

View source