[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") {
|
||||
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);
|
||||
overlay.setOrigin(0.5,0.5);
|
||||
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.setName("rect-ui-overlay-modal");
|
||||
overlay.setAlpha(0);
|
||||
|
||||
this.modalContainer.add(overlay);
|
||||
this.modalContainer.moveTo(overlay,0);
|
||||
this.modalContainer.moveTo(overlay, 0);
|
||||
|
||||
this.scene.tweens.add({
|
||||
targets: overlay,
|
||||
|
|
Loading…
Reference in New Issue