Talos docs

RaceBannerRun

Since 0.7

The banner controller banner hands back.

Plain text

Signature

export class RaceBannerRun {
  constructor(ctx: Ctx<any, any>, options: { id?: string } = {})
  get shown(): boolean
  get kind(): string | null
  show(kind: string, options: BannerShow = {}): void
  hide(): void
  update(dt: number): void
}

Import: import { RaceBannerRun } from "@argus/gameplay"

Members

MemberSignatureDescription
constructorconstructor(ctx: Ctx<any, any>, options: { id?: string } = {})A banner controller for the RaceBanner node id (default banner); banner(ctx, options) is the same.
shownget shown(): booleanIs it up.
kindget kind(): string | nullThe kind up now, or null.
showshow(kind: string, options: BannerShow = {}): voidPut a banner up: "final-lap", "wrong-way", "new-record", or any kind with a titleKey. Showing the kind already up only resets its time; it does not slam in again.
hidehide(): voidTake it down now.
updateupdate(dt: number): voidOne tick: a timed banner comes down when its time is up.