Skip to content

Commit

Permalink
fix: scroll chat style drawing bounds (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylmp authored Oct 10, 2024
1 parent b6980a6 commit e7d425a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e7d425a

Please sign in to comment.