MiniQuake

src/miniquake/statusbar.ml

Package
miniquake.statusbar
Reachable
Yes

Imports

Declarations

ammoName

function ammoName(items)

Return ammo name derived from the active module state.

ParameterTypeDefaultDescription
itemsdynamic—The items input consumed by `ammoName`.

View source

armorName

function armorName(items)

Return armor name derived from the active module state.

ParameterTypeDefaultDescription
itemsdynamic—The items input consumed by `armorName`.

View source

drawInventory

function drawInventory(state, fontTexture, player, x, y, scale)

Render inventory.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.statusbar` state used by `drawInventory`.
fontTexturedynamic—The font texture input consumed by `drawInventory`.
playerdynamic—The player input consumed by `drawInventory`.
xdynamic—The x input consumed by `drawInventory`.
ydynamic—The y input consumed by `drawInventory`.
scaledynamic—The scale input consumed by `drawInventory`.

View source

drawMainBar

function drawMainBar(state, player, x, y, scale)

Render main bar.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.statusbar` state used by `drawMainBar`.
playerdynamic—The player input consumed by `drawMainBar`.
xdynamic—The x input consumed by `drawMainBar`.
ydynamic—The y input consumed by `drawMainBar`.
scaledynamic—The scale input consumed by `drawMainBar`.

View source

drawNumber

function drawNumber(state, x, y, number, digits, alternate, scale)

Render number.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.statusbar` state used by `drawNumber`.
xdynamic—The x input consumed by `drawNumber`.
ydynamic—The y input consumed by `drawNumber`.
numberdynamic—The number input consumed by `drawNumber`.
digitsdynamic—The digits input consumed by `drawNumber`.
alternatedynamic—The alternate input consumed by `drawNumber`.
scaledynamic—The scale input consumed by `drawNumber`.

View source

drawPicture

function drawPicture(state, name, x, y, scale, alpha)

Render picture.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.statusbar` state used by `drawPicture`.
namedynamic—Stable name that identifies the requested object or option.
xdynamic—The x input consumed by `drawPicture`.
ydynamic—The y input consumed by `drawPicture`.
scaledynamic—The scale input consumed by `drawPicture`.
alphadynamic—The alpha input consumed by `drawPicture`.

View source

drawSmallAmmo

function drawSmallAmmo(texture, x, y, number, scale)

Render small ammo.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `drawSmallAmmo`.
ydynamic—The y input consumed by `drawSmallAmmo`.
numberdynamic—The number input consumed by `drawSmallAmmo`.
scaledynamic—The scale input consumed by `drawSmallAmmo`.

View source

faceName

function faceName(player)

Return face name derived from the active module state.

ParameterTypeDefaultDescription
playerdynamic—The player input consumed by `faceName`.

View source

faceNameFor

function faceNameFor(items, health)

Implements the `faceNameFor` operation for `miniquake.statusbar` (face name for).

ParameterTypeDefaultDescription
itemsdynamic—The items input consumed by `faceNameFor`.
healthdynamic—The health input consumed by `faceNameFor`.

View source

flashWeaponName

function flashWeaponName(prefix, weapon, flash)

Return flash weapon name derived from the active module state.

ParameterTypeDefaultDescription
prefixdynamic—The prefix input consumed by `flashWeaponName`.
weapondynamic—The weapon input consumed by `flashWeaponName`.
flashdynamic—The flash input consumed by `flashWeaponName`.

View source

fragGlyphs

function fragGlyphs(value)

Implements the `fragGlyphs` operation for `miniquake.statusbar` (frag glyphs).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `fragGlyphs`.

View source

fragsort

fragsort

Tracks the module-level fragsort state owned by `miniquake.statusbar`.

View source

inventoryAmmoCount

inline function inventoryAmmoCount(index)

Return one of the four stock ammunition counters without constructing a frame-local aggregate array.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the requested entry.

View source

itemNeedsRefresh

function itemNeedsRefresh(itemIndex, currentTime)

Implements the `itemNeedsRefresh` operation for `miniquake.statusbar` (item needs refresh).

ParameterTypeDefaultDescription
itemIndexdynamic—Zero-based index of the requested entry.
currentTimedynamic—Time value used by the operation.

View source

loadedSbarPicture

