cortico-world-extra-actions 0.3.7 → 0.3.9
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/dist/webui.js +1 -0
- package/package.json +1 -1
- package/src/writer.js +2 -0
package/dist/webui.js
CHANGED
|
@@ -221,6 +221,7 @@ const panel = {
|
|
|
221
221
|
<input class="ea-inp" data-role="q" placeholder="搜名字 / id…">
|
|
222
222
|
<button class="ea-btn" data-act="library" title="动作库可以放在任意盘,路径会被记住">选择动作库位置…</button>
|
|
223
223
|
<button class="ea-btn" data-act="restore-pack" title="创建一个空的深深形象包(只有身体状态)">恢复空的形象包</button>
|
|
224
|
+
<button class="ea-btn" data-act="starter-library" title="在你选的文件夹下建一个自带示例动作库">用自带示例建库…</button>
|
|
224
225
|
<span class="ea-lib" data-role="lib"></span>
|
|
225
226
|
</div>
|
|
226
227
|
<div class="ea-note" data-role="note" hidden></div>
|
package/package.json
CHANGED
package/src/writer.js
CHANGED
|
@@ -553,6 +553,8 @@ export function inspect({ packDir, libraryDir, catalog }) {
|
|
|
553
553
|
if (!libraryDir || !existsSync(libraryDir)) problems.push(`动作库目录不存在:${libraryDir}`);
|
|
554
554
|
const missing = [];
|
|
555
555
|
for (const a of catalog) {
|
|
556
|
+
// 身体状态段(idle/walk/drag/turn)本来就没有触发词,它们不是"可加的动作",跳过
|
|
557
|
+
if (!a.word) continue;
|
|
556
558
|
if (actionProblem(a)) { missing.push(a.id); continue; }
|
|
557
559
|
const dir = join(libraryDir || '', 'actions', a.category, a.id);
|
|
558
560
|
if (!existsSync(dir)) missing.push(a.id);
|