From c5d0d8aa2386eeb0dbd47462593973398ea608c5 Mon Sep 17 00:00:00 2001 From: klymp <14829626+kylmp@users.noreply.github.com> Date: Thu, 10 Oct 2024 06:35:39 +0900 Subject: [PATCH] fix: scroll chat style drawing bounds --- src/js/game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game.ts b/src/js/game.ts index 0271e60b..f8542c41 100644 --- a/src/js/game.ts +++ b/src/js/game.ts @@ -2136,7 +2136,7 @@ class Game extends Client { if (this.chatStyles[i] === 2) { const w: number = this.fontBold12?.stringWidth(message) ?? 0; const offsetX: number = ((150 - this.chatTimers[i]) * (w + 100)) / 150; - Draw2D.setBounds(334, this.projectX + 50, 0, this.projectX - 50); + Draw2D.setBounds(this.projectX - 50, 0, this.projectX + 50, 334); this.fontBold12?.drawString(this.projectX + 50 - offsetX, this.projectY + 1, message, Colors.BLACK); this.fontBold12?.drawString(this.projectX + 50 - offsetX, this.projectY, message, color); Draw2D.resetBounds();