mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-11 18:39:21 +00:00
add debug settings (works properly)
This commit is contained in:
parent
4606f197d3
commit
6b65acf6e6
@ -43,6 +43,11 @@ export class SettingsState extends TextualGameState {
|
||||
let html = "";
|
||||
for (let i = 0; i < allApplicationSettings.length; ++i) {
|
||||
const setting = allApplicationSettings[i];
|
||||
if (
|
||||
allDebugSettings.indexOf(setting) != -1 &&
|
||||
!globalConfig.debug.showDebugSettings
|
||||
)
|
||||
continue;
|
||||
|
||||
if (setting.categoryId !== lastCategory) {
|
||||
lastCategory = setting.categoryId;
|
||||
@ -55,22 +60,6 @@ export class SettingsState extends TextualGameState {
|
||||
|
||||
html += setting.getHtml();
|
||||
}
|
||||
if (globalConfig.debug.showDebugSettings) {
|
||||
for (let i = 0; i < allDebugSettings.length; ++i) {
|
||||
const setting = allDebugSettings[i];
|
||||
|
||||
if (setting.categoryId !== lastCategory) {
|
||||
lastCategory = setting.categoryId;
|
||||
if (i !== 0) {
|
||||
html += "</div>";
|
||||
}
|
||||
html += `<strong class="categoryLabel">${T.settings.categories[lastCategory]}</strong>`;
|
||||
html += "<div class='settingsContainer'>";
|
||||
}
|
||||
|
||||
html += setting.getHtml();
|
||||
}
|
||||
}
|
||||
if (lastCategory) {
|
||||
html += "</div>";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user