dsh-plugin-beyond-simulator 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/dsh-plugin/dist/client.js +28 -7
- package/dsh-plugin/dist/index.js +26 -26
- package/dsh-plugin/dist/play-renderer.js +108 -107
- package/dsh-plugin/dist/worker.js +20 -20
- package/dsh-plugin/lib/play.html +2 -2
- package/dsh-plugin/skill.md +3 -2
- package/package.json +1 -1
package/dsh-plugin/lib/play.html
CHANGED
|
@@ -258,8 +258,8 @@
|
|
|
258
258
|
onStatus: applyStatus,
|
|
259
259
|
onError: showError,
|
|
260
260
|
onAudioStatus: status => {
|
|
261
|
-
$('audio').textContent =
|
|
262
|
-
$('audio').title = status.error || (
|
|
261
|
+
$('audio').textContent = status.muted ? t('声音已关闭') : !status.unlocked ? t('开启声音') : t('声音已开启')
|
|
262
|
+
$('audio').title = status.error || (status.muted || status.unlocked ? t('切换静音') : t('点击或在画布内操作以解锁音效'))
|
|
263
263
|
},
|
|
264
264
|
isActive: () => !closing,
|
|
265
265
|
isInputActive: () => !workspace.classList.contains('hidden'),
|
package/dsh-plugin/skill.md
CHANGED
|
@@ -51,7 +51,7 @@ qxqy_studio_play { "action": "device", "args": { "canvasId": "pc-21-9" } }
|
|
|
51
51
|
- 切设备 = 换了台真机:时间归零、历史重置,用例不跨设备;要回归多画布就用 `runCase` 加 `args.canvasId` 分别跑。
|
|
52
52
|
- 不带 `canvasId` 的 `start` 跟随编辑器当前画布;`stop` 后粘性设备失效,回到跟随编辑器。
|
|
53
53
|
|
|
54
|
-
用户也可自己点顶栏"试玩 ↗"
|
|
54
|
+
用户也可自己点顶栏"试玩 ↗"(会先保存脚本再开独立标签页);独立试玩页顶栏有「切换设备画布」「人数」「视角」下拉。工具启动的试玩默认关闭浏览器音效;用户可在试玩页打开,不要为了听声音反复 start。
|
|
55
55
|
|
|
56
56
|
多人试玩(最多 8 人,每位玩家一份独立客户端;Lua `PlayerSelf` 相对当前客户端):
|
|
57
57
|
|
|
@@ -62,7 +62,7 @@ qxqy_studio_play { "action": "view", "args": { "playerIndex": 2 } } ← 切
|
|
|
62
62
|
|
|
63
63
|
### 4. 导出与引导 GIA 尝试
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
用户可在顶栏"导出"操作;AI 也可调用 `qxqy_studio_export`。`list` 列出客户端控件及 revision;`preview` / `export` 的 args 传 `controlIds`(Authoring id)、`expectedRevision`、可选 `includeScripts`(默认 true)。export 默认部分组合 GIA;可选 path 写入工作区新文件、不覆盖,省略返回 base64,也支持原有 format/assetType。完整协议与子树/脚本依赖边界见 `studio/docs/partial-export.md`。格式选择:
|
|
66
66
|
|
|
67
67
|
| 需求 | 选什么 |
|
|
68
68
|
|---|---|
|
|
@@ -171,6 +171,7 @@ qxqy_studio_play { "action": "serverSend", "args": { "target": "PlayerSelf", "na
|
|
|
171
171
|
|---|---|---|
|
|
172
172
|
| `qxqy_studio_get` | 读工程无损 JSON 快照 | 无参数;严格 JSON |
|
|
173
173
|
| `qxqy_studio_patch` | 编辑工程,参数 `{ "op": { ... } }` | 带 `expectedRevision`;成功后 revision +1 |
|
|
174
|
+
| `qxqy_studio_export` | 单项 / 部分组合 / 原有格式导出 | list → preview → export;controlIds 是客户端 Authoring id,父子去重,path 不覆盖 |
|
|
174
175
|
| `qxqy_studio_ui_screenshot` | 获取编辑器舞台 PNG | Host 根据 boxes 渲染;不需要打开模拟器标签;不含完整 DOM 工具栏 |
|
|
175
176
|
| `qxqy_studio_play_screenshot` | 获取当前试玩 Runtime PNG | Host 根据 paint 渲染;需要已 start,不需要打开试玩页;不推进 Runtime |
|
|
176
177
|
| `qxqy_studio_load` | 从会话工作区列出/拉取存档 | 不传 `path` 列出;传相对路径加载 |
|