diff --git a/WebHostLib/static/assets/game-settings.js b/WebHostLib/static/assets/game-settings.js
index 13f08af3..0c0e3aa9 100644
--- a/WebHostLib/static/assets/game-settings.js
+++ b/WebHostLib/static/assets/game-settings.js
@@ -18,12 +18,15 @@ window.addEventListener('load', () => {
// Update localStorage with three settings objects. Preserve original objects if present.
for (let i=1; i<=3; i++) {
- const localSettings = localStorage.getItem(`gameSettings${i}`);
- const updatedObj = localSettings ? Object.assign(sourceData, JSON.parse(localSettings)) : sourceData;
+ const localSettings = JSON.parse(localStorage.getItem(`gameSettings${i}`));
+ const updatedObj = localSettings ? Object.assign(sourceData, localSettings) : sourceData;
localStorage.setItem(`gameSettings${i}`, JSON.stringify(updatedObj));
}
- console.info(sourceData);
+ populateSettings();
+ document.getElementById('preset-number').addEventListener('change', populateSettings);
+ gameSettings.addEventListener('change', handleOptionChange);
+ gameSettings.addEventListener('keyup', handleOptionChange);
}).catch((error) => {
gameSettings.innerHTML = `
Game Settings
-
+
+ This page is used to configure your game settings. You have three presets you can control, which
+ you can access using the dropdown menu below. These settings will be usable when generating a
+ single player game, or you can export them to a .yaml file and use them in a multiworld.
+
+
+
+ Choose a preset and optionally assign it a nickname, which will be used as the file's description if
+ you download it.
+
+
+ Choose a name you want to represent you in-game. This will appear when you send items
+ to other people in multiworld games.
+
+
+ Glitches Required - Allows the generator to place required items in locations which require knowledge
+ of glitches.
+
+
{% endblock %}