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

Hierarchy (view full)

Constructors

Properties

active: boolean = false
buttonBgs: NineSlice[]
buttonContainers: Container[]
cursor: number = 0
modalBg: NineSlice
modalContainer: Container
mode: null | number
scene: default
titleText: Text

Methods

  • Adds a hover effect to a game object which changes the cursor to a pointer and tints it slighly

    Parameters

    • gameObject: Sprite | Image | NineSlice

      the game object to add hover events/effects to

    Returns void