mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-11 18:39:21 +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) {
|
||||
if (!IS_DEBUG) break;
|
||||
allDebugSettings.push(
|
||||
new BoolSetting(
|
||||
"debug_" + k.replace(/([a-z])([A-Z])/g, (s, a, b) => `${a}_${b}`),
|
||||
categoryDebug,
|
||||
(app, value) => {
|
||||
if (globalConfig.debug.enableDebugSettings) globalConfig.debug[k] = value;
|
||||
}
|
||||
)
|
||||
new BoolSetting("debug_" + k, categoryDebug, (app, value) => {
|
||||
if (globalConfig.debug.enableDebugSettings) globalConfig.debug[k] = value;
|
||||
})
|
||||
);
|
||||
}
|
||||
allApplicationSettings.push(...allDebugSettings);
|
||||
|
||||
@ -187,7 +187,9 @@ export class BoolSetting extends BaseSetting {
|
||||
}
|
||||
|
||||
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 `
|
||||
<div class="setting cardbox ${this.enabled ? "enabled" : "disabled"}">
|
||||
${this.enabled ? "" : standaloneOnlySettingHtml}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user