Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

spool / Meter

Interface: Meter โ€‹

Defined in: plugins/hud/parts.ts:14

A 16px icon that fills as a value rises; frames 1-9 of a 10-frame font sheet.

Methods โ€‹

cooldown() โ€‹

cooldown(ctx, remaining, max): void

Defined in: plugins/hud/parts.ts:18

Shows the meter full when remaining is over, filling up while it counts down from max. Unset counts as over.

Parameters โ€‹

ctx โ€‹

FunctionContext

remaining โ€‹

Score

max โ€‹

number

Returns โ€‹

void


fill() โ€‹

fill(ctx, value, max): void

Defined in: plugins/hud/parts.ts:16

Shows the meter 1 (empty) to 9 (full) for value out of max this tick. An unset value counts as empty.

Parameters โ€‹

ctx โ€‹

FunctionContext

value โ€‹

Score

max โ€‹

number

Returns โ€‹

void

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.