mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-09-24 04:44:59 +00:00
Hide puzzlez banner while the demo advertisement is shown
This commit is contained in:
@@ -81,6 +81,7 @@ export class MainMenuState extends GameState {
|
|||||||
/** @type { PlatformWrapperImplElectron}*/ (this.app.platformWrapper).dlcs.puzzle);
|
/** @type { PlatformWrapperImplElectron}*/ (this.app.platformWrapper).dlcs.puzzle);
|
||||||
|
|
||||||
const showShapez2 = showExternalLinks && MODS.mods.length === 0;
|
const showShapez2 = showExternalLinks && MODS.mods.length === 0;
|
||||||
|
const showPuzzlez = showShapez2 && !showDemoAdvertisement;
|
||||||
|
|
||||||
const bannerHtml = `
|
const bannerHtml = `
|
||||||
<h3>${T.demoBanners.titleV2}</h3>
|
<h3>${T.demoBanners.titleV2}</h3>
|
||||||
@@ -185,8 +186,13 @@ export class MainMenuState extends GameState {
|
|||||||
<img src="${cachebust(
|
<img src="${cachebust(
|
||||||
"res/ui/" + getShapez2BannerSprite(this.app.settings.getLanguage())
|
"res/ui/" + getShapez2BannerSprite(this.app.settings.getLanguage())
|
||||||
)}" alt="shapez 2">
|
)}" alt="shapez 2">
|
||||||
</div>
|
</div>`
|
||||||
<div class="mainNews puzzlez">
|
: ""
|
||||||
|
}
|
||||||
|
|
||||||
|
${
|
||||||
|
showPuzzlez
|
||||||
|
? `<div class="mainNews puzzlez">
|
||||||
<div class="text">${T.mainMenu.puzzlezBanner}</div>
|
<div class="text">${T.mainMenu.puzzlezBanner}</div>
|
||||||
<img src="${cachebust(
|
<img src="${cachebust(
|
||||||
"res/ui/" + getPuzzlezBannerSprite(this.app.settings.getLanguage())
|
"res/ui/" + getPuzzlezBannerSprite(this.app.settings.getLanguage())
|
||||||
|
|||||||
Reference in New Issue
Block a user