Utils Class
The static class that defines utility methods.
Item Index
Methods- canReadGameFiles static
- isAndroidChrome static
- isMobileDevice static
- isMobileSafari static
- isNwjs static
- isOptionValid static
- rgbToCssColor static
- RPGMAKER_NAME static
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
StringThe 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
NumberThe red value in the range (0, 255)
-
g
NumberThe green value in the range (0, 255)
-
b
NumberThe 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.