From 52bad334e8e99be9fe3e456ce408593831d8d64e Mon Sep 17 00:00:00 2001 From: bdf1 Date: Tue, 25 Apr 2023 07:25:03 +1300 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=80=E9=87=8F?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=8F=98=E5=8C=96=E6=8F=92=E4=BB=B6=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=92=AD=E6=94=BE=E5=BD=95=E5=83=8F=E6=97=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF=20=E4=BF=AE=E6=94=B9=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=8F=E9=83=A8=E5=88=86=E6=96=87=E5=AD=97=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 6 +++--- project/plugins.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/project/functions.js b/project/functions.js index f545b16..cb6e0b8 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1690,8 +1690,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = //fill(core.formatBigNumber(core.status.hero.money), 42, 175); ctx.textAlign = 'center' //文字居中 ctx.textBaseline = 'middle' - ctx.fillText(core.getLvName(), 40, 180) - fill1("Need: " + core.formatBigNumber(core.getNextLvUpNeed()), 40, 195) + fill(core.getLvName(), 40, 180, '#FFFF00') + fill1("Need: " + core.formatBigNumber(core.getNextLvUpNeed()), 40, 195, '#00FFFF') if (core.getNextLvUpNeed()) { var rat = (core.status.hero.exp) / (core.getNextLvUpNeed() + core.status.hero.exp) /*ctx.moveTo(40, 185); @@ -1701,7 +1701,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = ctx.fill();*/ ctx.beginPath() //高亮环路径 ctx.arc(40, 185, 30, -Math.PI / 2, -Math.PI / 2 + 2 * Math.PI * rat, false) - ctx.strokeStyle = 'rgb(255, 255, 0)' + ctx.strokeStyle = 'rgb(255, 0, 255)' ctx.lineWidth = 5 ctx.lineCap = 'butt' ctx.stroke() diff --git a/project/plugins.js b/project/plugins.js index 97e47c3..3bcee1f 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -1860,6 +1860,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (core.getRealStatus('hp') == _currentHp) { core.setFlag("dynHP", core.formatBigNumber(_currentHp)); core.setFlag("dynHPneed", false); + core.updateStatusBar() } else { core.setFlag("dynHP", core.formatBigNumber(Math.ceil(_currentHp))); core.setFlag("dynHPneed", true);