Classes
Global | Description |
---|---|
Utils |
Utils
Kind: global class
- Utils
- new Utils()
- .RPGMAKER_NAME :
String
- .RPGMAKER_VERSION :
String
new Utils()
定义实用方法的静态类。
The static class that defines utility methods.
Utils.RPGMAKER_NAME : String
RPG Maker 的名称。当前版本为 'MV'。
The name of the RPG Maker. 'MV' in the current version.
Kind: static property of Utils
Read only: true
Utils.RPGMAKER_VERSION : String
RPG Maker 的版本。
The version of the RPG Maker.
Kind: static property of Utils
Read only: true
.isOptionValid(name) ⇒ Boolean
检查选项是否在查询字符串中。
Checks whether the option is in the query string.
Kind: static function
Returns: Boolean
- 如果选项在查询字符串中则返回 true True if the option is in the query string
Param | Type | Description |
---|---|---|
name | String | 选项名称 The option name |
.isNwjs() ⇒ Boolean
检查平台是否为 NW.js。
Checks whether the platform is NW.js.
Kind: static function
Returns: Boolean
- 如果平台是 NW.js 则返回 true True if the platform is NW.js
.isMobileDevice() ⇒ Boolean
检查平台是否为移动设备。
Checks whether the platform is a mobile device.
Kind: static function
Returns: Boolean
- 如果平台是移动设备则返回 true True if the platform is a mobile device
.isMobileSafari() ⇒ Boolean
检查浏览器是否为 Mobile Safari。
Checks whether the browser is Mobile Safari.
Kind: static function
Returns: Boolean
- 如果浏览器是 Mobile Safari 则返回 true True if the browser is Mobile Safari
.isAndroidChrome() ⇒ Boolean
检查浏览器是否为 Android Chrome。
Checks whether the browser is Android Chrome.
Kind: static function
Returns: Boolean
- 如果浏览器是 Android Chrome 则返回 true True if the browser is Android Chrome
.canReadGameFiles() ⇒ Boolean
检查浏览器是否可以读取游戏文件夹中的文件。
Checks whether the browser can read files in the game folder.
Kind: static function
Returns: Boolean
- 如果浏览器可以读取游戏文件夹中的文件则返回 true True if the browser can read files in the game folder
.rgbToCssColor(r, g, b) ⇒ String
从 RGB 值创建 CSS 颜色字符串。
Makes a CSS color string from RGB values.
Kind: static function
Returns: String
- CSS 颜色字符串 CSS color string
Param | Type | Description |
---|---|---|
r | Number | 红色值,范围为 (0, 255) The red value in the range (0, 255) |
g | Number | 绿色值,范围为 (0, 255) The green value in the range (0, 255) |
b | Number | 蓝色值,范围为 (0, 255) The blue value in the range (0, 255) |
.generateRuntimeId() ⇒ Number
生成一个唯一的运行时 ID。
Generates a unique runtime ID.
Kind: static function
Returns: Number
- 唯一的运行时 ID A unique runtime ID
.isSupportPassiveEvent() ⇒ Boolean
测试此浏览器是否支持被动事件功能。
Test this browser support passive event feature.
Kind: static function
Returns: Boolean
- 此浏览器是否支持被动事件 True if this browser supports passive event, false otherwise