partey_workadventure/front/src/Phaser/Components/PresentationModeIcon.ts

14 lines
462 B
TypeScript
Raw Normal View History

2021-09-06 14:27:54 +02:00
import { DEPTH_INGAME_TEXT_INDEX } from "../Game/DepthIndexes";
2021-05-10 17:10:41 +02:00
export class PresentationModeIcon extends Phaser.GameObjects.Sprite {
constructor(scene: Phaser.Scene, x: number, y: number) {
2021-09-06 14:27:54 +02:00
super(scene, x, y, "layout_modes", 0);
scene.add.existing(this);
this.setScrollFactor(0, 0);
this.setOrigin(0, 1);
this.setInteractive();
this.setVisible(false);
2021-05-10 17:10:41 +02:00
this.setDepth(DEPTH_INGAME_TEXT_INDEX);
}
2021-09-06 14:27:54 +02:00
}