A container group which displays interface elements rendered above other canvas groups.

Hierarchy

  • any
    • InterfaceCanvasGroup

Properties

#scrollingText: Container

A container dedicated to the display of scrolling text.

#outline: Graphics

A graphics which represent the scene outline.

#drawings: Container

The interface drawings container.

groupName: string = "interface"

Methods

  • Add a PrimaryGraphics to the group.

    Parameters

    • drawing: Drawing

      The Drawing being added

    Returns Graphics

    The created Graphics instance

  • Remove a PrimaryGraphics from the group.

    Parameters

    • drawing: Drawing

      The Drawing being removed

    Returns void

  • Parameters

    • options: any

    Returns Promise<void>

    Inherit Doc

  • Display scrolling status text originating from an origin point on the Canvas.

    Parameters

    • origin: Point

      An origin point where the text should first emerge

    • content: string

      The text content to display

    • Optional options: {
          duration: number;
          distance: number;
          anchor: TEXT_ANCHOR_POINTS;
          direction: TEXT_ANCHOR_POINTS;
          jitter: number;
          textStyle: object;
      } = {}

      Options which customize the text animation

      • duration: number

        The duration of the scrolling effect in milliseconds

      • distance: number

        The distance in pixels that the scrolling text should travel

      • anchor: TEXT_ANCHOR_POINTS

        The original anchor point where the text appears

      • direction: TEXT_ANCHOR_POINTS

        The direction in which the text scrolls

      • jitter: number

        An amount of randomization between [0, 1] applied to the initial position

      • textStyle: object

        Additional parameters of PIXI.TextStyle which are applied to the text

    Returns Promise<PreciseText>

    The created PreciseText object which is scrolling

  • Draw a background outline which emphasizes what portion of the canvas is playable space and what is buffer.

    Returns void

  • Draw the scrolling text.

    Returns void

  • Create the interface drawings container.

    Returns void

  • The sorting function used to order objects inside the Interface Drawings Container Overrides the default sorting function defined for the PIXI.Container.

    Parameters

    • a: any

      An object to display

    • b: any

      Some other object to display

    Returns number