danoniplus 34.7.15 → 34.7.17
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 +23 -11
- 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/02/
|
|
7
|
+
* Revised : 2025/02/24
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 34.7.
|
|
12
|
-
const g_revisedDate = `2025/02/
|
|
11
|
+
const g_version = `Ver 34.7.17`;
|
|
12
|
+
const g_revisedDate = `2025/02/24`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -5029,14 +5029,8 @@ const setDifficulty = (_initFlg) => {
|
|
|
5029
5029
|
});
|
|
5030
5030
|
|
|
5031
5031
|
}
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
|
|
5035
|
-
g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
|
|
5036
|
-
}
|
|
5037
|
-
if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
|
|
5038
|
-
g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
|
|
5039
|
-
}
|
|
5032
|
+
// 曲中ショートカットキーの切り替え
|
|
5033
|
+
setPlayingShortcut();
|
|
5040
5034
|
}
|
|
5041
5035
|
|
|
5042
5036
|
// スクロール設定用の配列を入れ替え
|
|
@@ -6135,6 +6129,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
6135
6129
|
const getKeyConfigColor = (_j, _colorPos) => {
|
|
6136
6130
|
let arrowColor = g_headerObj.setColor[_colorPos];
|
|
6137
6131
|
if (typeof g_keyObj[`assistPos${keyCtrlPtn}`] === C_TYP_OBJECT &&
|
|
6132
|
+
g_keyObj[`assistPos${keyCtrlPtn}`][g_stateObj.autoPlay] !== undefined &&
|
|
6138
6133
|
!g_autoPlaysBase.includes(g_stateObj.autoPlay)) {
|
|
6139
6134
|
if (g_keyObj[`assistPos${keyCtrlPtn}`][g_stateObj.autoPlay][_j] === 1) {
|
|
6140
6135
|
arrowColor = g_headerObj.setDummyColor[_colorPos];
|
|
@@ -6668,6 +6663,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
6668
6663
|
// カラーグループ、シャッフルグループの再設定
|
|
6669
6664
|
g_keycons.groups.forEach(type => resetGroupList(type, `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`));
|
|
6670
6665
|
|
|
6666
|
+
// 曲中ショートカットキーの切り替え
|
|
6667
|
+
setPlayingShortcut();
|
|
6668
|
+
|
|
6671
6669
|
// キーコンフィグ画面を再呼び出し
|
|
6672
6670
|
keyConfigInit();
|
|
6673
6671
|
|
|
@@ -6829,6 +6827,20 @@ const getKeyInfo = _ => {
|
|
|
6829
6827
|
};
|
|
6830
6828
|
};
|
|
6831
6829
|
|
|
6830
|
+
/**
|
|
6831
|
+
* デフォルトの曲中ショートカットをキー数・キーパターンにより切り替え
|
|
6832
|
+
* - キーコンフィグ画面で個別に変えていた場合は変更しない
|
|
6833
|
+
*/
|
|
6834
|
+
const setPlayingShortcut = () => {
|
|
6835
|
+
const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
|
|
6836
|
+
if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
|
|
6837
|
+
g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
|
|
6838
|
+
}
|
|
6839
|
+
if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
|
|
6840
|
+
g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
|
|
6841
|
+
}
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6832
6844
|
/**
|
|
6833
6845
|
* ステップゾーン間隔、大きさの更新
|
|
6834
6846
|
* @param {string} _header
|