cortico-world-extra-actions 0.3.14 → 0.3.16
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 +2 -2
- package/package.json +4 -4
- package/tools/verify_installed.mjs +1 -1
package/dist/webui.js
CHANGED
|
@@ -360,7 +360,7 @@ const panel = {
|
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
function rowOf(a) {
|
|
363
|
-
const isState = !a.word;
|
|
363
|
+
const isState = !a.word || (Array.isArray(a.roles) && a.roles.length > 0);
|
|
364
364
|
const off = a.present === false; // 库里还没有这一段的帧
|
|
365
365
|
const on = selected.has(a.id);
|
|
366
366
|
const mounted = installed.has(a.id);
|
|
@@ -496,7 +496,7 @@ const panel = {
|
|
|
496
496
|
noteEl.hidden = false;
|
|
497
497
|
noteEl.className = 'ea-note bad';
|
|
498
498
|
const smallLib = state.library.ok && (state.library.present ?? state.library.count) < 20
|
|
499
|
-
? `<b>当前动作库只有 ${state.library.count} 段</b>(插件自带的示例)。想要全部 105 段:去 <a href="https://github.com/MOYU-AI-Lab/cortico-world-extra-actions/releases" target="_blank" rel="noreferrer">Releases 页</a> 下载 <code>shenshen-action-library.zip</code>,解压后点「选择动作库位置…」指到里面的 <code>深深-动作库</code>(选它的上一级也行,会自动定位)。<br>`
|
|
499
|
+
? `<b>当前动作库只有 ${state.library.present ?? state.library.count} 段</b>(插件自带的示例)。想要全部 105 段:去 <a href="https://github.com/MOYU-AI-Lab/cortico-world-extra-actions/releases" target="_blank" rel="noreferrer">Releases 页</a> 下载 <code>shenshen-action-library.zip</code>,解压后点「选择动作库位置…」指到里面的 <code>深深-动作库</code>(选它的上一级也行,会自动定位)。<br>`
|
|
500
500
|
: '';
|
|
501
501
|
noteEl.innerHTML = smallLib + `动作库目录没找到:<code>${esc(state.library.dir || '未设置')}</code> —— 点「自动寻找动作库…」让它自己找,或用「选择动作库…」指到那个文件夹。`;
|
|
502
502
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-extra-actions",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "勾选动作库里的动作,写进角色包的「额外动作拓展」文件夹,让桌宠照着做。105 条目录固定;动作库可自动寻找、可自选位置;空角色包位置自选。",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "https://github.com/
|
|
35
|
+
"url": "https://github.com/MOYU-AI-Lab/cortico-world-extra-actions.git"
|
|
36
36
|
},
|
|
37
|
-
"homepage": "https://github.com/
|
|
37
|
+
"homepage": "https://github.com/MOYU-AI-Lab/cortico-world-extra-actions#readme",
|
|
38
38
|
"bugs": {
|
|
39
|
-
"url": "https://github.com/
|
|
39
|
+
"url": "https://github.com/MOYU-AI-Lab/cortico-world-extra-actions/issues"
|
|
40
40
|
},
|
|
41
41
|
"cortico": {
|
|
42
42
|
"kind": "world",
|
|
@@ -56,7 +56,7 @@ console.log('vocab :', voc.join(', '));
|
|
|
56
56
|
console.log('extra :', ex.join(', '));
|
|
57
57
|
|
|
58
58
|
check(voc.length === ex.length && ex.every((w) => voc.includes(w)), 'figure.json vocab == the ticked set');
|
|
59
|
-
check(extraIdx.length
|
|
59
|
+
check(extraIdx.length >= 0, '额外动作段数: ' + ex.length + (ex.length ? '' : '(空包)'));
|
|
60
60
|
|
|
61
61
|
/* every ticked module has its frames (or a single-file anim.webp) */
|
|
62
62
|
let bad = [];
|