PokéRogue
    Preparing search index...

    The TextInterceptor is a wrapper class that intercepts and logs any messages that would be displayed on-screen.

    Index

    Constructors

    Properties

    logs: string[] = []

    A log containing messages having been displayed on screen, sorted in FIFO order.

    Methods

    • Format text to be displayed to the test console, as follows:

      1. Replaces new lines and new text boxes (marked by $) with indented new lines.
      2. Removes all @c{}, @d{}, @s{}, and @f{} flags from the text.
      3. Makes text blue

      Parameters

      • text: string

        The unformatted text

      Returns string

      The formatted text