danoniplus 28.2.1 → 28.3.0
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 +60 -20
- package/js/lib/danoni_constants.js +10 -4
- 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 : 2022/10/
|
|
7
|
+
* Revised : 2022/10/13
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 28.
|
|
12
|
-
const g_revisedDate = `2022/10/
|
|
11
|
+
const g_version = `Ver 28.3.0`;
|
|
12
|
+
const g_revisedDate = `2022/10/13`;
|
|
13
13
|
const g_alphaVersion = ``;
|
|
14
14
|
|
|
15
15
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
@@ -5324,6 +5324,7 @@ const getKeyCtrl = (_localStorage, _extraKeyName = ``) => {
|
|
|
5324
5324
|
for (let j = 0; j < maxPtn; j++) {
|
|
5325
5325
|
g_keyObj[`${type}${copyPtn}_${j}`] = copyArray2d(g_keyObj[`${type}${basePtn}_${j}`]);
|
|
5326
5326
|
}
|
|
5327
|
+
g_keyObj[`${type}${copyPtn}_0d`] = structuredClone(g_keyObj[`${type}${copyPtn}_0`]);
|
|
5327
5328
|
});
|
|
5328
5329
|
}
|
|
5329
5330
|
};
|
|
@@ -5673,22 +5674,8 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
5673
5674
|
* @param {number} _k
|
|
5674
5675
|
* @param {string} _cssName
|
|
5675
5676
|
*/
|
|
5676
|
-
const changeKeyConfigColor = (_j, _k, _cssName) =>
|
|
5677
|
-
|
|
5678
|
-
const resetClass = _className => {
|
|
5679
|
-
if (obj.classList.contains(_className)) {
|
|
5680
|
-
obj.classList.remove(_className);
|
|
5681
|
-
}
|
|
5682
|
-
};
|
|
5683
|
-
|
|
5684
|
-
// CSSクラスの除去
|
|
5685
|
-
resetClass(g_cssObj.keyconfig_Changekey);
|
|
5686
|
-
resetClass(g_cssObj.keyconfig_Defaultkey);
|
|
5687
|
-
resetClass(g_cssObj.title_base);
|
|
5688
|
-
|
|
5689
|
-
// 指定されたCSSクラスを適用
|
|
5690
|
-
obj.classList.add(_cssName);
|
|
5691
|
-
};
|
|
5677
|
+
const changeKeyConfigColor = (_j, _k, _cssName) =>
|
|
5678
|
+
changeConfigColor(document.querySelector(`#keycon${_j}_${_k}`), _cssName);
|
|
5692
5679
|
|
|
5693
5680
|
/**
|
|
5694
5681
|
* 一時的に矢印色・シャッフルグループを変更(共通処理)
|
|
@@ -5729,6 +5716,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
5729
5716
|
const tmpShuffle = changeTmpData(`shuffle`, 10, _j, _scrollNum);
|
|
5730
5717
|
document.getElementById(`sArrow${_j}`).textContent = tmpShuffle + 1;
|
|
5731
5718
|
|
|
5719
|
+
changeShuffleConfigColor(keyCtrlPtn, g_keyObj[`shuffle${keyCtrlPtn}_${g_keycons.shuffleGroupNum}`][_j], _j);
|
|
5732
5720
|
adjustScrollPoint(parseFloat($id(`arrow${_j}`).left));
|
|
5733
5721
|
};
|
|
5734
5722
|
|
|
@@ -5825,6 +5813,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
5825
5813
|
|
|
5826
5814
|
/**
|
|
5827
5815
|
* カラー・シャッフルグループ設定の表示
|
|
5816
|
+
* - シャッフルグループではデフォルトからの差異表示もここで行う
|
|
5828
5817
|
* @param {string} _type
|
|
5829
5818
|
*/
|
|
5830
5819
|
const viewGroup = _type => {
|
|
@@ -5834,6 +5823,10 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
5834
5823
|
document.getElementById(`lnk${toCapitalize(_type)}Group`).textContent = getStgDetailName(num);
|
|
5835
5824
|
}
|
|
5836
5825
|
viewGroupObj[_type](`_${g_keycons[`${_type}GroupNum`]}`);
|
|
5826
|
+
|
|
5827
|
+
if (_type === `shuffle`) {
|
|
5828
|
+
changeShuffleConfigColor(keyCtrlPtn, g_keyObj[`shuffle${keyCtrlPtn}_${g_keycons.shuffleGroupNum}`]);
|
|
5829
|
+
}
|
|
5837
5830
|
}
|
|
5838
5831
|
};
|
|
5839
5832
|
const setGroup = (_type, _scrollNum = 1) => {
|
|
@@ -6072,7 +6065,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
6072
6065
|
keyConfigInit(g_kcType);
|
|
6073
6066
|
};
|
|
6074
6067
|
|
|
6075
|
-
const colorPickSprite = createEmptySprite(divRoot, `colorPickSprite`, g_windowObj.colorPickSprite);
|
|
6068
|
+
const colorPickSprite = createEmptySprite(divRoot, `colorPickSprite`, Object.assign({ title: g_msgObj.pickArrow }, g_windowObj.colorPickSprite));
|
|
6076
6069
|
if ([`Default`, `Type0`].includes(g_colorType)) {
|
|
6077
6070
|
colorPickSprite.style.display = C_DIS_NONE;
|
|
6078
6071
|
}
|
|
@@ -6172,6 +6165,12 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
6172
6165
|
|
|
6173
6166
|
// キーコンフィグ画面を再呼び出し
|
|
6174
6167
|
keyConfigInit();
|
|
6168
|
+
|
|
6169
|
+
// シャッフルグループのデフォルト値からの差異表示(色付け)
|
|
6170
|
+
// 再描画後で無いと色付けできないため、keyConfigInit() 実行後に処理
|
|
6171
|
+
if (g_headerObj.shuffleUse) {
|
|
6172
|
+
changeShuffleConfigColor(`${g_keyObj.currentKey}_${g_keyObj.currentPtn}`, g_keyObj[`shuffle${g_keyObj.currentKey}_${g_keyObj.currentPtn}_${g_keycons.shuffleGroupNum}`]);
|
|
6173
|
+
}
|
|
6175
6174
|
};
|
|
6176
6175
|
|
|
6177
6176
|
// ユーザカスタムイベント(初期)
|
|
@@ -6342,6 +6341,47 @@ const changeSetColor = _ => {
|
|
|
6342
6341
|
}
|
|
6343
6342
|
};
|
|
6344
6343
|
|
|
6344
|
+
/**
|
|
6345
|
+
* コンフィグの色変更
|
|
6346
|
+
* @param {object} _obj
|
|
6347
|
+
* @param {string} _cssName
|
|
6348
|
+
*/
|
|
6349
|
+
const changeConfigColor = (_obj, _cssName) => {
|
|
6350
|
+
const resetClass = _className => {
|
|
6351
|
+
if (_obj.classList.contains(_className)) {
|
|
6352
|
+
_obj.classList.remove(_className);
|
|
6353
|
+
}
|
|
6354
|
+
};
|
|
6355
|
+
|
|
6356
|
+
// CSSクラスの除去
|
|
6357
|
+
resetClass(g_cssObj.keyconfig_Changekey);
|
|
6358
|
+
resetClass(g_cssObj.keyconfig_Defaultkey);
|
|
6359
|
+
resetClass(g_cssObj.title_base);
|
|
6360
|
+
|
|
6361
|
+
// 指定されたCSSクラスを適用
|
|
6362
|
+
_obj.classList.add(_cssName);
|
|
6363
|
+
};
|
|
6364
|
+
|
|
6365
|
+
/**
|
|
6366
|
+
* シャッフルグループの色変更
|
|
6367
|
+
* - デフォルト値と違う番号になった場合、色付けする
|
|
6368
|
+
* @param {string} _keyCtrlPtn キーコンフィグパターン
|
|
6369
|
+
* @param {array} _vals シャッフルグループ番号(群)
|
|
6370
|
+
* @param {number} _j (-1: 全体に対して色付け, それ以外: 指定箇所のみ色付け)
|
|
6371
|
+
*/
|
|
6372
|
+
const changeShuffleConfigColor = (_keyCtrlPtn, _vals, _j = -1) => {
|
|
6373
|
+
const changeTargetColor = (_val, _k) => {
|
|
6374
|
+
const isEqualShuffleGr = (_val === g_keyObj[`shuffle${_keyCtrlPtn}_0d`][_k]);
|
|
6375
|
+
changeConfigColor(document.getElementById(`sArrow${_k}`), isEqualShuffleGr ? g_cssObj.title_base : g_cssObj.keyconfig_Changekey);
|
|
6376
|
+
};
|
|
6377
|
+
|
|
6378
|
+
if (_j === -1) {
|
|
6379
|
+
_vals.forEach((val, m) => changeTargetColor(val, m));
|
|
6380
|
+
} else {
|
|
6381
|
+
changeTargetColor(_vals, _j);
|
|
6382
|
+
}
|
|
6383
|
+
};
|
|
6384
|
+
|
|
6345
6385
|
/*-----------------------------------------------------------*/
|
|
6346
6386
|
/* Scene : LOADING [strawberry] */
|
|
6347
6387
|
/*-----------------------------------------------------------*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised : 2022/10/
|
|
8
|
+
* Revised : 2022/10/13 (v28.3.0)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -238,7 +238,7 @@ const updateWindowSiz = _ => {
|
|
|
238
238
|
x: 0, w: 50, h: 15, siz: 11, align: C_ALIGN_LEFT, background: `#${g_headerObj.baseBrightFlg ? `eeeeee` : `111111`}80`,
|
|
239
239
|
},
|
|
240
240
|
lnkColorCopy: {
|
|
241
|
-
x: 35, y: -5, w: 30, h: 20, siz: 14,
|
|
241
|
+
x: 35, y: -5, w: 30, h: 20, siz: 14, title: g_msgObj.pickColorCopy,
|
|
242
242
|
},
|
|
243
243
|
|
|
244
244
|
btnKcBack: {
|
|
@@ -2054,7 +2054,7 @@ const g_keyObj = {
|
|
|
2054
2054
|
// 矢印群の倍率指定
|
|
2055
2055
|
scale: 1,
|
|
2056
2056
|
scale_def: 1,
|
|
2057
|
-
scale17_0: 0.
|
|
2057
|
+
scale17_0: 0.95,
|
|
2058
2058
|
|
|
2059
2059
|
// ショートカットキーコード
|
|
2060
2060
|
keyRetry: 8,
|
|
@@ -2544,7 +2544,7 @@ const g_keyObj = {
|
|
|
2544
2544
|
minWidth11i: 650,
|
|
2545
2545
|
minWidth13: 650,
|
|
2546
2546
|
minWidth16i: 650,
|
|
2547
|
-
minWidth17:
|
|
2547
|
+
minWidth17: 825,
|
|
2548
2548
|
minWidth23: 900,
|
|
2549
2549
|
|
|
2550
2550
|
};
|
|
@@ -3186,6 +3186,9 @@ const g_lang_msgObj = {
|
|
|
3186
3186
|
imgType: `矢印・フリーズアローなどのオブジェクトの見た目を変更します。`,
|
|
3187
3187
|
colorGroup: `矢印・フリーズアロー色グループの割り当てパターンを変更します。`,
|
|
3188
3188
|
shuffleGroup: `Mirror/Asym-Mirror/Random/S-Random選択時、シャッフルするグループを変更します。\n矢印の上にある同じ数字同士でシャッフルします。`,
|
|
3189
|
+
|
|
3190
|
+
pickArrow: `色番号ごとの矢印色(枠、塗りつぶし)、通常時のフリーズアロー色(枠、帯)を\nカラーピッカーから選んで変更できます。`,
|
|
3191
|
+
pickColorCopy: `このボタンを押すと、フリーズアローの配色を矢印(枠)の色で上書きします。\nヒット時のフリーズアローの色も上書きします。`,
|
|
3189
3192
|
},
|
|
3190
3193
|
|
|
3191
3194
|
En: {
|
|
@@ -3237,6 +3240,9 @@ const g_lang_msgObj = {
|
|
|
3237
3240
|
imgType: `Change the appearance of sequences.`,
|
|
3238
3241
|
colorGroup: `Change the sequences color group assignment pattern.`,
|
|
3239
3242
|
shuffleGroup: `Change the shuffle group when Mirror, Asym-Mirror, Random or S-Random are selected.\nShuffle with the same numbers listed above.`,
|
|
3243
|
+
|
|
3244
|
+
pickArrow: `Change the frame or fill of arrow color and the frame or bar of normal freeze-arrow color\nfor each color number from the color picker.`,
|
|
3245
|
+
pickColorCopy: `Pressing this button will override the color scheme of the freeze arrow with the frame color of the arrow. \nIt also overrides the color of the freeze arrow on hit.`,
|
|
3240
3246
|
},
|
|
3241
3247
|
|
|
3242
3248
|
};
|