General
通用模块,提供通用功能与服务
general.openUrl通用-用系统默认浏览器打开网页地址打开URL
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
url | string | 是 | — | — |
调用
typescript
piclient.emit("general.openUrl",{
url: "" //地址
})
general.setSendWebFPS通用-屏幕信息发送帧率设置屏幕信息接口发送帧率(1-10),代表每次间隔多少次信息只发送一次
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
sendWebFPS | number | 是 | 0.0 | — |
调用
typescript
piclient.emit("general.SetSendWebFPS",{
SendWebFPS: 0.0,
})
general.httpDownload通用-URL下载下载文件到Saved/Download下
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
URL | string | 是 | — | — |
tag | string | 是 | — | — |
调用
typescript
piclient.emit("general.httpDownload",{
URL: "",
tag: "",
})
general.quitGame通用-关闭程序关闭当前客户端程序
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
time | string | 是 | 0.0 | 单位秒 |
调用
typescript
piclient.emit("general.quitGame",{
time: "0.0", //单位秒
})
general.gameSetting通用-设置设置基础配置
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
renderQuality | string | 是 | 3 | 低0,中1,高2,极致3,电影级4 |
screenPercentage | string | 是 | 100 | 单位 |
maxFps | string | 是 | 60 | — |
resolution | string | 是 | 1920x1080 | 1920x1080,格式以x隔开 |
illuminationMethod | string | 是 | 0 | 0实时渲染 1全局照明 |
characterLogo | string | 是 | — | 第三人称角色logo |
调用
typescript
piclient.emit("general.gameSetting",{
renderQuality: "3", //低0,中1,高2,极致3,电影级4
screenPercentage: "100", //单位
maxFps: "60",
resolution: "1920x1080", //1920x1080,格式以x隔开
illuminationMethod: "0", //0实时渲染 1全局照明
characterLogo: "", //第三人称角色logo
})