setHeroIcon

This commit is contained in:
oc committed 2018-04-25 15:26:44 +08:00
1 parent e01d90cdfd
commit 01c4ea4d31
10 files changed
+71 -33

No files matched your search

+18
View File
@@ -165,6 +165,7 @@ action
| revisit_s
| exit_s
| setBlock_s
| setHero_s
| update_s
| sleep_s
| battle_s
@@ -415,6 +416,19 @@ var code = '{"type": "setBlock", "number":'+Int_0+floorstr+IdString_0+'},\n';
return code;
*/
setHero_s
: '更改角色行走图' EvalString Newline
;
/* setHero_s
tooltip : setHero:更改角色行走图
helpUrl : https://ckcz123.github.io/mota-js/#/event?id=setHero-%e6%9b%b4%e6%94%b9%e8%a7%92%e8%89%b2%e8%a1%8c%e8%b5%b0%e5%9b%be
colour : this.dataColor
default : ["hero.png"]
var code = '{"type": "setHero", "name": "'+EvalString_0+'"},\n';
return code;
*/
update_s
: '更新状态栏和地图显伤' Newline
;
@@ -1262,6 +1276,10 @@ ActionParser.prototype.parseAction = function() {
this.next = MotaActionBlocks['setBlock_s'].xmlText([
data.number||0,data.loc[0]||'',data.loc[1]||'',data.floorId||'',this.next]);
break;
case "setHero": // 改变勇士
this.next = MotaActionBlocks['setHero_s'].xmlText([
data.name,this.next]);
break;
case "move": // 移动事件
data.loc=data.loc||[];
this.next = MotaActionBlocks['move_s'].xmlText([
+1
View File
@@ -90,6 +90,7 @@ editor_blockly = function () {
MotaActionBlocks['battle_s'].xmlText(),
MotaActionBlocks['openDoor_s'].xmlText(),
MotaActionBlocks['setBlock_s'].xmlText(),
MotaActionBlocks['setHero_s'].xmlText(),
'<label text="事件控制"></label>',
MotaActionBlocks['if_s'].xmlText(),
MotaActionBlocks['revisit_s'].xmlText(),