mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
[Refactor] Fix linter issue (#4191)
This commit is contained in:
parent
7ed7fec808
commit
0af59bbb14
@ -92,13 +92,13 @@ export abstract class ModalUiHandler extends UiHandler {
|
|||||||
if (args[0].hasOwnProperty("fadeOut") && typeof args[0].fadeOut === "function") {
|
if (args[0].hasOwnProperty("fadeOut") && typeof args[0].fadeOut === "function") {
|
||||||
const [ marginTop, marginRight, marginBottom, marginLeft ] = this.getMargin();
|
const [ marginTop, marginRight, marginBottom, marginLeft ] = this.getMargin();
|
||||||
|
|
||||||
const overlay = this.scene.add.rectangle(( this.getWidth() + marginLeft + marginRight) / 2, (this.getHeight() + marginTop + marginBottom) / 2,this.scene.game.canvas.width / 6,this.scene.game.canvas.height /6, 0);
|
const overlay = this.scene.add.rectangle(( this.getWidth() + marginLeft + marginRight) / 2, (this.getHeight() + marginTop + marginBottom) / 2, this.scene.game.canvas.width / 6, this.scene.game.canvas.height /6, 0);
|
||||||
overlay.setOrigin(0.5,0.5);
|
overlay.setOrigin(0.5, 0.5);
|
||||||
overlay.setName("rect-ui-overlay-modal");
|
overlay.setName("rect-ui-overlay-modal");
|
||||||
overlay.setAlpha(0);
|
overlay.setAlpha(0);
|
||||||
|
|
||||||
this.modalContainer.add(overlay);
|
this.modalContainer.add(overlay);
|
||||||
this.modalContainer.moveTo(overlay,0);
|
this.modalContainer.moveTo(overlay, 0);
|
||||||
|
|
||||||
this.scene.tweens.add({
|
this.scene.tweens.add({
|
||||||
targets: overlay,
|
targets: overlay,
|
||||||
|
Loading…
Reference in New Issue
Block a user