You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
import { GameState } from "../core/game_state";
|
|
import { cachebust } from "../core/cachebust";
|
|
import { THIRDPARTY_URLS } from "../core/config";
|
|
|
|
export class MobileWarningState extends GameState {
|
|
constructor() {
|
|
super("MobileWarningState");
|
|
}
|
|
|
|
getInnerHTML() {
|
|
return `
|
|
|
|
<img class="logo" src="${cachebust(
|
|
G_CHINA_VERSION ? "res/logo_cn.png" : "res/logo.png"
|
|
)}" alt="shapez.io Logo">
|
|
|
|
<p>
|
|
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>
|
|
|
|
<p>If you want to play on your computer, you can also get the standalone on Steam:</p>
|
|
|
|
|
|
<a href="${
|
|
THIRDPARTY_URLS.standaloneStorePage + "?ref=mobile"
|
|
}" class="standaloneLink" target="_blank">Get the shapez.io standalone!</a>
|
|
`;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|