Skip to main content

Shop2

Namespace with shop-related functions.

Index

Variables

Elements

Elements: Record<string, ShopScreenFunctions> = ...

Namespace with the individual screen function components of the shop screen

Functions

ApplyItemFilters

  • ApplyItemFilters(clearDatalist?: boolean): void
  • Parameters

    • clearDatalist: boolean = true

    Returns void

DrawPriceRibbon

  • DrawPriceRibbon(label: string, x: number, y: number, w: number, color?: string): void
  • Parameters

    • label: string
    • x: number
    • y: number
    • w: number
    • optionalcolor: string

    Returns void

Init

  • Init(background?: string, screen?: [module: ModuleType, screen: string], assets?: readonly Asset[]): void
  • Helper function for initializing the Shop2 screen.


    Parameters

    • background: string = null

      The shops background image

    • screen: [module: ModuleType, screen: string] = null

      A 2-tuple containing the module and name of the previous screen

    • assets: readonly Asset[] = null

      A list of all assets that should appear in the shop

    Returns void

ParseAssets

_ClickDropdown

  • _ClickDropdown(id: string): void
  • Parameters

    • id: string

    Returns void

_GenerateAssetElements

_SetCheckboxFilters

  • _SetCheckboxFilters(): void
  • Returns void

_UpdatePoseButtons

  • _UpdatePoseButtons(): void
  • Returns void