From e7d425a4a0929f9e89e0dab446798f4c4e8955ff Mon Sep 17 00:00:00 2001 From: Kyle <14829626+kylmp@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:58:51 +0900 Subject: [PATCH] fix: scroll chat style drawing bounds (#23) --- 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();