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

Improve preload screen

This commit is contained in:
tobspr
2022-06-17 13:04:19 +02:00
parent 11d2c701a2
commit 51fcc1e470
5 changed files with 34 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ import OR from "@openreplay/tracker";
import OR_fetch from "@openreplay/tracker-fetch";
let connector;
if (G_IS_STEAM_DEMO || !G_IS_STANDALONE) {
if ((G_IS_STEAM_DEMO || !G_IS_STANDALONE) && !G_IS_DEV) {
connector = new OR({ projectKey: "mhZgUFQBI6QAtt3PRLer" });
connector.start();
connector.use(OR_fetch({ overrideGlobal: true }));

View File

@@ -49,6 +49,8 @@ export class PreloadState extends GameState {
this.lastHintShown = -1000;
this.nextHintDuration = 0;
this.statusText = this.htmlElement.querySelector("#ll_preload_status");
this.startLoading();
}
@@ -282,7 +284,7 @@ export class PreloadState extends GameState {
return Promise.resolve();
}
this.currentStatus = text;
// this.statusText.innerText = text;
this.statusText.innerText = text;
return Promise.resolve();
}