A basic abstract class to act as a holder and processor for UI elements.

Hierarchy (view full)

Constructors

Properties

active: boolean = false
awaitingActionInput: boolean
blockInput: boolean = false
cursor: number = 0
cursorObj: Image
message: Text
mode: number
onActionInput: Function
pendingPrompt: boolean
prompt: Sprite
scene: default
starterSpecies: default[] = []
textCallbackTimer: TimerEvent
textTimer: TimerEvent
tutorialActive: boolean = false

Methods

  • Determines if a passive upgrade is available for the given species ID

    Parameters

    • speciesId: number

      The ID of the species to check the passive of

    Returns boolean

    true if the user has enough candies and a passive has not been unlocked already

  • Determines if an same species egg can be baught for the given species ID

    Parameters

    • speciesId: number

      The ID of the species to check the value reduction of

    Returns boolean

    true if the user has enough candies

  • Determines if 'Animation' based upgrade notifications should be shown

    Returns boolean

    true if upgrade notifications are enabled and set to display an 'Animation'

  • Determines if 'Icon' based upgrade notifications should be shown

    Returns boolean

    true if upgrade notifications are enabled and set to display an 'Icon'

  • Determines if a value reduction upgrade is available for the given species ID

    Parameters

    • speciesId: number

      The ID of the species to check the value reduction of

    Returns boolean

    true if the user has enough candies and all value reductions have not been unlocked already

  • Parameters

    • species: default
    • shiny: boolean
    • formIndex: number
    • female: boolean
    • variant: Variant
    • abilityIndex: number
    • natureIndex: number
    • forSeen: boolean = false

    Returns void

  • Sets a bounce animation if enabled and the Pokemon has an upgrade

    Parameters

    • icon: Sprite

      Phaser.GameObjects.GameObject to animate

    • species: default

      PokemonSpecies of the icon used to check for upgrades

    • startPaused: boolean = false

      Should this animation be paused after it is added?

    Returns void

  • Parameters

    • text: string
    • name: string
    • Optionaldelay: number
    • Optionalcallback: Function
    • OptionalcallbackDelay: number
    • Optionalprompt: boolean
    • OptionalpromptDelay: number

    Returns void

  • Parameters

    • text: string
    • Optionaldelay: number
    • Optionalcallback: Function
    • OptionalcallbackDelay: number
    • Optionalprompt: boolean
    • OptionalpromptDelay: number

    Returns void

  • Parameters

    • iconSetting: any
    • gamepadType: any
    • iconElement: any
    • controlLabel: any

    Returns void