Added TODO

This commit is contained in:
Wlowscha 2025-07-27 22:55:36 +02:00
parent 8069f9ad91
commit b270af32ac
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -2,6 +2,9 @@ import { globalScene } from "#app/global-scene";
import { fixedInt } from "#app/utils/common"; import { fixedInt } from "#app/utils/common";
import { addTextObject, type TextStyle } from "./text"; import { addTextObject, type TextStyle } from "./text";
/*
*/
export default class ScrollingText extends Phaser.GameObjects.Container { export default class ScrollingText extends Phaser.GameObjects.Container {
public text: Phaser.GameObjects.Text; public text: Phaser.GameObjects.Text;
private descScroll: Phaser.Tweens.Tween | null = null; private descScroll: Phaser.Tweens.Tween | null = null;
@ -31,6 +34,7 @@ export default class ScrollingText extends Phaser.GameObjects.Container {
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 });
//TODO: Remove, this line is for testing
maskGraphics.fillStyle(0xffffff); maskGraphics.fillStyle(0xffffff);
maskGraphics.fillRect(globalMaskX, globalMaskY, visibleWidth, visibleHeight); maskGraphics.fillRect(globalMaskX, globalMaskY, visibleWidth, visibleHeight);