mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Merge pull request #4206 from ben-lear/mystery-encounters
re-enable stubbed function for Phaser text styling
This commit is contained in:
commit
2884517f7c
@ -17,7 +17,9 @@ export default class MockText implements MockGameObject {
|
||||
this.scene = textureManager.scene;
|
||||
this.textureManager = textureManager;
|
||||
this.style = {};
|
||||
// Phaser.GameObjects.TextStyle.prototype.setStyle = () => null;
|
||||
// DO NOT REMOVE: function needs to be stubbed for tests
|
||||
// @ts-ignore
|
||||
Phaser.GameObjects.TextStyle.prototype.setStyle = () => this;
|
||||
// Phaser.GameObjects.Text.prototype.updateText = () => null;
|
||||
// Phaser.Textures.TextureManager.prototype.addCanvas = () => {};
|
||||
UI.prototype.showText = this.showText;
|
||||
|
Loading…
Reference in New Issue
Block a user