danoniplus 37.8.7 → 37.8.8

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.
Files changed (2) hide show
  1. package/js/danoni_main.js +22 -11
  2. 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/01
7
+ * Revised : 2025/02/17
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 37.8.7`;
12
- const g_revisedDate = `2025/02/01`;
11
+ const g_version = `Ver 37.8.8`;
12
+ const g_revisedDate = `2025/02/17`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -5496,14 +5496,8 @@ const setDifficulty = (_initFlg) => {
5496
5496
  });
5497
5497
 
5498
5498
  }
5499
-
5500
- const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
5501
- if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
5502
- g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
5503
- }
5504
- if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
5505
- g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
5506
- }
5499
+ // 曲中ショートカットキーの切り替え
5500
+ setPlayingShortcut();
5507
5501
  }
5508
5502
 
5509
5503
  // スクロール設定用の配列を入れ替え
@@ -7341,6 +7335,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
7341
7335
  // カラーグループ、シャッフルグループの再設定
7342
7336
  g_keycons.groups.forEach(type => resetGroupList(type, `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`));
7343
7337
 
7338
+ // 曲中ショートカットキーの切り替え
7339
+ setPlayingShortcut();
7340
+
7344
7341
  // キーコンフィグ画面を再呼び出し
7345
7342
  keyConfigInit();
7346
7343
 
@@ -7505,6 +7502,20 @@ const getKeyInfo = () => {
7505
7502
  };
7506
7503
  };
7507
7504
 
7505
+ /**
7506
+ * デフォルトの曲中ショートカットをキー数・キーパターンにより切り替え
7507
+ * - キーコンフィグ画面で個別に変えていた場合は変更しない
7508
+ */
7509
+ const setPlayingShortcut = () => {
7510
+ const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
7511
+ if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
7512
+ g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
7513
+ }
7514
+ if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
7515
+ g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
7516
+ }
7517
+ };
7518
+
7508
7519
  /**
7509
7520
  * ステップゾーン間隔、大きさの更新
7510
7521
  * @param {string} _header
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "37.8.7",
3
+ "version": "37.8.8",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {