common event blockly
delete legacy point_m add commentEvent_m
This commit is contained in:
parent
ed9550a773
commit
08315af63d
@ -26,17 +26,6 @@ code=JSON.stringify(code,null,2).split('"data_asdfefw"').join('[\n'+action_0+']\
|
|||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
//加点 事件编辑器入口之一
|
|
||||||
point_m
|
|
||||||
: '加点' BGNL? Newline choicesContext+ BEND
|
|
||||||
|
|
||||||
|
|
||||||
/* point_m
|
|
||||||
tooltip : 加点事件
|
|
||||||
helpUrl : https://h5mota.com/games/template/docs/#/event?id=%e5%8a%a0%e7%82%b9%e4%ba%8b%e4%bb%b6
|
|
||||||
var code = '{"type": "choices", "choices": [\n'+choicesContext_0+']}\n';
|
|
||||||
return code;
|
|
||||||
*/;
|
|
||||||
|
|
||||||
//升级 事件编辑器入口之一
|
//升级 事件编辑器入口之一
|
||||||
level_m
|
level_m
|
||||||
@ -217,6 +206,18 @@ var code = '{"floorId": "'+toFloorId+'"'+loc+DirectionEx_List_0+Int_0+Bool_0+' }
|
|||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
//commonEvent 事件编辑器入口之一
|
||||||
|
commonEvent_m
|
||||||
|
: '公共事件' BGNL? Newline action+ BEND
|
||||||
|
|
||||||
|
|
||||||
|
/* commonEvent_m
|
||||||
|
tooltip : 公共事件
|
||||||
|
helpUrl : https://h5mota.com/games/template/docs/#/event
|
||||||
|
var code = '[\n'+action_0+']\n';
|
||||||
|
return code;
|
||||||
|
*/;
|
||||||
|
|
||||||
//为了避免关键字冲突,全部加了_s
|
//为了避免关键字冲突,全部加了_s
|
||||||
//动作
|
//动作
|
||||||
action
|
action
|
||||||
@ -1960,15 +1961,6 @@ ActionParser.prototype.parse = function (obj,type) {
|
|||||||
obj.time,!this.isset(obj.portalWithoutTrigger)
|
obj.time,!this.isset(obj.portalWithoutTrigger)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
case 'point':
|
|
||||||
if(!obj)obj={};
|
|
||||||
var text_choices = null;
|
|
||||||
for(var ii=obj.choices.length-1,choice;choice=obj.choices[ii];ii--) {
|
|
||||||
text_choices=MotaActionBlocks['choicesContext'].xmlText([
|
|
||||||
choice.text,this.parseList(choice.action),text_choices]);
|
|
||||||
}
|
|
||||||
return MotaActionBlocks['point_m'].xmlText([text_choices]);
|
|
||||||
|
|
||||||
case 'level':
|
case 'level':
|
||||||
if(!obj)obj={};
|
if(!obj)obj={};
|
||||||
var text_choices = null;
|
var text_choices = null;
|
||||||
|
|||||||
@ -23,17 +23,6 @@ editor_blockly = function () {
|
|||||||
{"type": "hide", "time": 500},
|
{"type": "hide", "time": 500},
|
||||||
],'event'),
|
],'event'),
|
||||||
MotaActionBlocks['changeFloor_m'].xmlText(),
|
MotaActionBlocks['changeFloor_m'].xmlText(),
|
||||||
//MotaActionFunctions.actionParser.parse({"type": "choices", "choices": [
|
|
||||||
// {"text": "攻击+\${point}", "action": [
|
|
||||||
// {"type": "setValue", "name": "status:atk", "value": "status:atk+\${point}"},
|
|
||||||
// ]},
|
|
||||||
// {"text": "防御+\${2*point}", "action": [
|
|
||||||
// {"type": "setValue", "name": "status:def", "value": "status:def+\${2*point}"},
|
|
||||||
// ]},
|
|
||||||
// {"text": "生命+\${200*point}", "action": [
|
|
||||||
// {"type": "setValue", "name": "status:hp", "value": "status:hp+\${200*point}"},
|
|
||||||
// ]},
|
|
||||||
//]},'point'),
|
|
||||||
MotaActionFunctions.actionParser.parse([{
|
MotaActionFunctions.actionParser.parse([{
|
||||||
"id": "moneyShop1",
|
"id": "moneyShop1",
|
||||||
"name": "贪婪之神",
|
"name": "贪婪之神",
|
||||||
@ -55,6 +44,7 @@ editor_blockly = function () {
|
|||||||
MotaActionBlocks['firstArrive_m'].xmlText(),
|
MotaActionBlocks['firstArrive_m'].xmlText(),
|
||||||
MotaActionBlocks['eachArrive_m'].xmlText(),
|
MotaActionBlocks['eachArrive_m'].xmlText(),
|
||||||
MotaActionBlocks['level_m'].xmlText(),
|
MotaActionBlocks['level_m'].xmlText(),
|
||||||
|
MotaActionBlocks['commonEvent_m'].xmlText(),
|
||||||
],
|
],
|
||||||
'显示文字':[
|
'显示文字':[
|
||||||
MotaActionBlocks['text_0_s'].xmlText(),
|
MotaActionBlocks['text_0_s'].xmlText(),
|
||||||
|
|||||||
@ -185,7 +185,6 @@
|
|||||||
<select id="entryType" disabled="disabled" style="display: none">
|
<select id="entryType" disabled="disabled" style="display: none">
|
||||||
<option value="event">event</option>
|
<option value="event">event</option>
|
||||||
<option value="changeFloor">changeFloor</option>
|
<option value="changeFloor">changeFloor</option>
|
||||||
<option value="point">point</option>
|
|
||||||
<option value="level">level</option>
|
<option value="level">level</option>
|
||||||
<option value="shop">shop</option>
|
<option value="shop">shop</option>
|
||||||
<option value="afterBattle">afterBattle</option>
|
<option value="afterBattle">afterBattle</option>
|
||||||
@ -193,6 +192,7 @@
|
|||||||
<option value="afterOpenDoor">afterOpenDoor</option>
|
<option value="afterOpenDoor">afterOpenDoor</option>
|
||||||
<option value="firstArrive">firstArrive</option>
|
<option value="firstArrive">firstArrive</option>
|
||||||
<option value="eachArrive">eachArrive</option>
|
<option value="eachArrive">eachArrive</option>
|
||||||
|
<option value="commonEvent">commonEvent</option>
|
||||||
</select>
|
</select>
|
||||||
<button onclick="editor_blockly.confirm()">确认</button>
|
<button onclick="editor_blockly.confirm()">确认</button>
|
||||||
<button onclick="editor_blockly.parse()">解析</button>
|
<button onclick="editor_blockly.parse()">解析</button>
|
||||||
|
|||||||
@ -181,7 +181,6 @@
|
|||||||
<select id="entryType" disabled="disabled" style="display: none">
|
<select id="entryType" disabled="disabled" style="display: none">
|
||||||
<option value="event">event</option>
|
<option value="event">event</option>
|
||||||
<option value="changeFloor">changeFloor</option>
|
<option value="changeFloor">changeFloor</option>
|
||||||
<option value="point">point</option>
|
|
||||||
<option value="level">level</option>
|
<option value="level">level</option>
|
||||||
<option value="shop">shop</option>
|
<option value="shop">shop</option>
|
||||||
<option value="afterBattle">afterBattle</option>
|
<option value="afterBattle">afterBattle</option>
|
||||||
@ -189,6 +188,7 @@
|
|||||||
<option value="afterOpenDoor">afterOpenDoor</option>
|
<option value="afterOpenDoor">afterOpenDoor</option>
|
||||||
<option value="firstArrive">firstArrive</option>
|
<option value="firstArrive">firstArrive</option>
|
||||||
<option value="eachArrive">eachArrive</option>
|
<option value="eachArrive">eachArrive</option>
|
||||||
|
<option value="commonEvent">commonEvent</option>
|
||||||
</select>
|
</select>
|
||||||
<button onclick="editor_blockly.confirm()">确认</button>
|
<button onclick="editor_blockly.confirm()">确认</button>
|
||||||
<button onclick="editor_blockly.parse()">解析</button>
|
<button onclick="editor_blockly.parse()">解析</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user