mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add weekly contests, bump to 1.1.5
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
export const CHANGELOG = [
|
||||
{
|
||||
version: "1.1.5",
|
||||
date: "03.06.2020",
|
||||
entries: ["Added weekly contests!"],
|
||||
},
|
||||
{
|
||||
version: "1.1.4",
|
||||
date: "01.06.2020",
|
||||
|
||||
@@ -83,7 +83,7 @@ export const globalConfig = {
|
||||
|
||||
debug: {
|
||||
/* dev:start */
|
||||
fastGameEnter: true,
|
||||
// fastGameEnter: true,
|
||||
// noArtificialDelays: true,
|
||||
// disableSavegameWrite: true,
|
||||
// showEntityBounds: true,
|
||||
|
||||
@@ -24,10 +24,6 @@ export class MainMenuState extends GameState {
|
||||
|
||||
<p>${T.demoBanners.intro}</p>
|
||||
|
||||
<ul>
|
||||
${T.demoBanners.advantages.map(advantage => `<li>${advantage}</li>`).join("")}
|
||||
</ul>
|
||||
|
||||
<a href="#" class="steamLink" target="_blank">Get the shapez.io standalone!</a>
|
||||
`;
|
||||
|
||||
@@ -54,18 +50,22 @@ export class MainMenuState extends GameState {
|
||||
|
||||
<div class="logo">
|
||||
<img src="${cachebust("res/logo.png")}" alt="shapez.io Logo">
|
||||
${
|
||||
IS_DEMO && this.app.platformWrapper.getShowDemoBadges()
|
||||
? `<div class="demoBadge"></div>`
|
||||
: ""
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mainWrapper ${IS_DEMO ? "demo" : "noDemo"}">
|
||||
|
||||
${IS_DEMO ? `<div class="standaloneBanner">${bannerHtml}</div>` : ""}
|
||||
|
||||
<div class="sideContainer">
|
||||
${IS_DEMO ? `<div class="standaloneBanner">${bannerHtml}</div>` : ""}
|
||||
<div class="contest">
|
||||
<h3>${T.mainMenu.contests.contest_01_03062020.title}</h3>
|
||||
<p>${T.mainMenu.contests.contest_01_03062020.desc}</p>
|
||||
<button class="styledButton participateContest">${
|
||||
T.mainMenu.contests.showInfo
|
||||
}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mainContainer">
|
||||
${
|
||||
isSupportedBrowser()
|
||||
@@ -220,6 +220,8 @@ export class MainMenuState extends GameState {
|
||||
this.trackClicks(qs(".settingsButton"), this.onSettingsButtonClicked);
|
||||
this.trackClicks(qs(".changelog"), this.onChangelogClicked);
|
||||
|
||||
this.trackClicks(qs(".participateContest"), this.onContestClicked);
|
||||
|
||||
if (G_IS_STANDALONE) {
|
||||
this.trackClicks(qs(".exitAppButton"), this.onExitAppButtonClicked);
|
||||
}
|
||||
@@ -267,6 +269,15 @@ export class MainMenuState extends GameState {
|
||||
this.moveToState("ChangelogState");
|
||||
}
|
||||
|
||||
onContestClicked() {
|
||||
this.app.analytics.trackUiClick("contest_click");
|
||||
|
||||
this.dialogs.showInfo(
|
||||
T.mainMenu.contests.contest_01_03062020.title,
|
||||
T.mainMenu.contests.contest_01_03062020.longDesc
|
||||
);
|
||||
}
|
||||
|
||||
renderSavegames() {
|
||||
const oldContainer = this.htmlElement.querySelector(".mainContainer .savegames");
|
||||
if (oldContainer) {
|
||||
|
||||
Reference in New Issue
Block a user