Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TooltipPartGlobalEnhancements

Hierarchy

Index

Constructors

constructor

Methods

acquireKeybinding

  • acquireKeybinding(id: any): any
  • Fetches a keybinding and tracks it

    Parameters

    • id: any

    Returns any

addUpdateTask

  • addUpdateTask(task: any): void
  • Adds a new task to get executed every update tick

    Parameters

    • task: any

    Returns void

clearUpClickDetectorsAndKeybindings

  • clearUpClickDetectorsAndKeybindings(): void

handleCleanup

  • handleCleanup(): void

handleTooltipClose

  • handleTooltipClose(): void

handleUpdate

  • handleUpdate(): void
  • Can be used to update stuff like buttons which depend on how many crystals you have

    Returns void

helperInitDiv

  • helperInitDiv(className: any): void
  • Helper method to create the tooltip div

    Parameters

    • className: any

    Returns void

initialize

  • initialize(): void

onCleanup

  • onCleanup(): void
  • Cleanup callback, override to perform additional cleanupĆ¼ work

    Returns void

onStructureEnhanced

  • onStructureEnhanced(): void

onTooltipClosed

  • onTooltipClosed(): void
  • On close handler. Parts are not directly destroyed, only when the tooltip is finally hidden (after 500ms or so). However, this gets called when the tooltip was closed

    Returns void

parentTo

  • parentTo(parent: any): void
  • Appends the part to a given parent

    Parameters

    • parent: any

    Returns void

removeWholeContent

  • removeWholeContent(): void
  • Cleans up the whole div contents, also clears up keybindings

    Returns void

rerender

  • rerender(): void
  • Returns void

trackClicks

  • trackClicks(element: any, handler: any, args?: object): ClickDetector
  • Helper method to track clicks on an element

    Parameters

    • element: any
    • handler: any
    • Default value args: object = {}

    Returns ClickDetector

update

  • update(): void
  • Perform any per-frame updates here

    Returns void

Static getTargetComponent

Static shouldShowForEntity

  • shouldShowForEntity(entity: any, root?: any): any
  • Should return true if the part is active for the given entity

    Parameters

    • entity: any
    • Default value root: any = null

    Returns any