danoniplus 38.3.2 → 38.3.4

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)
@@ -2,7 +2,7 @@
2
2
  <html lang="ja">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <script src="https://cwtickle.github.io/danoniplus/js/danoni_main.js" charset="UTF-8"></script>
5
+ <script src="https://support-v38--danoniplus.netlify.app/js/danoni_main.js" charset="UTF-8"></script>
6
6
 
7
7
  <title>Dancing★Onigiri Preview</title>
8
8
 
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/24
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.4`;
12
+ const g_revisedDate = `2025/02/24`;
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
  // スクロール設定用の配列を入れ替え
@@ -6740,6 +6734,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
6740
6734
  const getKeyConfigColor = (_j, _colorPos) => {
6741
6735
  let arrowColor = g_headerObj.setColor[_colorPos];
6742
6736
  if (typeof g_keyObj[`assistPos${keyCtrlPtn}`] === C_TYP_OBJECT &&
6737
+ g_keyObj[`assistPos${keyCtrlPtn}`][g_stateObj.autoPlay] !== undefined &&
6743
6738
  !g_autoPlaysBase.includes(g_stateObj.autoPlay)) {
6744
6739
  if (g_keyObj[`assistPos${keyCtrlPtn}`][g_stateObj.autoPlay][_j] === 1) {
6745
6740
  arrowColor = g_headerObj.setDummyColor[_colorPos];
@@ -7386,6 +7381,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
7386
7381
  // カラーグループ、シャッフルグループの再設定
7387
7382
  g_keycons.groups.forEach(type => resetGroupList(type, `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`));
7388
7383
 
7384
+ // 曲中ショートカットキーの切り替え
7385
+ setPlayingShortcut();
7386
+
7389
7387
  // キーコンフィグ画面を再呼び出し
7390
7388
  keyConfigInit();
7391
7389
 
@@ -7571,6 +7569,20 @@ const getKeyInfo = () => {
7571
7569
  };
7572
7570
  };
7573
7571
 
7572
+ /**
7573
+ * デフォルトの曲中ショートカットをキー数・キーパターンにより切り替え
7574
+ * - キーコンフィグ画面で個別に変えていた場合は変更しない
7575
+ */
7576
+ const setPlayingShortcut = () => {
7577
+ const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
7578
+ if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
7579
+ g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
7580
+ }
7581
+ if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
7582
+ g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
7583
+ }
7584
+ };
7585
+
7574
7586
  /**
7575
7587
  * ステップゾーン間隔、大きさの更新
7576
7588
  * @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.4",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {