1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Prepare for the release on gamedistribution

This commit is contained in:
tobspr
2020-05-22 13:12:07 +02:00
parent b3a2e869d1
commit ab5462e140
32 changed files with 375 additions and 243 deletions

View File

@@ -47,7 +47,7 @@ export class HUDUnlockNotification extends BaseHUDPart {
this.btnClose.innerText = "Next level";
dialog.appendChild(this.btnClose);
this.trackClicks(this.btnClose, this.close);
this.trackClicks(this.btnClose, this.requestClose);
}
/**
@@ -119,6 +119,12 @@ export class HUDUnlockNotification extends BaseHUDPart {
this.root.soundProxy.playUi(SOUNDS.levelComplete);
}
requestClose() {
this.root.app.adProvider.showVideoAd().then(() => {
this.close();
});
}
close() {
this.visible = false;
}