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

spool / Hud

Interface: Hud โ€‹

Defined in: plugins/hud/index.ts:25

The handle hud returns.

Methods โ€‹

flash() โ€‹

flash(ctx, who, message, ticks?): void

Defined in: plugins/hud/index.ts:33

Shows message to who for ticks (default 2s), replacing any message they had.

Parameters โ€‹

ctx โ€‹

FunctionContext

who โ€‹

Selector

message โ€‹

string | ComponentValue

ticks? โ€‹

number

Returns โ€‹

void


gap() โ€‹

gap(spaces): void

Defined in: plugins/hud/index.ts:31

Adds spaces 4px spaces at the end of the line.

Parameters โ€‹

spaces โ€‹

number

Returns โ€‹

void


meter() โ€‹

meter(name, opts): Meter

Defined in: plugins/hud/index.ts:27

Adds a meter at the end of the line. Add the sheet with dp.addAssets.

Parameters โ€‹

name โ€‹

string

opts โ€‹

MeterOptions

Returns โ€‹

Meter


number() โ€‹

number(name): HudNumber

Defined in: plugins/hud/index.ts:29

Adds a number at the end of the line.

Parameters โ€‹

name โ€‹

string

Returns โ€‹

HudNumber

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