@beetpx/beetpx
Version:
A TypeScript framework for pixel art browser games.
29 lines • 1.08 kB
JavaScript
import { HtmlTemplate } from "../HtmlTemplate";
import { Logger } from "../logger/Logger";
import { ScopedLocaleStorage } from "../storage/ScopedLocaleStorage";
export class DebugMode {
static
static
static
static loadFromStorage() {
this.
ScopedLocaleStorage.getItem(this.
this.
HtmlTemplate.updateDebugClass(this.enabled);
}
static get enabled() {
return this.
}
static set enabled(value) {
this.
Logger.infoBeetPx(`Debug flag set to: ${this.
HtmlTemplate.updateDebugClass(this.enabled);
if (this.
ScopedLocaleStorage.setItem(this.
}
else {
ScopedLocaleStorage.removeItem(this.
}
}
}
//# sourceMappingURL=DebugMode.js.map