diff --git a/project/functions.js b/project/functions.js index d9217d9..92f9881 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1648,7 +1648,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = return; } //手册和道具栏画面背景 - if (core.status.event.id === 'book' || core.status.event.id === 'toolbox') { + if (core.status.event.id === 'book' || core.status.event.id === 'book-detail' || core.status.event.id === 'toolbox') { core.dom.caidan1Ctx.drawImage(core.material.images.images['black.png'], 0, 0) core.drawWindowSkin('winskin.png', core.dom.caidan1Ctx, -20, 0, 201, 290); core.drawWindowSkin('winskin.png', core.dom.caidan1Ctx, 0, 290, 161, 95); @@ -1694,7 +1694,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = fill(core.getFlag("juqing", 0), 107, 91 + 35 + 36 + 34 + 32 + 32, '#FF0000'); ctx.textAlign = 'left'; if (flags.hard - 4) fill1('[' + core.formatBigNumber(core.getRealStatus('mdef')) + ']', 76, 174, '#FF1495'); - if (core.status.event.id !== 'book' && core.status.event.id !== 'toolbox') { + if (core.status.event.id !== 'book' && core.status.event.id !== 'book-detail' && core.status.event.id !== 'toolbox') { core.drawImage(ctx, core.material.images.items, 0, 0, 32, 128, 13, 300, 28, 112); fill('黄钥匙', 50, 320, '#FFFF80'); fill('蓝钥匙', 50, 320 + 28, '#80FFFF'); @@ -1714,10 +1714,10 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = fill('游戏时间', 20, 330, '#c0e0ff'); fill('步数', 20, 425, '#c0e0ff'); ctx.textAlign = 'right'; - var hour = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60)) % 24, - minutes = Math.floor(core.animateFrame.totalTime / (1000 * 60)) % 60, - seconds = Math.floor(core.animateFrame.totalTime / 1000) % 60, - day = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60 * 24)), + var hour = Math.floor(core.status.hero.statistics.currTime / (1000 * 60 * 60)) % 24, + minutes = Math.floor(core.status.hero.statistics.currTime / (1000 * 60)) % 60, + seconds = Math.floor(core.status.hero.statistics.currTime / 1000) % 60, + day = Math.floor(core.status.hero.statistics.currTime / (1000 * 60 * 60 * 24)), step = core.status.hero.steps; hour = hour < 10 ? '0' + hour : hour; minutes = minutes < 10 ? '0' + minutes : minutes; @@ -1727,6 +1727,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = else fill(hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff"); fill(step, 140, 455, '#ffffff'); + setTimeout(function(){core.ui.drawStatusBar();}, 100); } } } else if (core.flags.extendToolbar && !core.domStyle.isVertical) { // 横屏且隐藏状态栏