Download replay on R

This commit is contained in:
oc 2018-08-26 23:42:16 +08:00
parent 47aaacb544
commit cb95ce4f0b
3 changed files with 23 additions and 2 deletions

View File

@ -2042,6 +2042,19 @@ actions.prototype.clickReplay = function (x, y) {
break;
}
case 2:
if (core.hasFlag('debug')) {
core.drawText("\t[系统提示]调试模式下无法下载录像");
break;
}
core.download(core.firstData.name+"_"+core.formatDate2(new Date())+".h5route", JSON.stringify({
'name': core.firstData.name,
'hard': core.status.hard,
'seed': core.getFlag('seed'),
'route': core.encodeRoute(core.status.route)
}));
break;
break;
case 3:
core.ui.closePanel();
break;
}

View File

@ -1178,7 +1178,7 @@ ui.prototype.drawReplay = function () {
core.lockControl();
core.status.event.id = 'replay';
this.drawChoices(null, [
"从头回放录像", "从存档开始回放", "返回游戏"
"从头回放录像", "从存档开始回放", "下载当前录像", "返回游戏"
]);
}

View File

@ -1,4 +1,12 @@
HTML5魔塔样板V2.3.3
HTML5魔塔样板V2.3.4
大地图的支持
修复超大数值领域导致自动寻路卡死的问题
部分细节优化
-----------------------------------------------------------------------
HTML5魔塔样板V2.3.3
将怪物特殊属性定义和伤害计算函数移动到脚本编辑中
地图编辑器可以使用矩形方式绘制地图