cg成就变量及任务指引变量设置

This commit is contained in:
草莓 2025-01-13 17:12:52 +08:00
parent 2bb9cefc58
commit 538a9d9176
4 changed files with 588 additions and 487 deletions

View File

@ -958,6 +958,8 @@ action
| removeMouse_s
| drawWarning_s
| addPop_s
| setq_s
| setcgs_s
| animationDrawable_s
| over_s
| overlist_s
@ -2596,6 +2598,35 @@ var code = '{"type": "rotateImage", "code": '+NInt_0+loc+', "angle": '+NInt_1+Mo
return code;
*/;
setq_s
: '设置任务目标楼层'IdString?'不填为清空当前任务指引' Newline
/* setq_s
tooltip : setq设置任务目标楼层显示在小地图
helpUrl : /_docs/#/instruction
default : [""]
allFloorIds : ['IdString_0']
colour : this.soundColor
IdString_0 = IdString_0 ? (', "id": "'+IdString_0+'"') : '';
var code = '{"type": "setq"'+IdString_0+'},\n';
return code;
*/;
setcgs_s
: 'cg回廊获取cg 文件名'EvalString?'不填为清空cg获取记录' Newline
/* setcgs_s
tooltip : setcgscg回廊中的cg获取
helpUrl : /_docs/#/instruction
default : [""]
allImages : ['EvalString_0']
colour : this.imageColor
EvalString_0 = EvalString_0 ? (', "img": "'+EvalString_0+'"') : '';
var code = '{"type": "setcgs"'+EvalString_0+'},\n';
return code;
*/;
scaleImage_s
: '图片放缩' '图片编号' NInt '中心点像素' 'x' PosString? 'y' PosString? '移动方式' MoveMode_List BGNL? '放缩比例' Number '动画时间' Int '不等待执行完毕' Bool Newline
@ -2615,6 +2646,7 @@ var code = '{"type": "scaleImage", "code": '+NInt_0+loc+', "scale": '+Number_0+M
return code;
*/;
animationDrawable_s
: '帧动画' '总显示帧数' IntString '底色' ColorString? Colour '底色不透明度' IntString? BGNL?Newline
'图片序列同一帧后面覆盖先前的默认起始帧为0结束帧为最后一帧)'BGNL?Newline

View File

@ -614,6 +614,12 @@ MotaActionParser = function () {
this.next,
]);
break;
case "setq":
this.next = MotaActionBlocks["setq_s"].xmlText([data.id, this.next]);
break;
case "setcgs":
this.next = MotaActionBlocks["setcgs_s"].xmlText([data.img, this.next]);
break;
case "comment": // 注释
this.next = MotaActionBlocks["comment_s"].xmlText([
this.EvalString_Multi(data.text),
@ -645,6 +651,7 @@ MotaActionParser = function () {
this.next,
]);
break;
case "addPop":
this.next = MotaActionBlocks["addPop_s"].xmlText([
data.value,
@ -840,6 +847,7 @@ MotaActionParser = function () {
this.next,
]);
break;
case "tip":
this.next = MotaActionBlocks["tip_s"].xmlText([
data.text,

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff