Merge pull request #1219 from thecodingmachine/rex_outline

Putting an outline on the character name
This commit is contained in:
David Négrier 2021-06-22 18:14:27 +02:00 committed by GitHub
commit ee07f637fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View file

@ -69,6 +69,10 @@ export abstract class DirtyScene extends ResizableScene {
return this.dirty || this.objectListChanged;
}
public markDirty(): void {
this.events.once(Phaser.Scenes.Events.POST_UPDATE, () => this.dirty = true);
}
public onResize(): void {
this.objectListChanged = true;
}