# ammoName
function ammoName(items)Return ammo name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
items | dynamic | — | The items input consumed by `ammoName`. |
src/miniquake/statusbar.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/menu.ml as menu → src/miniquake/menu.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/render/draw2d.ml as draw → src/miniquake/render/draw2d.mlminiquake/render_ui_contract.ml as renderUiContract → src/miniquake/render_ui_contract.mlfunction ammoName(items)Return ammo name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
items | dynamic | — | The items input consumed by `ammoName`. |
function armorName(items)Return armor name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
items | dynamic | — | The items input consumed by `armorName`. |
function drawInventory(state, fontTexture, player, x, y, scale)Render inventory.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `drawInventory`. |
fontTexture | dynamic | — | The font texture input consumed by `drawInventory`. |
player | dynamic | — | The player input consumed by `drawInventory`. |
x | dynamic | — | The x input consumed by `drawInventory`. |
y | dynamic | — | The y input consumed by `drawInventory`. |
scale | dynamic | — | The scale input consumed by `drawInventory`. |
function drawMainBar(state, player, x, y, scale)Render main bar.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `drawMainBar`. |
player | dynamic | — | The player input consumed by `drawMainBar`. |
x | dynamic | — | The x input consumed by `drawMainBar`. |
y | dynamic | — | The y input consumed by `drawMainBar`. |
scale | dynamic | — | The scale input consumed by `drawMainBar`. |
function drawNumber(state, x, y, number, digits, alternate, scale)Render number.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `drawNumber`. |
x | dynamic | — | The x input consumed by `drawNumber`. |
y | dynamic | — | The y input consumed by `drawNumber`. |
number | dynamic | — | The number input consumed by `drawNumber`. |
digits | dynamic | — | The digits input consumed by `drawNumber`. |
alternate | dynamic | — | The alternate input consumed by `drawNumber`. |
scale | dynamic | — | The scale input consumed by `drawNumber`. |
function drawPicture(state, name, x, y, scale, alpha)Render picture.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `drawPicture`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
x | dynamic | — | The x input consumed by `drawPicture`. |
y | dynamic | — | The y input consumed by `drawPicture`. |
scale | dynamic | — | The scale input consumed by `drawPicture`. |
alpha | dynamic | — | The alpha input consumed by `drawPicture`. |
function drawSmallAmmo(texture, x, y, number, scale)Render small ammo.
| Parameter | Type | Default | Description |
|---|---|---|---|
texture | dynamic | — | Texture resource processed by the operation. |
x | dynamic | — | The x input consumed by `drawSmallAmmo`. |
y | dynamic | — | The y input consumed by `drawSmallAmmo`. |
number | dynamic | — | The number input consumed by `drawSmallAmmo`. |
scale | dynamic | — | The scale input consumed by `drawSmallAmmo`. |
function faceName(player)Return face name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
player | dynamic | — | The player input consumed by `faceName`. |
function faceNameFor(items, health)Implements the `faceNameFor` operation for `miniquake.statusbar` (face name for).
| Parameter | Type | Default | Description |
|---|---|---|---|
items | dynamic | — | The items input consumed by `faceNameFor`. |
health | dynamic | — | The health input consumed by `faceNameFor`. |
function flashWeaponName(prefix, weapon, flash)Return flash weapon name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
prefix | dynamic | — | The prefix input consumed by `flashWeaponName`. |
weapon | dynamic | — | The weapon input consumed by `flashWeaponName`. |
flash | dynamic | — | The flash input consumed by `flashWeaponName`. |
function fragGlyphs(value)Implements the `fragGlyphs` operation for `miniquake.statusbar` (frag glyphs).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `fragGlyphs`. |
fragsortTracks the module-level fragsort state owned by `miniquake.statusbar`.
inline function inventoryAmmoCount(index)Return one of the four stock ammunition counters without constructing a frame-local aggregate array.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based index of the requested entry. |
function itemNeedsRefresh(itemIndex, currentTime)Implements the `itemNeedsRefresh` operation for `miniquake.statusbar` (item needs refresh).
| Parameter | Type | Default | Description |
|---|---|---|---|
itemIndex | dynamic | — | Zero-based index of the requested entry. |
currentTime | dynamic | — | Time value used by the operation. |
function loadedSbarPicture(name)Loads ed sbar picture for `miniquake.statusbar`.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
function loadSbarPicture(name)Read and validate sbar picture.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
function numberPicture(color, frame)Implements the `numberPicture` operation for `miniquake.statusbar` (number picture).
| Parameter | Type | Default | Description |
|---|---|---|---|
color | dynamic | — | Color value used by the operation. |
frame | dynamic | — | The frame input consumed by `numberPicture`. |
function padFrag(value)Implements the `padFrag` operation for `miniquake.statusbar` (pad frag).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `padFrag`. |
function picture(state, name)Implements the `picture` operation for `miniquake.statusbar` (picture).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `picture`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function rememberSbarPicture(name, value)Implements the `rememberSbarPicture` operation for `miniquake.statusbar` (remember sbar picture).
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
value | dynamic | — | Value consumed by `rememberSbarPicture`. |
function render(state, fontTexture, player, width, height, viewSize, clientState, teamplay)Sbar_Draw for the stock single-player layout. The original 320x24/48 qpics are taken from the user's gfx.wad; no Quake art is embedded in MiniQuake.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `render`. |
fontTexture | dynamic | — | The font texture input consumed by `render`. |
player | dynamic | — | The player input consumed by `render`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
viewSize | dynamic | — | Size of the requested data or resource. |
clientState | dynamic | — | Mutable state used by `render`. |
teamplay | dynamic | — | The teamplay input consumed by `render`. |
function rogueAmmoName(items)Return rogue ammo name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
items | dynamic | — | The items input consumed by `rogueAmmoName`. |
function rogueArmorName(items)Return rogue armor name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
items | dynamic | — | The items input consumed by `rogueArmorName`. |
sb_linesTracks the module-level sb lines state owned by `miniquake.statusbar`.
sb_showscoresTracks the module-level sb showscores state owned by `miniquake.statusbar`.
sb_updatesTracks the module-level sb updates state owned by `miniquake.statusbar`.
function Sbar_Changed()Mirror Quake's Sbar_Changed routine and its observable state changes.
inline function Sbar_ColorForMap(mapColor)Mirror Quake's Sbar_ColorForMap routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapColor | dynamic | — | The map color input consumed by `Sbar_ColorForMap`. |
function Sbar_CommandTrace()Mirror Quake's Sbar_CommandTrace routine and its observable state changes.
function Sbar_Configure(state, fontTexture, player, clientState, width, height, lines, teamplay)Mirror Quake's Sbar_Configure routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.statusbar` state used by `Sbar_Configure`. |
fontTexture | dynamic | — | The font texture input consumed by `Sbar_Configure`. |
player | dynamic | — | The player input consumed by `Sbar_Configure`. |
clientState | dynamic | — | Mutable state used by `Sbar_Configure`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
lines | dynamic | — | The lines input consumed by `Sbar_Configure`. |
teamplay | dynamic | — | The teamplay input consumed by `Sbar_Configure`. |
function Sbar_DeathmatchOverlay()Mirror Quake's Sbar_DeathmatchOverlay routine and its observable state changes.
function Sbar_DifferentialClearTrace()Mirror Quake's Sbar_DifferentialClearTrace routine and its observable state changes.
function Sbar_DifferentialReset(pictures)Deterministic state injection for the direct pinned-source differential. Production functions remain the code under test; only their globals/assets are arranged without requiring retail gfx.wad or an OpenGL context.
| Parameter | Type | Default | Description |
|---|---|---|---|
pictures | dynamic | — | The pictures input consumed by `Sbar_DifferentialReset`. |
function Sbar_DifferentialSetState(updates, showScores, hipnoticValue, rogueValue, teamplayValue)Mirror Quake's Sbar_DifferentialSetState routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
updates | dynamic | — | The updates input consumed by `Sbar_DifferentialSetState`. |
showScores | dynamic | — | The show scores input consumed by `Sbar_DifferentialSetState`. |
hipnoticValue | dynamic | — | The hipnotic value input consumed by `Sbar_DifferentialSetState`. |
rogueValue | dynamic | — | The rogue value input consumed by `Sbar_DifferentialSetState`. |
teamplayValue | dynamic | — | The teamplay value input consumed by `Sbar_DifferentialSetState`. |
function Sbar_DifferentialState()Mirror Quake's Sbar_DifferentialState routine and its observable state changes.
function Sbar_DontShowScores()Mirror Quake's Sbar_DontShowScores routine and its observable state changes.
function Sbar_Draw()Mirror Quake's Sbar_Draw routine and its observable state changes.
function Sbar_DrawCharacter(x, y, num)Mirror Quake's Sbar_DrawCharacter routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_DrawCharacter`. |
y | dynamic | — | The y input consumed by `Sbar_DrawCharacter`. |
num | dynamic | — | The num input consumed by `Sbar_DrawCharacter`. |
function Sbar_DrawFace()Mirror Quake's Sbar_DrawFace routine and its observable state changes.
function Sbar_DrawFrags()Mirror Quake's Sbar_DrawFrags routine and its observable state changes.
function Sbar_DrawInventory()Mirror Quake's Sbar_DrawInventory routine and its observable state changes.
function Sbar_DrawNum(x, y, num, digits, color)Mirror Quake's Sbar_DrawNum routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_DrawNum`. |
y | dynamic | — | The y input consumed by `Sbar_DrawNum`. |
num | dynamic | — | The num input consumed by `Sbar_DrawNum`. |
digits | dynamic | — | The digits input consumed by `Sbar_DrawNum`. |
color | dynamic | — | Color value used by the operation. |
function Sbar_DrawPic(x, y, pic)Mirror Quake's Sbar_DrawPic routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_DrawPic`. |
y | dynamic | — | The y input consumed by `Sbar_DrawPic`. |
pic | dynamic | — | The pic input consumed by `Sbar_DrawPic`. |
function Sbar_DrawScoreboard()Mirror Quake's Sbar_DrawScoreboard routine and its observable state changes.
function Sbar_DrawString(x, y, text)Mirror Quake's Sbar_DrawString routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_DrawString`. |
y | dynamic | — | The y input consumed by `Sbar_DrawString`. |
text | dynamic | — | Text to parse or process. |
function Sbar_DrawTransPic(x, y, pic)Mirror Quake's Sbar_DrawTransPic routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_DrawTransPic`. |
y | dynamic | — | The y input consumed by `Sbar_DrawTransPic`. |
pic | dynamic | — | The pic input consumed by `Sbar_DrawTransPic`. |
function Sbar_FinaleOverlay()Mirror Quake's Sbar_FinaleOverlay routine and its observable state changes.
const SBAR_HEIGHT = 24Defines the sbar height value used by `miniquake.statusbar`.
function Sbar_Init(gameDirectory)Mirror Quake's Sbar_Init routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
gameDirectory | dynamic | — | Selected Quake game-data directory. |
function Sbar_IntermissionNumber(x, y, num, digits, color)Mirror Quake's Sbar_IntermissionNumber routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_IntermissionNumber`. |
y | dynamic | — | The y input consumed by `Sbar_IntermissionNumber`. |
num | dynamic | — | The num input consumed by `Sbar_IntermissionNumber`. |
digits | dynamic | — | The digits input consumed by `Sbar_IntermissionNumber`. |
color | dynamic | — | Color value used by the operation. |
function Sbar_IntermissionNumberScaled(x, y, num, digits, color, transform)Mirror Quake's Sbar_IntermissionNumberScaled routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `Sbar_IntermissionNumberScaled`. |
y | dynamic | — | The y input consumed by `Sbar_IntermissionNumberScaled`. |
num | dynamic | — | The num input consumed by `Sbar_IntermissionNumberScaled`. |
digits | dynamic | — | The digits input consumed by `Sbar_IntermissionNumberScaled`. |
color | dynamic | — | Color value used by the operation. |
transform | dynamic | — | The transform input consumed by `Sbar_IntermissionNumberScaled`. |
function Sbar_IntermissionOverlay()Mirror Quake's Sbar_IntermissionOverlay routine and its observable state changes.
function Sbar_itoa(num)The C routine fills a caller buffer and returns its length. MiniLang returns [text, length].
| Parameter | Type | Default | Description |
|---|---|---|---|
num | dynamic | — | The num input consumed by `Sbar_itoa`. |
function Sbar_LayoutTrace(gameDirectory, player, clientState, width, height, lines, teamplay)Mirror Quake's Sbar_LayoutTrace routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
gameDirectory | dynamic | — | Selected Quake game-data directory. |
player | dynamic | — | The player input consumed by `Sbar_LayoutTrace`. |
clientState | dynamic | — | Mutable state used by `Sbar_LayoutTrace`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
lines | dynamic | — | The lines input consumed by `Sbar_LayoutTrace`. |
teamplay | dynamic | — | The teamplay input consumed by `Sbar_LayoutTrace`. |
function Sbar_MiniDeathmatchOverlay()Mirror Quake's Sbar_MiniDeathmatchOverlay routine and its observable state changes.
function Sbar_SetFrameState(consoleCurrent, numPages)Mirror Quake's Sbar_SetFrameState routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
consoleCurrent | dynamic | — | The console current input consumed by `Sbar_SetFrameState`. |
numPages | dynamic | — | The num pages input consumed by `Sbar_SetFrameState`. |
function Sbar_ShowScores()============================================================================= sbar.c compatibility surface =============================================================================
function Sbar_Shutdown()Mirror Quake's Sbar_Shutdown routine and its observable state changes.
function Sbar_SoloScoreboard()Mirror Quake's Sbar_SoloScoreboard routine and its observable state changes.
function Sbar_SortFrags(scores)Mirror Quake's Sbar_SortFrags routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
scores | dynamic | — | The scores input consumed by `Sbar_SortFrags`. |
function Sbar_UpdateScoreboard()Mirror Quake's Sbar_UpdateScoreboard routine and its observable state changes.
function sbarActiveWeapon()Report whether sbar active weapon holds for the active state.
sbarBaseItemNamesTracks the module-level sbar base item names state owned by `miniquake.statusbar`.
function sbarCanvasCharacter(x, y, num, transform)Implements the `sbarCanvasCharacter` operation for `miniquake.statusbar` (sbar canvas character).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarCanvasCharacter`. |
y | dynamic | — | The y input consumed by `sbarCanvasCharacter`. |
num | dynamic | — | The num input consumed by `sbarCanvasCharacter`. |
transform | dynamic | — | The transform input consumed by `sbarCanvasCharacter`. |
function sbarCanvasFill(x, y, width, height, color, transform)Implements the `sbarCanvasFill` operation for `miniquake.statusbar` (sbar canvas fill).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarCanvasFill`. |
y | dynamic | — | The y input consumed by `sbarCanvasFill`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
color | dynamic | — | Color value used by the operation. |
transform | dynamic | — | The transform input consumed by `sbarCanvasFill`. |
function sbarCanvasPic(x, y, pic, transform)Implements the `sbarCanvasPic` operation for `miniquake.statusbar` (sbar canvas pic).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarCanvasPic`. |
y | dynamic | — | The y input consumed by `sbarCanvasPic`. |
pic | dynamic | — | The pic input consumed by `sbarCanvasPic`. |
transform | dynamic | — | The transform input consumed by `sbarCanvasPic`. |
function sbarCanvasString(x, y, text, transform)Implements the `sbarCanvasString` operation for `miniquake.statusbar` (sbar canvas string).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarCanvasString`. |
y | dynamic | — | The y input consumed by `sbarCanvasString`. |
text | dynamic | — | Text to parse or process. |
transform | dynamic | — | The transform input consumed by `sbarCanvasString`. |
sbarClientTracks the module-level sbar client state owned by `miniquake.statusbar`.
sbarConsoleCurrentTracks the module-level sbar console current state owned by `miniquake.statusbar`.
sbarCopyEverythingTracks the module-level sbar copy everything state owned by `miniquake.statusbar`.
function sbarDirectCharacter(x, y, num)Implements the `sbarDirectCharacter` operation for `miniquake.statusbar` (sbar direct character).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarDirectCharacter`. |
y | dynamic | — | The y input consumed by `sbarDirectCharacter`. |
num | dynamic | — | The num input consumed by `sbarDirectCharacter`. |
function sbarDirectFill(x, y, width, height, color)Implements the `sbarDirectFill` operation for `miniquake.statusbar` (sbar direct fill).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarDirectFill`. |
y | dynamic | — | The y input consumed by `sbarDirectFill`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
color | dynamic | — | Color value used by the operation. |
function sbarDirectPic(x, y, pic)Implements the `sbarDirectPic` operation for `miniquake.statusbar` (sbar direct pic).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarDirectPic`. |
y | dynamic | — | The y input consumed by `sbarDirectPic`. |
pic | dynamic | — | The pic input consumed by `sbarDirectPic`. |
function sbarDirectString(x, y, text)Implements the `sbarDirectString` operation for `miniquake.statusbar` (sbar direct string).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarDirectString`. |
y | dynamic | — | The y input consumed by `sbarDirectString`. |
text | dynamic | — | Text to parse or process. |
function sbarDirectTileClear(x, y, width, height)Implements the `sbarDirectTileClear` operation for `miniquake.statusbar` (sbar direct tile clear).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarDirectTileClear`. |
y | dynamic | — | The y input consumed by `sbarDirectTileClear`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
function sbarDirectTransPic(x, y, pic)Implements the `sbarDirectTransPic` operation for `miniquake.statusbar` (sbar direct trans pic).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarDirectTransPic`. |
y | dynamic | — | The y input consumed by `sbarDirectTransPic`. |
pic | dynamic | — | The pic input consumed by `sbarDirectTransPic`. |
sbarFontTextureTracks the module-level sbar font texture state owned by `miniquake.statusbar`.
sbarFullUpdateTracks the module-level sbar full update state owned by `miniquake.statusbar`.
sbarGameTypeTracks the module-level sbar game type state owned by `miniquake.statusbar`.
sbarHeightTracks the module-level sbar height state owned by `miniquake.statusbar`.
sbarHipnoticTracks the module-level sbar hipnotic state owned by `miniquake.statusbar`.
sbarInitializedTracks the module-level sbar initialized state owned by `miniquake.statusbar`.
sbarInjectedPicturesTracks the module-level sbar injected pictures state owned by `miniquake.statusbar`.
function sbarItems()Implements the `sbarItems` operation for `miniquake.statusbar` (sbar items).
sbarLoadTraceTracks the module-level sbar load trace state owned by `miniquake.statusbar`.
sbarLogicalLinesTracks the module-level sbar logical lines state owned by `miniquake.statusbar`.
sbarNumPagesTracks the module-level sbar num pages state owned by `miniquake.statusbar`.
function sbarOverlayPic(x, y, pic, transform, transparent)Implements the `sbarOverlayPic` operation for `miniquake.statusbar` (sbar overlay pic).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `sbarOverlayPic`. |
y | dynamic | — | The y input consumed by `sbarOverlayPic`. |
pic | dynamic | — | The pic input consumed by `sbarOverlayPic`. |
transform | dynamic | — | The transform input consumed by `sbarOverlayPic`. |
transparent | dynamic | — | The transparent input consumed by `sbarOverlayPic`. |
sbarPictureNamesTracks the module-level sbar picture names state owned by `miniquake.statusbar`.
sbarPicturesTracks the module-level sbar pictures state owned by `miniquake.statusbar`.
sbarPlayerTracks the module-level sbar player state owned by `miniquake.statusbar`.
sbarRogueTracks the module-level sbar rogue state owned by `miniquake.statusbar`.
sbarRogueWeaponNamesTracks the module-level sbar rogue weapon names state owned by `miniquake.statusbar`.
sbarScaleTracks the module-level sbar scale state owned by `miniquake.statusbar`.
sbarStateTracks the module-level status-bar state owned by `miniquake.statusbar`.
sbarTeamplayTracks the module-level sbar teamplay state owned by `miniquake.statusbar`.
sbarTraceTracks the module-level sbar trace state owned by `miniquake.statusbar`.
sbarTraceEnabledTracks the module-level sbar trace enabled state owned by `miniquake.statusbar`.
sbarWeaponNamesImmutable name tables are shared by every HUD frame. Keeping them at module scope avoids rebuilding identical arrays while the inventory bar is drawn.
sbarWidthTracks the module-level sbar width state owned by `miniquake.statusbar`.
function sbarXOffset()Implements the `sbarXOffset` operation for `miniquake.statusbar` (sbar x offset).
function scaleFor(width, height)Implements the `scaleFor` operation for `miniquake.statusbar` (scale for).
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
scoreboardbottomTracks the module-level scoreboardbottom state owned by `miniquake.statusbar`.
scoreboardlinesTracks the module-level scoreboardlines state owned by `miniquake.statusbar`.
scoreboardtextTracks the module-level scoreboardtext state owned by `miniquake.statusbar`.
scoreboardtopTracks the module-level scoreboardtop state owned by `miniquake.statusbar`.
function smallAmmoDigit(texture, x, y, digit, scale)Implements the `smallAmmoDigit` operation for `miniquake.statusbar` (small ammo digit).
| Parameter | Type | Default | Description |
|---|---|---|---|
texture | dynamic | — | Texture resource processed by the operation. |
x | dynamic | — | The x input consumed by `smallAmmoDigit`. |
y | dynamic | — | The y input consumed by `smallAmmoDigit`. |
digit | dynamic | — | The digit input consumed by `smallAmmoDigit`. |
scale | dynamic | — | The scale input consumed by `smallAmmoDigit`. |
function stat(index, fallback)Implements the `stat` operation for `miniquake.statusbar` (stat).
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based index of the requested entry. |
fallback | dynamic | — | Value to use when the requested input is unavailable or invalid. |
const STAT_MINUS = 10Defines the stat minus value used by `miniquake.statusbar`.
function traceSbar(command)Trace sbar through the collision world.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function weaponFlash(itemIndex, activeWeapon, currentTime)Implements the `weaponFlash` operation for `miniquake.statusbar` (weapon flash).
| Parameter | Type | Default | Description |
|---|---|---|---|
itemIndex | dynamic | — | Zero-based index of the requested entry. |
activeWeapon | dynamic | — | The active weapon input consumed by `weaponFlash`. |
currentTime | dynamic | — | Time value used by the operation. |