From 14aa8b7f713a45640a23efb8732e8a324f80e327 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Tue, 29 Jul 2025 22:39:58 +0200 Subject: [PATCH] Remove unused baseY parameter --- src/ui/scrolling-text.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/scrolling-text.ts b/src/ui/scrolling-text.ts index c5acd2c688a..5d42bca2e57 100644 --- a/src/ui/scrolling-text.ts +++ b/src/ui/scrolling-text.ts @@ -10,7 +10,6 @@ export default class ScrollingText extends Phaser.GameObjects.Container { private descScroll: Phaser.Tweens.Tween | null = null; private maxLineCount: number; private scale_property: number; - private baseY: number; constructor( scene: Phaser.Scene, @@ -30,7 +29,6 @@ export default class ScrollingText extends Phaser.GameObjects.Container { this.text = addTextObject(0, 0, content, style, extraStyleOptions); this.maxLineCount = maxLineCount; this.scale_property = scale_property; - this.baseY = 0; this.add(this.text); const maskGraphics = scene.make.graphics({ x: 0, y: 0 }); @@ -51,7 +49,7 @@ export default class ScrollingText extends Phaser.GameObjects.Container { if (this.descScroll) { this.descScroll.remove(); this.descScroll = null; - this.text.y = this.baseY; + this.text.y = 0; } // determine if we need to add new scrolling effects