Remove unused baseY parameter

This commit is contained in:
Wlowscha 2025-07-29 22:39:58 +02:00
parent b270af32ac
commit 14aa8b7f71
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -10,7 +10,6 @@ export default class ScrollingText extends Phaser.GameObjects.Container {
private descScroll: Phaser.Tweens.Tween | null = null; private descScroll: Phaser.Tweens.Tween | null = null;
private maxLineCount: number; private maxLineCount: number;
private scale_property: number; private scale_property: number;
private baseY: number;
constructor( constructor(
scene: Phaser.Scene, scene: Phaser.Scene,
@ -30,7 +29,6 @@ export default class ScrollingText extends Phaser.GameObjects.Container {
this.text = addTextObject(0, 0, content, style, extraStyleOptions); this.text = addTextObject(0, 0, content, style, extraStyleOptions);
this.maxLineCount = maxLineCount; this.maxLineCount = maxLineCount;
this.scale_property = scale_property; this.scale_property = scale_property;
this.baseY = 0;
this.add(this.text); this.add(this.text);
const maskGraphics = scene.make.graphics({ x: 0, y: 0 }); const maskGraphics = scene.make.graphics({ x: 0, y: 0 });
@ -51,7 +49,7 @@ export default class ScrollingText extends Phaser.GameObjects.Container {
if (this.descScroll) { if (this.descScroll) {
this.descScroll.remove(); this.descScroll.remove();
this.descScroll = null; this.descScroll = null;
this.text.y = this.baseY; this.text.y = 0;
} }
// determine if we need to add new scrolling effects // determine if we need to add new scrolling effects