mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Dark mode support and much other stuff
This commit is contained in:
@@ -88,8 +88,11 @@ export class HUDSettingsMenu extends BaseHUDPart {
|
||||
// this.background.classList.add("visible");
|
||||
this.root.app.inputMgr.makeSureAttachedAndOnTop(this.inputReciever);
|
||||
|
||||
const totalSecondsPlayed = Math.ceil(this.root.time.now());
|
||||
this.timePlayed.querySelector(".playtime").innerText = formatSeconds(totalSecondsPlayed);
|
||||
const totalMinutesPlayed = Math.ceil(this.root.time.now() / 60);
|
||||
this.timePlayed.querySelector(".playtime").innerText = T.global.time.xMinutes.replace(
|
||||
"<x>",
|
||||
"" + totalMinutesPlayed
|
||||
);
|
||||
}
|
||||
|
||||
close() {
|
||||
|
||||
@@ -56,7 +56,7 @@ export class HUDStatistics extends BaseHUDPart {
|
||||
this.dataSource = source;
|
||||
this.dialogInner.setAttribute("data-datasource", source);
|
||||
|
||||
this.sourceExplanation.innerText = T.ingame.statistics.dataSources[source].title;
|
||||
this.sourceExplanation.innerText = T.ingame.statistics.dataSources[source].description;
|
||||
if (this.visible) {
|
||||
this.rerenderFull();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user