mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Remove unused baseY parameter
This commit is contained in:
parent
b270af32ac
commit
14aa8b7f71
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user