Utils Class

The static class that defines utility methods.

Item Index

Methods Properties

Methods

canReadGameFiles () Boolean [static]

Checks whether the browser can read files in the game folder.

Returns:

Boolean:
True if the browser can read files in the game folder

isAndroidChrome () Boolean [static]

Checks whether the browser is Android Chrome.

Returns:

Boolean:
True if the browser is Android Chrome

isMobileDevice () Boolean [static]

Checks whether the platform is a mobile device.

Returns:

Boolean:
True if the platform is a mobile device

isMobileSafari () Boolean [static]

Checks whether the browser is Mobile Safari.

Returns:

Boolean:
True if the browser is Mobile Safari

isNwjs () Boolean [static]

Checks whether the platform is NW.js.

Returns:

Boolean:
True if the platform is NW.js

isOptionValid ( name ) Boolean [static]

Checks whether the option is in the query string.

Parameters:

  • name String

    The option name

Returns:

Boolean:
True if the option is in the query string

rgbToCssColor  ( r , g , b ) String [static]

Makes a CSS color string from RGB values.

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

Properties

RPGMAKER_NAME String [final] [static]

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