From 47464597141e8104b9b520ef17faa323e866f2bd Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Tue, 15 Apr 2025 22:51:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=94=BB=E7=AB=96=E5=B1=8F=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index 0c1f537..22a5d9f 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -17588,16 +17588,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } popDamage(damage, onhero) { - if (core.domStyle.isVertical) { - ctx.canvas.width = 1248; - ctx.canvas.height = 2028; - ctx.save(); //保存设置 - ctx.translate(1248, 0); //重新定位右上角为基准 - ctx.rotate(Math.PI / 2); //旋转90度 - } else { - ctx.canvas.width = 2028; - ctx.canvas.height = 1248; - } + let color = "#FFFFFF"; if (typeof damage === "number") { color = damage < 0 ? "#22FF44" : "lightcoral"; @@ -17611,6 +17602,16 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (start === 0) start = temptime let farme = Math.floor((temptime - start) / (1000 / 60)) + if (core.domStyle.isVertical) { + ctx.canvas.width = 1248; + ctx.canvas.height = 2028; + ctx.save(); //保存设置 + ctx.translate(1248, 0); //重新定位右上角为基准 + ctx.rotate(Math.PI / 2); //旋转90度 + } else { + ctx.canvas.width = 2028; + ctx.canvas.height = 1248; + } core.clearMap(ctx); core.setTextAlign(ctx, "center"); core.fillBoldText1( @@ -17624,7 +17625,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = "bold 72px Arial" ); - ctx2.restore(); + ctx.restore(); if (farme > 30) { core.unregisterAnimationFrame("popDamageonboss"); @@ -17763,6 +17764,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } } drawchoose() { + boss7.style.display = "block"; if (core.domStyle.isVertical) { ctx7.canvas.width = 1248; ctx7.canvas.height = 2028; @@ -17773,7 +17775,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = ctx7.canvas.width = 2028; ctx7.canvas.height = 1248; } - boss7.style.display = "block"; + core.clearMap(ctx7); if (this.hasEnemy()) { core.drawWindowSkin( @@ -17824,6 +17826,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = ); core.drawLine(ctx7, 850, 390, 1250, 390, "#FFFFFF", 6); } + ctx7.restore(); } moreShow(select) { if (core.domStyle.isVertical) { @@ -17894,6 +17897,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }); } posy += 50; + core.setTextAlign(ctx8, "center") core.fillBoldText1( ctx8, "主角所造成的伤害将提升主角速度与怪物敌人速度值之比", @@ -18118,12 +18122,12 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = this.drawchoose(); const skill = await getClick(); this.onchoose = false + core.clearMap(ctx7) let select = this.boss; if (this.selection !== "" && this.selection !== "boss") select = this.enemy[this.selection]; this.skill(skill, this.hero, select); - core.clearMap(ctx7); break; case "boss": if (this.boss.hp > 0) {