Talos docs

JoinSlotProps

Since 0.7

The join-slot behavior's props.

Plain text

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

MemberSignatureDescription
playerplayer?: numberThe player this slot is; default the player ctx.players.of(entity) reports.
readyActionreadyAction?: stringThe button that toggles ready. Default uiActivate.
leaveActionleaveAction?: stringThe button that leaves. Default uiBack.
choiceActionchoiceAction?: stringThe 2D action that cycles the player's choice sideways. Default uiNavigate; "" turns it off.