danoniplus 48.5.0 → 48.5.1

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 +23 -10
  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 : 2026/06/14
7
+ * Revised : 2026/06/15
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 48.5.0`;
12
- const g_revisedDate = `2026/06/14`;
11
+ const g_version = `Ver 48.5.1`;
12
+ const g_revisedDate = `2026/06/15`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -8017,10 +8017,6 @@ const setDifficulty = (_initFlg) => {
8017
8017
  }
8018
8018
  // 特殊キーフラグ
8019
8019
  g_stateObj.extraKeyFlg = g_headerObj.keyExtraList.includes(g_keyObj.currentKey);
8020
- btnKeymodeHelp.style.display = (
8021
- g_keyObj.defaultKeyList.includes(g_keyObj.currentKey) || g_lblNameObj[`keyHelp${g_keyObj.currentKey}`]
8022
- ? `` : C_DIS_NONE
8023
- );
8024
8020
 
8025
8021
  // ---------------------------------------------------
8026
8022
  // 2. 初期化設定
@@ -8119,6 +8115,20 @@ const setDifficulty = (_initFlg) => {
8119
8115
  g_settings.scrollNum = getCurrentNo(g_settings.scrolls, g_stateObj.scroll);
8120
8116
  g_settings.autoPlayNum = getCurrentNo(g_settings.autoPlays, g_stateObj.autoPlay);
8121
8117
 
8118
+
8119
+ // 選択中のキーのヘルプ表示
8120
+ const targetKeymode = hasVal(g_keyObj[`transKey${g_keyObj.currentKey}_${g_keyObj.currentPtn}`])
8121
+ ? g_keyObj[`transKey${g_keyObj.currentKey}_${g_keyObj.currentPtn}`] : g_keyObj.currentKey;
8122
+ btnKeymodeHelp.classList.remove(g_cssObj.button_Setting, g_cssObj.button_Tweet);
8123
+ btnKeymodeHelp.classList.add(
8124
+ g_cssObj[`button_${targetKeymode !== g_keyObj.currentKey
8125
+ && (g_keyObj.defaultKeyList.includes(targetKeymode) || g_lblNameObj[`keyHelp${targetKeymode}`]) ? `Tweet` : `Setting`}`]
8126
+ );
8127
+ btnKeymodeHelp.style.display = (
8128
+ g_keyObj.defaultKeyList.includes(targetKeymode) || g_lblNameObj[`keyHelp${targetKeymode}`]
8129
+ ? `` : C_DIS_NONE
8130
+ );
8131
+
8122
8132
  // ---------------------------------------------------
8123
8133
  // 3. 名称の設定
8124
8134
 
@@ -8237,9 +8247,12 @@ const createOptionWindow = _sprite => {
8237
8247
  }
8238
8248
  multiAppend(difficultySprite,
8239
8249
  createCss2Button(`btnKeymodeHelp`, `?`, () => {
8240
- openLink(g_keyObj.defaultKeyList.includes(g_keyObj.currentKey)
8241
- ? g_lblNameObj.keymodeUrl + g_keyObj.currentKey
8242
- : g_lblNameObj[`keyHelp${g_keyObj.currentKey}`]);
8250
+ const targetKeymode = hasVal(g_keyObj[`transKey${g_keyObj.currentKey}_${g_keyObj.currentPtn}`])
8251
+ ? g_keyObj[`transKey${g_keyObj.currentKey}_${g_keyObj.currentPtn}`] : g_keyObj.currentKey;
8252
+ openLink(
8253
+ g_keyObj.defaultKeyList.includes(targetKeymode)
8254
+ ? g_lblNameObj.keymodeUrl + targetKeymode
8255
+ : g_lblNameObj[`keyHelp${targetKeymode}`]);
8243
8256
  }, g_lblPosObj.btnKeymodeHelp, g_cssObj.button_Setting),
8244
8257
  )
8245
8258
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "48.5.0",
3
+ "version": "48.5.1",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "./js/danoni_main.js",
6
6
  "jsdelivr": "./js/danoni_main.js",