debug mode allow replay

This commit is contained in:
oc 2019-06-03 01:53:39 +08:00
parent 5cef1fe4a2
commit 6525718127
3 changed files with 4 additions and 10 deletions

View File

@ -2098,13 +2098,7 @@ actions.prototype._clickSyncSave_readFile = function () {
}
actions.prototype._clickSyncSave_replay = function () {
if (core.hasFlag('debug')) {
core.drawText("\t[系统提示]调试模式下无法回放录像");
}
else {
core.status.event.selection = 0;
core.ui.drawReplay();
}
core.ui.drawReplay();
}
////// 同步存档界面时,放开某个键的操作 //////
@ -2331,7 +2325,7 @@ actions.prototype._clickReplay_replayRemain = function () {
}
actions.prototype._clickReplay_download = function () {
if (core.hasFlag('debug')) return core.drawText("\t[系统提示]调试模式下无法下载录像");
// if (core.hasFlag('debug')) return core.drawText("\t[系统提示]调试模式下无法下载录像");
core.download(core.firstData.name + "_" + core.formatDate2() + ".h5route", JSON.stringify({
'name': core.firstData.name,
'hard': core.status.hard,

View File

@ -2008,7 +2008,7 @@ control.prototype.unLockControl = function () {
////// 开启debug模式 //////
control.prototype.debug = function() {
core.setFlag('debug', true);
core.drawText("\t[调试模式开启]此模式下按住Ctrl键或Ctrl+Shift键可以穿墙并忽略一切事件。\n同时,录像将失效,也无法上传成绩。");
core.drawText("\t[调试模式开启]此模式下按住Ctrl键或Ctrl+Shift键可以穿墙并忽略一切事件。\n此模式下将无法上传成绩。");
}
// ------ 天气色调BGM ------ //

View File

@ -2432,7 +2432,7 @@ ui.prototype._drawSLPanel_drawRecord = function(title, data, x, y, size, cho, hi
var v2 = "/"+core.formatBigNumber(data.hero.mdef,true);
if (core.calWidth('ui', v + v2, this._buildFont(10, false)) <= size) v += v2;
core.fillText('ui', v, x, y+30+size, '#FFD700');
core.fillText('ui', core.formatDate(new Date(data.time)), x, y+43+size, data.hero.flags.__consoleOpened__?'#FF6A6A':'#FFFFFF');
core.fillText('ui', core.formatDate(new Date(data.time)), x, y+43+size, data.hero.flags.__consoleOpened__||data.hero.flags.debug?'#FF6A6A':'#FFFFFF');
}
else {
core.fillRect('ui', x-size/2, y+15, size, size, '#333333', 2);