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:
@@ -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 }));
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user