User prompt
Fix Bug: 'TypeError: LK.getSetting is not a function' in this line: 'setting3.isSelected = LK.getSetting('setting3');' Line Number: 123
User prompt
Fix Bug: 'TypeError: LK.getSetting is not a function' in this line: 'setting2.isSelected = LK.getSetting('setting2');' Line Number: 119
User prompt
Fix Bug: 'TypeError: LK.getSetting is not a function' in this line: 'setting1.isSelected = LK.getSetting('setting1');' Line Number: 115
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setting1')' in this line: 'if (game.settings['setting1']) {' Line Number: 103
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setting1')' in this line: 'if (game.settings['setting1']) {' Line Number: 103
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setting1')' in this line: 'if (game.settings['setting1']) {' Line Number: 103
User prompt
Fix Bug: 'TypeError: LK.getSetting is not a function' in this line: 'if (LK.getSetting('setting1')) {' Line Number: 103
User prompt
Fix Bug: 'TypeError: game.getSetting is not a function' in this line: 'if (game.getSetting('setting1')) {' Line Number: 103
User prompt
Fix Bug: 'TypeError: LK.getSetting is not a function' in this line: 'if (LK.getSetting('setting1')) {' Line Number: 103
User prompt
every time the settings menu is opened, send a debug message that lists the current settings that are activated
User prompt
when the settings cog is pressed check wich setting is alreadt activated
User prompt
add a condition that saves if a setting is activated or not
User prompt
add a condition that saves if a setting is activated or not
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setItem')' in this line: 'localStorage.setItem('setting1', setting1.isSelected);' Line Number: 91
User prompt
Fix Bug: 'TypeError: LK.storeSetting is not a function' in this line: 'LK.storeSetting('setting1', setting1.isSelected);' Line Number: 91
User prompt
Fix Bug: 'TypeError: LK.retrieveSetting is not a function' in this line: 'setting3.isSelected = LK.retrieveSetting('setting3');' Line Number: 115
User prompt
Fix Bug: 'TypeError: LK.retrieveSetting is not a function' in this line: 'setting2.isSelected = LK.retrieveSetting('setting2');' Line Number: 111
User prompt
Fix Bug: 'TypeError: LK.retrieveSetting is not a function' in this line: 'setting1.isSelected = LK.retrieveSetting('setting1');' Line Number: 107
User prompt
remember the state of the setting when the settings panel is despawned
User prompt
remove all mention and dependencie of the car color
Code edit (1 edits merged)
Please save this source code
User prompt
the individual settings should also despawn when the setting cog is pressed again
User prompt
the settings should appear on top of the background, with the use of z-ordering
User prompt
recode the settings so the carcolor isnt needed for it to work
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -119,9 +119,9 @@
setting2.isSelected = getGameSetting('setting2');
setting3 = game.addChild(new SettingOption('setting3', 'Setting 3'));
setting3.x = settingsBackground.x;
setting3.y = settingsBackground.y;
- setting3.isSelected = LK.getSetting('setting3');
+ setting3.isSelected = getGameSetting('setting3');
}
});
});