danoniplus 38.3.2 → 38.3.3

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![CodeQL](https://github.com/cwtickle/danoniplus/workflows/CodeQL/badge.svg)](https://github.com/cwtickle/danoniplus/actions?query=workflow%3ACodeQL)
4
4
  [![Discord](https://img.shields.io/discord/698460971231870977?style=flat&logo=discord&logoColor=%23ffffff&label=Discord&labelColor=%236666ff&color=%23000066)](https://discord.gg/YVWUdUGyMy)
5
- [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/cwtickle/danoniplus?sort=semver)](https://github.com/cwtickle/danoniplus/security/policy)
5
+ [![GitHub release](https://img.shields.io/github/package-json/v/cwtickle/danoniplus/support%2Fv38)](https://github.com/cwtickle/danoniplus/security/policy)
6
6
  [![GitHub All Releases](https://img.shields.io/github/downloads/cwtickle/danoniplus/total?color=%23ff3399&label=downloads%20%28recently%29)](https://github.com/cwtickle/danoniplus/releases)
7
7
  [![GitHub](https://img.shields.io/github/license/cwtickle/danoniplus)](https://github.com/cwtickle/danoniplus/blob/develop/LICENSE)
8
8
  ![AboutDanOni](http://cw7.sakura.ne.jp/danoni/wiki/danonitop.png)
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 38.3.2`;
12
- const g_revisedDate = `2025/02/01`;
11
+ const g_version = `Ver 38.3.3`;
12
+ const g_revisedDate = `2025/02/17`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -5513,14 +5513,8 @@ const setDifficulty = (_initFlg) => {
5513
5513
  });
5514
5514
 
5515
5515
  }
5516
-
5517
- const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
5518
- if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
5519
- g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
5520
- }
5521
- if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
5522
- g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
5523
- }
5516
+ // 曲中ショートカットキーの切り替え
5517
+ setPlayingShortcut();
5524
5518
  }
5525
5519
 
5526
5520
  // スクロール設定用の配列を入れ替え
@@ -7386,6 +7380,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
7386
7380
  // カラーグループ、シャッフルグループの再設定
7387
7381
  g_keycons.groups.forEach(type => resetGroupList(type, `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`));
7388
7382
 
7383
+ // 曲中ショートカットキーの切り替え
7384
+ setPlayingShortcut();
7385
+
7389
7386
  // キーコンフィグ画面を再呼び出し
7390
7387
  keyConfigInit();
7391
7388
 
@@ -7571,6 +7568,20 @@ const getKeyInfo = () => {
7571
7568
  };
7572
7569
  };
7573
7570
 
7571
+ /**
7572
+ * デフォルトの曲中ショートカットをキー数・キーパターンにより切り替え
7573
+ * - キーコンフィグ画面で個別に変えていた場合は変更しない
7574
+ */
7575
+ const setPlayingShortcut = () => {
7576
+ const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
7577
+ if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
7578
+ g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
7579
+ }
7580
+ if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
7581
+ g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
7582
+ }
7583
+ };
7584
+
7574
7585
  /**
7575
7586
  * ステップゾーン間隔、大きさの更新
7576
7587
  * @param {string} _header
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "38.3.2",
3
+ "version": "38.3.3",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {