mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-17 05:19:19 +00:00
probably hide settings
This commit is contained in:
parent
6b65acf6e6
commit
4e6314e354
@ -43,19 +43,15 @@ export class SettingsState extends TextualGameState {
|
|||||||
let html = "";
|
let html = "";
|
||||||
for (let i = 0; i < allApplicationSettings.length; ++i) {
|
for (let i = 0; i < allApplicationSettings.length; ++i) {
|
||||||
const setting = allApplicationSettings[i];
|
const setting = allApplicationSettings[i];
|
||||||
if (
|
const hidden = allDebugSettings.indexOf(setting) != -1 && !globalConfig.debug.showDebugSettings;
|
||||||
allDebugSettings.indexOf(setting) != -1 &&
|
|
||||||
!globalConfig.debug.showDebugSettings
|
|
||||||
)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (setting.categoryId !== lastCategory) {
|
if (setting.categoryId !== lastCategory) {
|
||||||
lastCategory = setting.categoryId;
|
lastCategory = setting.categoryId;
|
||||||
if (i !== 0) {
|
if (i !== 0) {
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
}
|
}
|
||||||
html += `<strong class="categoryLabel">${T.settings.categories[lastCategory]}</strong>`;
|
html += `<strong class="categoryLabel"${hidden ? " hidden" : ""}>${T.settings.categories[lastCategory]}</strong>`;
|
||||||
html += "<div class='settingsContainer'>";
|
html += `<div class='settingsContainer'${hidden ? " hidden" : ""}>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += setting.getHtml();
|
html += setting.getHtml();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user