function loadedSbarPicture(name)

Loads ed sbar picture for `miniquake.statusbar`.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

loadSbarPicture

function loadSbarPicture(name)

Read and validate sbar picture.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

numberPicture

function numberPicture(color, frame)

Implements the `numberPicture` operation for `miniquake.statusbar` (number picture).

ParameterTypeDefaultDescription
colordynamic—Color value used by the operation.
framedynamic—The frame input consumed by `numberPicture`.

View source

padFrag

function padFrag(value)

Implements the `padFrag` operation for `miniquake.statusbar` (pad frag).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `padFrag`.

View source

picture

function picture(state, name)

Implements the `picture` operation for `miniquake.statusbar` (picture).

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

View source

rememberSbarPicture

function rememberSbarPicture(name, value)

Implements the `rememberSbarPicture` operation for `miniquake.statusbar` (remember sbar picture).

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.
valuedynamic—Value consumed by `rememberSbarPicture`.

View source

render

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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.statusbar` state used by `render`.
fontTexturedynamic—The font texture input consumed by `render`.
playerdynamic—The player input consumed by `render`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
viewSizedynamic—Size of the requested data or resource.
clientStatedynamic—Mutable state used by `render`.
teamplaydynamic—The teamplay input consumed by `render`.

View source

rogueAmmoName

function rogueAmmoName(items)

Return rogue ammo name derived from the active module state.

ParameterTypeDefaultDescription
itemsdynamic—The items input consumed by `rogueAmmoName`.

View source

rogueArmorName

function rogueArmorName(items)

Return rogue armor name derived from the active module state.

ParameterTypeDefaultDescription
itemsdynamic—The items input consumed by `rogueArmorName`.

View source

sb_lines

sb_lines

Tracks the module-level sb lines state owned by `miniquake.statusbar`.

View source

sb_showscores

sb_showscores

Tracks the module-level sb showscores state owned by `miniquake.statusbar`.

View source

sb_updates

sb_updates

Tracks the module-level sb updates state owned by `miniquake.statusbar`.

View source

Sbar_Changed

function Sbar_Changed()

Mirror Quake's Sbar_Changed routine and its observable state changes.

View source

Sbar_ColorForMap

inline function Sbar_ColorForMap(mapColor)

Mirror Quake's Sbar_ColorForMap routine and its observable state changes.

ParameterTypeDefaultDescription
mapColordynamic—The map color input consumed by `Sbar_ColorForMap`.

View source

Sbar_CommandTrace

function Sbar_CommandTrace()

Mirror Quake's Sbar_CommandTrace routine and its observable state changes.

View source

Sbar_Configure

function Sbar_Configure(state, fontTexture, player, clientState, width, height, lines, teamplay)

Mirror Quake's Sbar_Configure routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.statusbar` state used by `Sbar_Configure`.
fontTexturedynamic—The font texture input consumed by `Sbar_Configure`.
playerdynamic—The player input consumed by `Sbar_Configure`.
clientStatedynamic—Mutable state used by `Sbar_Configure`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
linesdynamic—The lines input consumed by `Sbar_Configure`.
teamplaydynamic—The teamplay input consumed by `Sbar_Configure`.

View source

Sbar_DeathmatchOverlay

function Sbar_DeathmatchOverlay()

Mirror Quake's Sbar_DeathmatchOverlay routine and its observable state changes.

View source

Sbar_DifferentialClearTrace

function Sbar_DifferentialClearTrace()

Mirror Quake's Sbar_DifferentialClearTrace routine and its observable state changes.

View source

Sbar_DifferentialReset

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.

ParameterTypeDefaultDescription
picturesdynamic—The pictures input consumed by `Sbar_DifferentialReset`.

View source

Sbar_DifferentialSetState

function Sbar_DifferentialSetState(updates, showScores, hipnoticValue, rogueValue, teamplayValue)

Mirror Quake's Sbar_DifferentialSetState routine and its observable state changes.

ParameterTypeDefaultDescription
updatesdynamic—The updates input consumed by `Sbar_DifferentialSetState`.
showScoresdynamic—The show scores input consumed by `Sbar_DifferentialSetState`.
hipnoticValuedynamic—The hipnotic value input consumed by `Sbar_DifferentialSetState`.
rogueValuedynamic—The rogue value input consumed by `Sbar_DifferentialSetState`.
teamplayValuedynamic—The teamplay value input consumed by `Sbar_DifferentialSetState`.

