Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UtilsStatic

The static class that defines utility methods.

class

Utils

Hierarchy

  • UtilsStatic

Index

Properties

RPGMAKER_NAME

RPGMAKER_NAME: string

The name of the RPG Maker. 'MV' in the current version.

static
property

RPGMAKER_NAME

type

String

final

RPGMAKER_VERSION

RPGMAKER_VERSION: string

The version of the RPG Maker.

static
property

RPGMAKER_VERSION

type

String

final

Methods

canReadGameFiles

  • canReadGameFiles(): boolean
  • Checks whether the browser can read files in the game folder.

    static
    method

    canReadGameFiles

    Returns boolean

    True if the browser can read files in the game folder

isAndroidChrome

  • isAndroidChrome(): boolean
  • Checks whether the browser is Android Chrome.

    static
    method

    isAndroidChrome

    Returns boolean

    True if the browser is Android Chrome

isMobileDevice

  • isMobileDevice(): boolean
  • Checks whether the platform is a mobile device.

    static
    method

    isMobileDevice

    Returns boolean

    True if the platform is a mobile device

isMobileSafari

  • isMobileSafari(): boolean
  • Checks whether the browser is Mobile Safari.

    static
    method

    isMobileSafari

    Returns boolean

    True if the browser is Mobile Safari

isNwjs

  • isNwjs(): boolean

isOptionValid

  • isOptionValid(name: string): boolean
  • Checks whether the option is in the query string.

    static
    method

    isOptionValid

    Parameters

    • name: string

      The option name

    Returns boolean

    True if the option is in the query string

rgbToCssColor

  • rgbToCssColor(r: number, g: number, b: number): string
  • Makes a CSS color string from RGB values.

    static
    method

    rgbToCssColor

    Parameters

    • r: number

      The red value in the range (0, 255)

    • g: number

      The green value in the range (0, 255)

    • b: number

      The blue value in the range (0, 255)

    Returns string

    CSS color string

Generated using TypeDoc