diff --git a/libs/actions.js b/libs/actions.js index 5fa63e2b..a667031c 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -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; } diff --git a/libs/ui.js b/libs/ui.js index 0bc7eea4..958d4c0b 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1178,7 +1178,7 @@ ui.prototype.drawReplay = function () { core.lockControl(); core.status.event.id = 'replay'; this.drawChoices(null, [ - "从头回放录像", "从存档开始回放", "返回游戏" + "从头回放录像", "从存档开始回放", "下载当前录像", "返回游戏" ]); } diff --git a/更新说明.txt b/更新说明.txt index c491796f..5e78abec 100644 --- a/更新说明.txt +++ b/更新说明.txt @@ -1,4 +1,12 @@ -HTML5魔塔样板V2.3.3 +HTML5魔塔样板V2.3.4 + +大地图的支持 +修复超大数值领域导致自动寻路卡死的问题 +部分细节优化 + +----------------------------------------------------------------------- + +HTML5魔塔样板V2.3.3 将怪物特殊属性定义和伤害计算函数移动到脚本编辑中 地图编辑器可以使用矩形方式绘制地图