View source

Sbar_DifferentialState

function Sbar_DifferentialState()

Mirror Quake's Sbar_DifferentialState routine and its observable state changes.

View source

Sbar_DontShowScores

function Sbar_DontShowScores()

Mirror Quake's Sbar_DontShowScores routine and its observable state changes.

View source

Sbar_Draw

function Sbar_Draw()

Mirror Quake's Sbar_Draw routine and its observable state changes.

View source

Sbar_DrawCharacter

function Sbar_DrawCharacter(x, y, num)

Mirror Quake's Sbar_DrawCharacter routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_DrawCharacter`.
ydynamic—The y input consumed by `Sbar_DrawCharacter`.
numdynamic—The num input consumed by `Sbar_DrawCharacter`.

View source

Sbar_DrawFace

function Sbar_DrawFace()

Mirror Quake's Sbar_DrawFace routine and its observable state changes.

View source

Sbar_DrawFrags

function Sbar_DrawFrags()

Mirror Quake's Sbar_DrawFrags routine and its observable state changes.

View source

Sbar_DrawInventory

function Sbar_DrawInventory()

Mirror Quake's Sbar_DrawInventory routine and its observable state changes.

View source

Sbar_DrawNum

function Sbar_DrawNum(x, y, num, digits, color)

Mirror Quake's Sbar_DrawNum routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_DrawNum`.
ydynamic—The y input consumed by `Sbar_DrawNum`.
numdynamic—The num input consumed by `Sbar_DrawNum`.
digitsdynamic—The digits input consumed by `Sbar_DrawNum`.
colordynamic—Color value used by the operation.

View source

Sbar_DrawPic

function Sbar_DrawPic(x, y, pic)

Mirror Quake's Sbar_DrawPic routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_DrawPic`.
ydynamic—The y input consumed by `Sbar_DrawPic`.
picdynamic—The pic input consumed by `Sbar_DrawPic`.

View source

Sbar_DrawScoreboard

function Sbar_DrawScoreboard()

Mirror Quake's Sbar_DrawScoreboard routine and its observable state changes.

View source

Sbar_DrawString

function Sbar_DrawString(x, y, text)

Mirror Quake's Sbar_DrawString routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_DrawString`.
ydynamic—The y input consumed by `Sbar_DrawString`.
textdynamic—Text to parse or process.

View source

Sbar_DrawTransPic

function Sbar_DrawTransPic(x, y, pic)

Mirror Quake's Sbar_DrawTransPic routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_DrawTransPic`.
ydynamic—The y input consumed by `Sbar_DrawTransPic`.
picdynamic—The pic input consumed by `Sbar_DrawTransPic`.

View source

Sbar_FinaleOverlay

function Sbar_FinaleOverlay()

Mirror Quake's Sbar_FinaleOverlay routine and its observable state changes.

View source

SBAR_HEIGHT

const SBAR_HEIGHT = 24

Defines the sbar height value used by `miniquake.statusbar`.

View source

Sbar_Init

function Sbar_Init(gameDirectory)

Mirror Quake's Sbar_Init routine and its observable state changes.

ParameterTypeDefaultDescription
gameDirectorydynamic—Selected Quake game-data directory.

View source

Sbar_IntermissionNumber

function Sbar_IntermissionNumber(x, y, num, digits, color)

Mirror Quake's Sbar_IntermissionNumber routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_IntermissionNumber`.
ydynamic—The y input consumed by `Sbar_IntermissionNumber`.
numdynamic—The num input consumed by `Sbar_IntermissionNumber`.
digitsdynamic—The digits input consumed by `Sbar_IntermissionNumber`.
colordynamic—Color value used by the operation.

View source

Sbar_IntermissionNumberScaled

function Sbar_IntermissionNumberScaled(x, y, num, digits, color, transform)

