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

spool / ButtonSlot

Interface: ButtonSlot โ€‹

Defined in: plugins/gui/types.ts:29

A slot holding a locked item that acts as a button.

onClick runs at the GUI, with host to reach its slots. clicker is the player who took the button; it matches nobody if the button was dropped out of the menu.

Properties โ€‹

at โ€‹

readonly at: number

Defined in: plugins/gui/types.ts:30


button โ€‹

readonly button: ItemValue

Defined in: plugins/gui/types.ts:31

Methods โ€‹

onClick() โ€‹

onClick(ctx, host, clicker): void

Defined in: plugins/gui/types.ts:32

Parameters โ€‹

ctx โ€‹

FunctionContext

host โ€‹

GuiHost

clicker โ€‹

Selector

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.