Download replay on R
This commit is contained in:
parent
47aaacb544
commit
cb95ce4f0b
@ -2042,6 +2042,19 @@ actions.prototype.clickReplay = function (x, y) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 2:
|
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();
|
core.ui.closePanel();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1178,7 +1178,7 @@ ui.prototype.drawReplay = function () {
|
|||||||
core.lockControl();
|
core.lockControl();
|
||||||
core.status.event.id = 'replay';
|
core.status.event.id = 'replay';
|
||||||
this.drawChoices(null, [
|
this.drawChoices(null, [
|
||||||
"从头回放录像", "从存档开始回放", "返回游戏"
|
"从头回放录像", "从存档开始回放", "下载当前录像", "返回游戏"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user