Mirror Quake's Sbar_IntermissionNumberScaled routine and its observable state changes.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `Sbar_IntermissionNumberScaled`.
ydynamic—The y input consumed by `Sbar_IntermissionNumberScaled`.
numdynamic—The num input consumed by `Sbar_IntermissionNumberScaled`.
digitsdynamic—The digits input consumed by `Sbar_IntermissionNumberScaled`.
colordynamic—Color value used by the operation.
transformdynamic—The transform input consumed by `Sbar_IntermissionNumberScaled`.

View source

Sbar_IntermissionOverlay

function Sbar_IntermissionOverlay()

Mirror Quake's Sbar_IntermissionOverlay routine and its observable state changes.

View source

Sbar_itoa

function Sbar_itoa(num)

The C routine fills a caller buffer and returns its length. MiniLang returns [text, length].

ParameterTypeDefaultDescription
numdynamic—The num input consumed by `Sbar_itoa`.

View source

Sbar_LayoutTrace

function Sbar_LayoutTrace(gameDirectory, player, clientState, width, height, lines, teamplay)

Mirror Quake's Sbar_LayoutTrace routine and its observable state changes.

ParameterTypeDefaultDescription
gameDirectorydynamic—Selected Quake game-data directory.
playerdynamic—The player input consumed by `Sbar_LayoutTrace`.
clientStatedynamic—Mutable state used by `Sbar_LayoutTrace`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
linesdynamic—The lines input consumed by `Sbar_LayoutTrace`.
teamplaydynamic—The teamplay input consumed by `Sbar_LayoutTrace`.

View source

Sbar_MiniDeathmatchOverlay

function Sbar_MiniDeathmatchOverlay()

Mirror Quake's Sbar_MiniDeathmatchOverlay routine and its observable state changes.

View source

Sbar_SetFrameState

function Sbar_SetFrameState(consoleCurrent, numPages)

Mirror Quake's Sbar_SetFrameState routine and its observable state changes.

ParameterTypeDefaultDescription
consoleCurrentdynamic—The console current input consumed by `Sbar_SetFrameState`.
numPagesdynamic—The num pages input consumed by `Sbar_SetFrameState`.

View source

Sbar_ShowScores

function Sbar_ShowScores()

============================================================================= sbar.c compatibility surface =============================================================================

View source

Sbar_Shutdown

function Sbar_Shutdown()

Mirror Quake's Sbar_Shutdown routine and its observable state changes.

View source

Sbar_SoloScoreboard

function Sbar_SoloScoreboard()

Mirror Quake's Sbar_SoloScoreboard routine and its observable state changes.

View source

Sbar_SortFrags

function Sbar_SortFrags(scores)

Mirror Quake's Sbar_SortFrags routine and its observable state changes.

ParameterTypeDefaultDescription
scoresdynamic—The scores input consumed by `Sbar_SortFrags`.

View source

Sbar_UpdateScoreboard

function Sbar_UpdateScoreboard()

Mirror Quake's Sbar_UpdateScoreboard routine and its observable state changes.

View source

sbarActiveWeapon

function sbarActiveWeapon()

Report whether sbar active weapon holds for the active state.

View source

sbarBaseItemNames

sbarBaseItemNames

Tracks the module-level sbar base item names state owned by `miniquake.statusbar`.

View source

sbarCanvasCharacter

function sbarCanvasCharacter(x, y, num, transform)

Implements the `sbarCanvasCharacter` operation for `miniquake.statusbar` (sbar canvas character).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarCanvasCharacter`.
ydynamic—The y input consumed by `sbarCanvasCharacter`.
numdynamic—The num input consumed by `sbarCanvasCharacter`.
transformdynamic—The transform input consumed by `sbarCanvasCharacter`.

View source

sbarCanvasFill

function sbarCanvasFill(x, y, width, height, color, transform)

Implements the `sbarCanvasFill` operation for `miniquake.statusbar` (sbar canvas fill).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarCanvasFill`.
ydynamic—The y input consumed by `sbarCanvasFill`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
colordynamic—Color value used by the operation.
transformdynamic—The transform input consumed by `sbarCanvasFill`.

View source

sbarCanvasPic

function sbarCanvasPic(x, y, pic, transform)

