Files
src/miniquake2/client/layout.ml
Provides miniquake2 client layout facilities for this project.
- Package
miniquake2.client.layout- Reachable
- Yes
Imports
Declarations
# draw
function draw(commands, exports)
Draws draw through the miniquake2 client layout rendering path.
| Parameter | Type | Default | Description |
|---|
commands | dynamic | — | commands value consumed by this operation. |
exports | dynamic | — | exports value consumed by this operation. |
View source
# drawCount
function drawCount(commands, commandCount, exports)
Draw count.
| Parameter | Type | Default | Description |
|---|
commands | dynamic | — | commands value consumed by this operation. |
commandCount | dynamic | — | Number of command to process. |
exports | dynamic | — | exports value consumed by this operation. |
View source
# drawNumber
function drawNumber(exports, x, y, value, width, color)
Draw number.
| Parameter | Type | Default | Description |
|---|
exports | dynamic | — | exports value consumed by this operation. |
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
color | dynamic | — | color value consumed by this operation. |
View source
# drawText
function drawText(exports, x, y, text, style)
Draws text through the miniquake2 client layout rendering path.
| Parameter | Type | Default | Description |
|---|
exports | dynamic | — | exports value consumed by this operation. |
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
text | dynamic | — | Text consumed by the operation. |
style | dynamic | — | style value consumed by this operation. |
View source
# fixedPlayerName
function fixedPlayerName(name)
Return the fixed player name.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Name of the affected item. |
View source
# integer
function integer(token, operation)
Return the integer value.
| Parameter | Type | Default | Description |
|---|
token | dynamic | — | token value consumed by this operation. |
operation | dynamic | — | operation value consumed by this operation. |
View source
miniquake2.client.layout.LayoutCommand struct
# padLeft3
function padLeft3(value)
Pad left 3.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# parse
function parse(layout, stats, configStrings, screenWidth, screenHeight)
Parses parse for the miniquake2 client layout workflow.
| Parameter | Type | Default | Description |
|---|
layout | dynamic | — | layout value consumed by this operation. |
stats | dynamic | — | stats value consumed by this operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
screenWidth | dynamic | — | screenWidth value consumed by this operation. |
screenHeight | dynamic | — | screenHeight value consumed by this operation. |
View source
# parseAtFrame
function parseAtFrame(layout, stats, configStrings, screenWidth, screenHeight, serverFrame, playerNumber)
Parse at frame.
| Parameter | Type | Default | Description |
|---|
layout | dynamic | — | layout value consumed by this operation. |
stats | dynamic | — | stats value consumed by this operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
screenWidth | dynamic | — | screenWidth value consumed by this operation. |
screenHeight | dynamic | — | screenHeight value consumed by this operation. |
serverFrame | dynamic | — | serverFrame value consumed by this operation. |
playerNumber | dynamic | — | playerNumber value consumed by this operation. |
View source
# parseTokens
function parseTokens(tokens, stats, configStrings, screenWidth, screenHeight)
Parse tokens.
| Parameter | Type | Default | Description |
|---|
tokens | dynamic | — | tokens value consumed by this operation. |
stats | dynamic | — | stats value consumed by this operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
screenWidth | dynamic | — | screenWidth value consumed by this operation. |
screenHeight | dynamic | — | screenHeight value consumed by this operation. |
View source
# parseTokensContext
function parseTokensContext(tokens, stats, configStrings, screenWidth, screenHeight, serverFrame, playerNumber)
Parse tokens context.
| Parameter | Type | Default | Description |
|---|
tokens | dynamic | — | tokens value consumed by this operation. |
stats | dynamic | — | stats value consumed by this operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
screenWidth | dynamic | — | screenWidth value consumed by this operation. |
screenHeight | dynamic | — | screenHeight value consumed by this operation. |
serverFrame | dynamic | — | serverFrame value consumed by this operation. |
playerNumber | dynamic | — | playerNumber value consumed by this operation. |
View source
# parseTokensContextInto
function parseTokensContextInto(commands, tokens, stats, configStrings, screenWidth, screenHeight, serverFrame, playerNumber)
Populate the parse tokens context destination.
| Parameter | Type | Default | Description |
|---|
commands | dynamic | — | commands value consumed by this operation. |
tokens | dynamic | — | tokens value consumed by this operation. |
stats | dynamic | — | stats value consumed by this operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
screenWidth | dynamic | — | screenWidth value consumed by this operation. |
screenHeight | dynamic | — | screenHeight value consumed by this operation. |
serverFrame | dynamic | — | serverFrame value consumed by this operation. |
playerNumber | dynamic | — | playerNumber value consumed by this operation. |
View source
# playerIdentity
function playerIdentity(configStrings, playerIndex)
Return the player identity value.
| Parameter | Type | Default | Description |
|---|
configStrings | dynamic | — | configStrings value consumed by this operation. |
playerIndex | dynamic | — | Zero-based index of player. |
View source
# requireToken
function requireToken(tokens, index, operation)
Require token.
| Parameter | Type | Default | Description |
|---|
tokens | dynamic | — | tokens value consumed by this operation. |
index | dynamic | — | Zero-based index of the affected item. |
operation | dynamic | — | operation value consumed by this operation. |
View source
# stat
function stat(stats, index)
Return the stat value.
| Parameter | Type | Default | Description |
|---|
stats | dynamic | — | stats value consumed by this operation. |
index | dynamic | — | Zero-based index of the affected item. |
View source
# tokenize
function tokenize(layout)
Return the tokenize value.
| Parameter | Type | Default | Description |
|---|
layout | dynamic | — | layout value consumed by this operation. |
View source