danoniplus 39.7.1 → 39.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/danoni_main.js +1 -1
- package/js/lib/danoni_constants.js +5 -4
- package/package.json +1 -1
package/js/danoni_main.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised : 2025/02/20 (v39.7.
|
|
8
|
+
* Revised : 2025/02/20 (v39.7.2)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -1033,6 +1033,7 @@ const g_settings = {
|
|
|
1033
1033
|
},
|
|
1034
1034
|
environments: [`adjustment`, `volume`, `colorType`, `appearance`, `opacity`, `hitPosition`],
|
|
1035
1035
|
keyStorages: [`reverse`, `keyCtrl`, `keyCtrlPtn`, `shuffle`, `color`, `stepRtn`],
|
|
1036
|
+
colorStorages: [`setColor`, `setShadowColor`, `frzColor`, `frzShadowColor`],
|
|
1036
1037
|
|
|
1037
1038
|
speeds: makeSpeedList(C_MIN_SPEED, C_MAX_SPEED),
|
|
1038
1039
|
speedNum: 0,
|
|
@@ -1302,11 +1303,11 @@ const g_resetFunc = new Map([
|
|
|
1302
1303
|
}],
|
|
1303
1304
|
['environment', () => g_settings.environments.forEach(key => delete g_localStorageMgt[key])],
|
|
1304
1305
|
[`customKey`, () => Object.keys(g_localStorageMgt)
|
|
1305
|
-
.filter(key => listMatching(key, g_settings.keyStorages.concat(
|
|
1306
|
+
.filter(key => listMatching(key, g_settings.keyStorages.concat(g_settings.colorStorages), { prefix: `^` }))
|
|
1306
1307
|
.forEach(key => delete g_localStorageMgt[key])],
|
|
1307
1308
|
[`others`, () => Object.keys(g_localStorageMgt)
|
|
1308
1309
|
.filter(key => !g_settings.environments.includes(key) && key !== `highscores` &&
|
|
1309
|
-
!listMatching(key, g_settings.keyStorages.concat(
|
|
1310
|
+
!listMatching(key, g_settings.keyStorages.concat(g_settings.colorStorages), { prefix: `^` }))
|
|
1310
1311
|
.forEach(key => delete g_localStorageMgt[key])],
|
|
1311
1312
|
]);
|
|
1312
1313
|
|
|
@@ -1320,7 +1321,7 @@ const g_storageFunc = new Map([
|
|
|
1320
1321
|
const settingStorage = {};
|
|
1321
1322
|
|
|
1322
1323
|
// カスタムキー定義のストレージデータを表示から除去
|
|
1323
|
-
Object.keys(g_localStorageMgt).filter(val => !listMatching(val, g_settings.keyStorages.concat(
|
|
1324
|
+
Object.keys(g_localStorageMgt).filter(val => !listMatching(val, g_settings.keyStorages.concat(g_settings.colorStorages), { prefix: `^` }))
|
|
1324
1325
|
.forEach(val => settingStorage[val] = g_localStorageMgt[val]);
|
|
1325
1326
|
return settingStorage;
|
|
1326
1327
|
}],
|