Implements the `sbarCanvasPic` operation for `miniquake.statusbar` (sbar canvas pic).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarCanvasPic`.
ydynamic—The y input consumed by `sbarCanvasPic`.
picdynamic—The pic input consumed by `sbarCanvasPic`.
transformdynamic—The transform input consumed by `sbarCanvasPic`.

View source

sbarCanvasString

function sbarCanvasString(x, y, text, transform)

Implements the `sbarCanvasString` operation for `miniquake.statusbar` (sbar canvas string).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarCanvasString`.
ydynamic—The y input consumed by `sbarCanvasString`.
textdynamic—Text to parse or process.
transformdynamic—The transform input consumed by `sbarCanvasString`.

View source

sbarClient

sbarClient

Tracks the module-level sbar client state owned by `miniquake.statusbar`.

View source

sbarConsoleCurrent

sbarConsoleCurrent

Tracks the module-level sbar console current state owned by `miniquake.statusbar`.

View source

sbarCopyEverything

sbarCopyEverything

Tracks the module-level sbar copy everything state owned by `miniquake.statusbar`.

View source

sbarDirectCharacter

function sbarDirectCharacter(x, y, num)

Implements the `sbarDirectCharacter` operation for `miniquake.statusbar` (sbar direct character).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarDirectCharacter`.
ydynamic—The y input consumed by `sbarDirectCharacter`.
numdynamic—The num input consumed by `sbarDirectCharacter`.

View source

sbarDirectFill

function sbarDirectFill(x, y, width, height, color)

Implements the `sbarDirectFill` operation for `miniquake.statusbar` (sbar direct fill).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarDirectFill`.
ydynamic—The y input consumed by `sbarDirectFill`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
colordynamic—Color value used by the operation.

View source

sbarDirectPic

function sbarDirectPic(x, y, pic)

Implements the `sbarDirectPic` operation for `miniquake.statusbar` (sbar direct pic).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarDirectPic`.
ydynamic—The y input consumed by `sbarDirectPic`.
picdynamic—The pic input consumed by `sbarDirectPic`.

View source

sbarDirectString

function sbarDirectString(x, y, text)

Implements the `sbarDirectString` operation for `miniquake.statusbar` (sbar direct string).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarDirectString`.
ydynamic—The y input consumed by `sbarDirectString`.
textdynamic—Text to parse or process.

View source

sbarDirectTileClear

function sbarDirectTileClear(x, y, width, height)

Implements the `sbarDirectTileClear` operation for `miniquake.statusbar` (sbar direct tile clear).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarDirectTileClear`.
ydynamic—The y input consumed by `sbarDirectTileClear`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

sbarDirectTransPic

function sbarDirectTransPic(x, y, pic)

Implements the `sbarDirectTransPic` operation for `miniquake.statusbar` (sbar direct trans pic).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarDirectTransPic`.
ydynamic—The y input consumed by `sbarDirectTransPic`.
picdynamic—The pic input consumed by `sbarDirectTransPic`.

View source

sbarFontTexture

sbarFontTexture

Tracks the module-level sbar font texture state owned by `miniquake.statusbar`.

View source

sbarFullUpdate

sbarFullUpdate

Tracks the module-level sbar full update state owned by `miniquake.statusbar`.

View source

sbarGameType

sbarGameType

Tracks the module-level sbar game type state owned by `miniquake.statusbar`.

View source

sbarHeight

sbarHeight

Tracks the module-level sbar height state owned by `miniquake.statusbar`.

View source

sbarHipnotic

sbarHipnotic

Tracks the module-level sbar hipnotic state owned by `miniquake.statusbar`.

View source

sbarInitialized

sbarInitialized

Tracks the module-level sbar initialized state owned by `miniquake.statusbar`.

View source

sbarInjectedPictures

sbarInjectedPictures

Tracks the module-level sbar injected pictures state owned by `miniquake.statusbar`.

View source

sbarItems

function sbarItems()

Implements the `sbarItems` operation for `miniquake.statusbar` (sbar items).

View source

sbarLoadTrace

sbarLoadTrace

Tracks the module-level sbar load trace state owned by `miniquake.statusbar`.

View source

sbarLogicalLines

sbarLogicalLines

Tracks the module-level sbar logical lines state owned by `miniquake.statusbar`.

View source

sbarNumPages

sbarNumPages

Tracks the module-level sbar num pages state owned by `miniquake.statusbar`.

View source

sbarOverlayPic

