From 65257181272995ddf23172dcbbb85850ef431de1 Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 3 Jun 2019 01:53:39 +0800 Subject: [PATCH] debug mode allow replay --- libs/actions.js | 10 ++-------- libs/control.js | 2 +- libs/ui.js | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/libs/actions.js b/libs/actions.js index e4a79cb4..67340276 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -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, diff --git a/libs/control.js b/libs/control.js index 6a9764a2..bf4085e8 100644 --- a/libs/control.js +++ b/libs/control.js @@ -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 ------ // diff --git a/libs/ui.js b/libs/ui.js index d2ef8f88..ec48eb26 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -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);