2020-05-23 07:13:42 +00:00
|
|
|
import { GameState } from "../core/game_state";
|
|
|
|
import { cachebust } from "../core/cachebust";
|
|
|
|
import { THIRDPARTY_URLS } from "../core/config";
|
2021-05-25 07:19:57 +00:00
|
|
|
import { getLogoSprite } from "../core/background_resources_loader";
|
2020-05-23 07:13:42 +00:00
|
|
|
|
|
|
|
export class MobileWarningState extends GameState {
|
|
|
|
constructor() {
|
|
|
|
super("MobileWarningState");
|
|
|
|
}
|
|
|
|
|
|
|
|
getInnerHTML() {
|
|
|
|
return `
|
2021-03-09 09:07:19 +00:00
|
|
|
|
2021-05-25 07:19:57 +00:00
|
|
|
<img class="logo" src="${cachebust("res/" + getLogoSprite())}" alt="shapez.io Logo">
|
2020-05-23 07:13:42 +00:00
|
|
|
|
2020-05-23 07:19:56 +00:00
|
|
|
<p>
|
2020-06-07 10:56:02 +00:00
|
|
|
I'm sorry, but shapez.io is not available on mobile devices yet!
|
|
|
|
There is also no estimate when this will change, but feel to make a contribution! It's
|
|
|
|
<a href="https://github.com/tobspr/shapez.io" target="_blank">open source</a>!</p>
|
2021-03-09 09:07:19 +00:00
|
|
|
|
2022-06-02 12:06:33 +00:00
|
|
|
<p>If you want to play on your computer, you can also get the game on Steam:</p>
|
2020-05-23 07:13:42 +00:00
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
|
2022-06-15 10:27:11 +00:00
|
|
|
<a href="https://get.shapez.io/shapez_mobile" class="standaloneLink" target="_blank">Play on Steam!</a>
|
2020-05-23 07:13:42 +00:00
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
getThemeMusic() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
getHasFadeIn() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
onEnter() {
|
|
|
|
try {
|
|
|
|
if (window.gtag) {
|
|
|
|
window.gtag("event", "click", {
|
|
|
|
event_category: "ui",
|
|
|
|
event_label: "mobile_warning",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
} catch (ex) {
|
|
|
|
console.warn("Failed to track mobile click:", ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onLeave() {
|
|
|
|
// this.dialogs.cleanup();
|
|
|
|
}
|
|
|
|
}
|