From 3acf764097bac9331a2acfa057ac3d6522753574 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 5 Sep 2020 19:10:48 -0400 Subject: [PATCH] Fix a bug in player-settings causing new sprite entries to display the input at a zero, while the true value is 50. Also fix playerSettings.yaml to not default to disabling in-game music. --- WebHostLib/static/assets/player-settings.js | 2 +- WebHostLib/static/static/playerSettings.yaml | 4 ++-- playerSettings.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WebHostLib/static/assets/player-settings.js b/WebHostLib/static/assets/player-settings.js index e1e7247c..a4a6815e 100644 --- a/WebHostLib/static/assets/player-settings.js +++ b/WebHostLib/static/assets/player-settings.js @@ -342,7 +342,7 @@ const addSpriteRow = (tbody, playerSettings, spriteName) => { input.setAttribute('min', '0'); input.setAttribute('max', '100'); input.setAttribute('data-setting', `rom.sprite.${spriteName}`); - input.value = "0"; + input.value = "50"; optionValue.appendChild(input); // Value display diff --git a/WebHostLib/static/static/playerSettings.yaml b/WebHostLib/static/static/playerSettings.yaml index 55cde3e4..ef3df05d 100644 --- a/WebHostLib/static/static/playerSettings.yaml +++ b/WebHostLib/static/static/playerSettings.yaml @@ -223,8 +223,8 @@ rom: randomonhit: 0 Link: 50 # To add other sprites: open the gui/Creator, go to adjust, select a sprite and write down the name the gui calls it disablemusic: # If "on", all in-game music will be disabled - on: 50 - off: 0 + on: 0 + off: 50 quickswap: # Enable switching items by pressing the L+R shoulder buttons on: 0 off: 50 diff --git a/playerSettings.yaml b/playerSettings.yaml index 53a55d41..ee89e9d3 100644 --- a/playerSettings.yaml +++ b/playerSettings.yaml @@ -258,8 +258,8 @@ rom: randomonhit: 0 Link: 50 # To add other sprites: open the gui/Creator, go to adjust, select a sprite and write down the name the gui calls it disablemusic: # If "on", all in-game music will be disabled - on: 50 - off: 0 + on: 0 + off: 50 quickswap: # Enable switching items by pressing the L+R shoulder buttons on: 0 off: 50