# booleanArgument
function booleanArgument(arguments, name)Return the boolean argument value.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | arguments value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
src/miniquake2/client/ui/commands.mlProvides miniquake2 client ui commands facilities for this project.
miniquake2/audio/mixer.ml as cuicmdmixer → src/miniquake2/audio/mixer.mlminiquake2/client/ui/console.ml as cuicmdconsole → src/miniquake2/client/ui/console.mlminiquake2/client/ui/constants.ml as cuicmdconstants → src/miniquake2/client/ui/constants.mlminiquake2/client/ui/keys.ml as cuicmdkeys → src/miniquake2/client/ui/keys.mlminiquake2/client/ui/menu.ml as cuicmdmenu → src/miniquake2/client/ui/menu.mlminiquake2/game/constants.ml as cuicmdgameconstants → src/miniquake2/game/constants.mlminiquake2/qcommon/byteio.ml as cuicmdbyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/cmd.ml as cuicmdq → src/miniquake2/qcommon/cmd.mlminiquake2/qcommon/info.ml as cuicmdinfo → src/miniquake2/qcommon/info.mlminiquake2/qcommon/text.ml as cuicmdtext → src/miniquake2/qcommon/text.mlminiquake2/runtime/product_startup.ml as cuicmdstartup → src/miniquake2/runtime/product_startup.mlfunction booleanArgument(arguments, name)Return the boolean argument value.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | arguments value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
miniquake2.client.ui.commands.CommandState struct
function create()Creates create for the miniquake2 client ui commands module.
function downloadPolicy(commandState)Return the download policy value.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function drain(commandState, input, screen, mixer)Drain state.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
input | dynamic | — | input value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
function execute(commandState, input, screen, mixer, command)Execute state.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
input | dynamic | — | input value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
function integerArgument(arguments, name, minimum, maximum)Return the integer argument value.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | arguments value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
minimum | dynamic | — | minimum value consumed by this operation. |
maximum | dynamic | — | maximum value consumed by this operation. |
function localAction(commandState, input, screen, mixer, command)Apply commands owned by the client UI and return false only for text that must cross the Game API boundary. Parsing and validation happen before any persistent setting is mutated.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
input | dynamic | — | input value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
function numericArgument(arguments, name)Return the numeric argument value.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | arguments value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
function playerModelName(index)Return the player model name.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based index of the affected item. |
function playerProfile(commandState, input)Return the player profile value.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
input | dynamic | — | input value consumed by this operation. |
function playerSkinName(model, index)Return the player skin name.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
index | dynamic | — | Zero-based index of the affected item. |
function resetOptionDefaults(commandState, input, screen, mixer)`exec default.cfg` in the stock Options menu resets controls and the values displayed by that menu. Keep the operation local and typed so it cannot run arbitrary config text, while applying every setting our Options page owns.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
input | dynamic | — | input value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
function serverOptions(commandState)Return the server options value.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function setDmFlag(commandState, bit, enabled)Set dm flag.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
bit | dynamic | — | bit value consumed by this operation. |
enabled | dynamic | — | enabled value consumed by this operation. |
function takeConfigDirty(commandState)Report whether take config dirty.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeConnectAddress(commandState)Consume connect address.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeDisconnect(commandState)Consume disconnect.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
inline function takeForwarded(commandState)Consume forwarded.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeLoadSlot(commandState)Consume load slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeNewGameSkill(commandState)Consume new game skill.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takePlayerDirty(commandState)Report whether take player dirty.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeRconCommands(commandState)Consume pending remote-console commands.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeReconnect(commandState)Consume reconnect request.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeRecordName(commandState)Consume record name.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeRefreshServers(commandState)Consume refresh servers.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeSaveSlot(commandState)Consume save slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeScreenshot(commandState)Consume screenshot.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeStartServer(commandState)Consume start server.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
function takeStopRecording(commandState)Consume stop recording.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |