# drawMain
function drawMain(state, texture, transform, realtime)
Render main.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.menu` state used by `drawMain`. |
texture | dynamic | — | Texture resource processed by the operation. |
transform | dynamic | — | The transform input consumed by `drawMain`. |
realtime | dynamic | — | Time value used by the operation. |
View source
# M_Main_Draw
function M_Main_Draw(state, texture, transform, realtime)
Apply the Quake-compatible m main draw behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.menu` state used by `M_Main_Draw`. |
texture | dynamic | — | Texture resource processed by the operation. |
transform | dynamic | — | The transform input consumed by `M_Main_Draw`. |
realtime | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.menu` state used by `M_Main_Key`. |
key | dynamic | — | Key used to identify the requested entry. |
View source
# M_Menu_Main_f
function M_Menu_Main_f(state)
Apply the Quake-compatible m menu main f behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.menu` state used by `M_Menu_Main_f`. |
View source
# mainItems
function mainItems()
Implements the `mainItems` operation for `miniquake.menu` (main items).
View source
# openMain
function openMain(state)
Initialize state for open main.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.menu` state used by `openMain`. |
View source
# PAGE_MAIN
const PAGE_MAIN = "main"
Defines the page main value used by `miniquake.menu`.
View source