Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit e7d425a

Browse files
authored
fix: scroll chat style drawing bounds (#23)
1 parent b6980a6 commit e7d425a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/game.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ class Game extends Client {
21362136
if (this.chatStyles[i] === 2) {
21372137
const w: number = this.fontBold12?.stringWidth(message) ?? 0;
21382138
const offsetX: number = ((150 - this.chatTimers[i]) * (w + 100)) / 150;
2139-
Draw2D.setBounds(334, this.projectX + 50, 0, this.projectX - 50);
2139+
Draw2D.setBounds(this.projectX - 50, 0, this.projectX + 50, 334);
21402140
this.fontBold12?.drawString(this.projectX + 50 - offsetX, this.projectY + 1, message, Colors.BLACK);
21412141
this.fontBold12?.drawString(this.projectX + 50 - offsetX, this.projectY, message, color);
21422142
Draw2D.resetBounds();

0 commit comments

Comments
 (0)