danoniplus 42.5.0 → 42.5.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 +40 -19
- package/package.json +1 -1
package/js/danoni_main.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Source by tickle
|
|
6
6
|
* Created : 2018/10/08
|
|
7
|
-
* Revised : 2025/08/
|
|
7
|
+
* Revised : 2025/08/27
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 42.5.
|
|
12
|
-
const g_revisedDate = `2025/08/
|
|
11
|
+
const g_version = `Ver 42.5.2`;
|
|
12
|
+
const g_revisedDate = `2025/08/27`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -3045,6 +3045,8 @@ const resetGaugeSetting = _scoreId => {
|
|
|
3045
3045
|
*/
|
|
3046
3046
|
const copySetColor = (_baseObj, _scoreId) => {
|
|
3047
3047
|
const obj = {};
|
|
3048
|
+
// Todo: dosIdを引数にして、dosIdと一致するscoreIdを算出
|
|
3049
|
+
// 算出したscoreIdすべてに対して下記処理を実行
|
|
3048
3050
|
const srcIdHeader = setScoreIdHeader(_scoreId, g_stateObj.scoreLockFlg, true);
|
|
3049
3051
|
const targetIdHeader = setScoreIdHeader(_scoreId, false, true);
|
|
3050
3052
|
[``, `Shadow`].forEach(pattern =>
|
|
@@ -11211,20 +11213,33 @@ const getArrowSettings = () => {
|
|
|
11211
11213
|
g_workObj.dividePos[j] = baseLayer * 2 + ((posj <= divideCnt ? 0 : 1) + (scrollDirOptions[j] === 1 ? 0 : 1) + (g_stateObj.reverse === C_FLG_OFF ? 0 : 1)) % 2;
|
|
11212
11214
|
g_workObj.scrollDir[j] = (posj <= divideCnt ? 1 : -1) * scrollDirOptions[j] * (g_stateObj.reverse === C_FLG_OFF ? 1 : -1);
|
|
11213
11215
|
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11216
|
+
// 個別色設定
|
|
11217
|
+
g_workObj.arrowColors[j] = g_headerObj.setColor[colorj];
|
|
11218
|
+
g_workObj.dummyArrowColors[j] = g_headerObj.setDummyColor[colorj];
|
|
11219
|
+
g_workObj.arrowShadowColors[j] = g_headerObj.setShadowColor[colorj] || ``;
|
|
11220
|
+
g_workObj.dummyArrowShadowColors[j] = g_headerObj.setDummyColor[colorj] || ``;
|
|
11221
|
+
|
|
11222
|
+
g_typeLists.frzColor.forEach((frzType, k) => {
|
|
11223
|
+
g_workObj[`frz${frzType}Colors`][j] = g_headerObj.frzColor[colorj][k] || ``;
|
|
11224
|
+
g_workObj[`dummyFrz${frzType}Colors`][j] =
|
|
11225
|
+
frzType.includes(`Shadow`) ? `` : g_headerObj.setDummyColor[colorj] || ``;
|
|
11226
|
+
});
|
|
11227
|
+
g_workObj.frzNormalShadowColors[j] = g_headerObj.frzShadowColor[colorj][0] || ``;
|
|
11228
|
+
g_workObj.frzHitShadowColors[j] = g_headerObj.frzShadowColor[colorj][1] || ``;
|
|
11229
|
+
|
|
11230
|
+
// 全体色設定
|
|
11231
|
+
g_workObj.arrowColorsAll[j] = ``;
|
|
11232
|
+
g_workObj.dummyArrowColorsAll[j] = ``;
|
|
11233
|
+
g_workObj.arrowShadowColorsAll[j] = ``;
|
|
11234
|
+
g_workObj.dummyArrowShadowColorsAll[j] = ``;
|
|
11235
|
+
|
|
11236
|
+
g_typeLists.frzColor.forEach((frzType, k) => {
|
|
11237
|
+
g_workObj[`frz${frzType}ColorsAll`][j] = ``;
|
|
11238
|
+
g_workObj[`dummyFrz${frzType}ColorsAll`][j] = ``;
|
|
11227
11239
|
});
|
|
11240
|
+
g_workObj.frzNormalShadowColorsAll[j] = ``;
|
|
11241
|
+
g_workObj.frzHitShadowColorsAll[j] = ``;
|
|
11242
|
+
|
|
11228
11243
|
}
|
|
11229
11244
|
g_workObj.orgFlatFlg = g_workObj.dividePos.every(v => v % 2 === g_workObj.dividePos[0] % 2);
|
|
11230
11245
|
g_stateObj.layerNumDf = Math.max(g_stateObj.layerNumDf, Math.ceil((Math.max(...g_workObj.dividePos) + 1) / 2) * 2);
|
|
@@ -12475,7 +12490,13 @@ const mainInit = () => {
|
|
|
12475
12490
|
// フリーズアロー色の設定
|
|
12476
12491
|
// - 通常時 (矢印枠/矢印塗りつぶし/帯): g_attrObj[frzName].Normal / NormalShadow / NormalBar
|
|
12477
12492
|
// - ヒット時 (矢印枠/矢印塗りつぶし/帯): g_attrObj[frzName].Hit / HitShadow / HitBar
|
|
12478
|
-
|
|
12493
|
+
// - ヒット時(矢印枠/矢印塗りつぶし/帯別の生成時全体色): g_attrObj[frzName].HitAll / HitShadowAll / HitBarAll
|
|
12494
|
+
g_typeLists.frzColor.forEach(val => {
|
|
12495
|
+
g_attrObj[frzName][val] = g_workObj[`${_name}${val}Colors`][_j];
|
|
12496
|
+
if (val.startsWith(`Hit`)) {
|
|
12497
|
+
g_attrObj[frzName][`${val}All`] = g_workObj[`${_name}${val}ColorsAll`][_j];
|
|
12498
|
+
}
|
|
12499
|
+
});
|
|
12479
12500
|
arrowSprite[g_workObj.dividePos[_j]].appendChild(frzRoot);
|
|
12480
12501
|
let shadowColor = _shadowColor === `Default` ? _normalColor : _shadowColor;
|
|
12481
12502
|
|
|
@@ -13227,9 +13248,9 @@ const changeHitFrz = (_j, _k, _name, _difFrame = 0) => {
|
|
|
13227
13248
|
* @returns {string}
|
|
13228
13249
|
*/
|
|
13229
13250
|
const getColor = (_type) => {
|
|
13230
|
-
const cColor = g_workObj[`${_name}${_type}Colors`][_j];
|
|
13231
13251
|
const cColorAll = g_workObj[`${_name}${_type}ColorsAll`][_j];
|
|
13232
|
-
return currentFrz[_type] !==
|
|
13252
|
+
return currentFrz[_type] !== cColorAll && currentFrz[`${_type}All`] !== cColorAll
|
|
13253
|
+
? cColorAll : currentFrz[_type];
|
|
13233
13254
|
};
|
|
13234
13255
|
|
|
13235
13256
|
const tmpHitColor = getColor(`Hit`);
|