JoinSlotProps
Since 0.7
The join-slot behavior's props.
Every one is optional.
Signature
export interface JoinSlotProps {
/** The player this slot is; default the player `ctx.players.of(entity)` reports. */
/** The player this slot is; default the player `ctx.players.of(entity)` reports. */
player?: number
/** The button that toggles ready. Default `uiActivate`. */
readyAction?: string
/** The button that leaves. Default `uiBack`. */
leaveAction?: string
/** The 2D action that cycles the player's choice sideways. Default `uiNavigate`; "" turns it off. */
choiceAction?: string
}
Import: import type { JoinSlotProps } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
player | player?: number | The player this slot is; default the player ctx.players.of(entity) reports. |
readyAction | readyAction?: string | The button that toggles ready. Default uiActivate. |
leaveAction | leaveAction?: string | The button that leaves. Default uiBack. |
choiceAction | choiceAction?: string | The 2D action that cycles the player's choice sideways. Default uiNavigate; "" turns it off. |