mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-17 13:29:20 +00:00
move _'s from setting.id to title
This commit is contained in:
parent
07ed85f9a3
commit
6176338e1f
@ -207,13 +207,9 @@ export const allDebugSettings = [];
|
|||||||
for (const k in globalConfig.debug) {
|
for (const k in globalConfig.debug) {
|
||||||
if (!IS_DEBUG) break;
|
if (!IS_DEBUG) break;
|
||||||
allDebugSettings.push(
|
allDebugSettings.push(
|
||||||
new BoolSetting(
|
new BoolSetting("debug_" + k, categoryDebug, (app, value) => {
|
||||||
"debug_" + k.replace(/([a-z])([A-Z])/g, (s, a, b) => `${a}_${b}`),
|
if (globalConfig.debug.enableDebugSettings) globalConfig.debug[k] = value;
|
||||||
categoryDebug,
|
})
|
||||||
(app, value) => {
|
|
||||||
if (globalConfig.debug.enableDebugSettings) globalConfig.debug[k] = value;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
allApplicationSettings.push(...allDebugSettings);
|
allApplicationSettings.push(...allDebugSettings);
|
||||||
|
|||||||
@ -187,7 +187,9 @@ export class BoolSetting extends BaseSetting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getHtml() {
|
getHtml() {
|
||||||
const label = T.settings.labels[this.id] || { title: this.id };
|
const label = T.settings.labels[this.id] || {
|
||||||
|
title: this.id.replace(/([a-z])([A-Z])/g, (s, a, b) => `${a}_${b}`),
|
||||||
|
};
|
||||||
return `
|
return `
|
||||||
<div class="setting cardbox ${this.enabled ? "enabled" : "disabled"}">
|
<div class="setting cardbox ${this.enabled ? "enabled" : "disabled"}">
|
||||||
${this.enabled ? "" : standaloneOnlySettingHtml}
|
${this.enabled ? "" : standaloneOnlySettingHtml}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user