Update editor-blockly-template
事件模板中添加 检测音乐如果没有开启则系统提示开启
This commit is contained in:
parent
bb6a9e3266
commit
7b2c7c3509
@ -112,6 +112,13 @@ initscript=String.raw`
|
||||
MotaActionBlocks['evalString_e'].xmlText(),
|
||||
],
|
||||
'template':[
|
||||
'<label text="检测音乐如果没有开启则系统提示开启"></label>',
|
||||
MotaActionFunctions.actionParser.parseList({"type": "if", "condition": "!core.musicStatus.bgmStatus",
|
||||
"true": [
|
||||
"\t[系统提示]你当前音乐处于关闭状态,本塔开音乐游戏效果更佳"
|
||||
],
|
||||
"false": []
|
||||
}),
|
||||
'<label text="战前剧情"></label>',
|
||||
MotaActionFunctions.actionParser.parse({
|
||||
"trigger": "action",
|
||||
@ -368,7 +375,7 @@ editor_blockly.doubleClickBlock = function (blockId){
|
||||
'choices_s':'EvalString_0',
|
||||
'function_s':'RawEvalString_0',
|
||||
}
|
||||
var f=textStringDict[b.type];
|
||||
var f=b?textStringDict[b.type]:null;
|
||||
if(f){
|
||||
var value = b.getFieldValue(f);
|
||||
//多行编辑
|
||||
|
||||
Loading…
Reference in New Issue
Block a user