function sbarOverlayPic(x, y, pic, transform, transparent)

Implements the `sbarOverlayPic` operation for `miniquake.statusbar` (sbar overlay pic).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `sbarOverlayPic`.
ydynamic—The y input consumed by `sbarOverlayPic`.
picdynamic—The pic input consumed by `sbarOverlayPic`.
transformdynamic—The transform input consumed by `sbarOverlayPic`.
transparentdynamic—The transparent input consumed by `sbarOverlayPic`.

View source

sbarPictureNames

sbarPictureNames

Tracks the module-level sbar picture names state owned by `miniquake.statusbar`.

View source

sbarPictures

sbarPictures

Tracks the module-level sbar pictures state owned by `miniquake.statusbar`.

View source

sbarPlayer

sbarPlayer

Tracks the module-level sbar player state owned by `miniquake.statusbar`.

View source

sbarRogue

sbarRogue

Tracks the module-level sbar rogue state owned by `miniquake.statusbar`.

View source

sbarRogueWeaponNames

sbarRogueWeaponNames

Tracks the module-level sbar rogue weapon names state owned by `miniquake.statusbar`.

View source

sbarScale

sbarScale

Tracks the module-level sbar scale state owned by `miniquake.statusbar`.

View source

sbarState

sbarState

Tracks the module-level status-bar state owned by `miniquake.statusbar`.

View source

sbarTeamplay

sbarTeamplay

Tracks the module-level sbar teamplay state owned by `miniquake.statusbar`.

View source

sbarTrace

sbarTrace

Tracks the module-level sbar trace state owned by `miniquake.statusbar`.

View source

sbarTraceEnabled

sbarTraceEnabled

Tracks the module-level sbar trace enabled state owned by `miniquake.statusbar`.

View source

sbarWeaponNames

sbarWeaponNames

Immutable name tables are shared by every HUD frame. Keeping them at module scope avoids rebuilding identical arrays while the inventory bar is drawn.

View source

sbarWidth

sbarWidth

Tracks the module-level sbar width state owned by `miniquake.statusbar`.

View source

sbarXOffset

function sbarXOffset()

Implements the `sbarXOffset` operation for `miniquake.statusbar` (sbar x offset).

View source

scaleFor

function scaleFor(width, height)

Implements the `scaleFor` operation for `miniquake.statusbar` (scale for).

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

View source

scoreboardbottom

scoreboardbottom

Tracks the module-level scoreboardbottom state owned by `miniquake.statusbar`.

View source

scoreboardlines

scoreboardlines

Tracks the module-level scoreboardlines state owned by `miniquake.statusbar`.

View source

scoreboardtext

scoreboardtext

Tracks the module-level scoreboardtext state owned by `miniquake.statusbar`.

View source

scoreboardtop

scoreboardtop

Tracks the module-level scoreboardtop state owned by `miniquake.statusbar`.

View source

smallAmmoDigit

function smallAmmoDigit(texture, x, y, digit, scale)

Implements the `smallAmmoDigit` operation for `miniquake.statusbar` (small ammo digit).

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.
xdynamic—The x input consumed by `smallAmmoDigit`.
ydynamic—The y input consumed by `smallAmmoDigit`.
digitdynamic—The digit input consumed by `smallAmmoDigit`.
scaledynamic—The scale input consumed by `smallAmmoDigit`.

View source

stat

function stat(index, fallback)

Implements the `stat` operation for `miniquake.statusbar` (stat).

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the requested entry.
fallbackdynamic—Value to use when the requested input is unavailable or invalid.

View source

STAT_MINUS

const STAT_MINUS = 10

Defines the stat minus value used by `miniquake.statusbar`.

View source

traceSbar

function traceSbar(command)

Trace sbar through the collision world.

ParameterTypeDefaultDescription
commanddynamic—Console or protocol command to execute.

View source

weaponFlash

function weaponFlash(itemIndex, activeWeapon, currentTime)

Implements the `weaponFlash` operation for `miniquake.statusbar` (weapon flash).

ParameterTypeDefaultDescription
itemIndexdynamic—Zero-based index of the requested entry.
activeWeapondynamic—The active weapon input consumed by `weaponFlash`.
currentTimedynamic—Time value used by the operation.

View source