danoniplus 44.5.11 → 44.5.13

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 +19 -18
  2. package/package.json +2 -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/03/20
7
+ * Revised : 2026/04/05
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 44.5.11`;
12
- const g_revisedDate = `2026/03/20`;
11
+ const g_version = `Ver 44.5.13`;
12
+ const g_revisedDate = `2026/04/05`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -4181,9 +4181,10 @@ const headerConvert = _dosObj => {
4181
4181
 
4182
4182
  // ローカルストレージに保存済みのColorType設定からDisplayのColor設定を反映
4183
4183
  if (g_localStorage.colorType !== undefined) {
4184
- g_colorType = g_localStorage.colorType;
4184
+ g_colorType = g_keycons.colorTypes.concat(g_keycons.colorSelf).includes(g_localStorage.colorType)
4185
+ ? g_localStorage.colorType : `Default`;
4185
4186
  if (obj.colorUse) {
4186
- g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.findIndex(val => val === g_colorType) !== -1);
4187
+ g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.includes(g_colorType));
4187
4188
  }
4188
4189
  }
4189
4190
 
@@ -8769,7 +8770,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
8769
8770
  createDescDiv(`kcDesc`, g_lblNameObj.kcDesc.split(`{0}`).join(g_kCd[C_KEY_RETRY])
8770
8771
  .split(`{1}:`).join(g_isMac ? `` : `Delete:`)),
8771
8772
 
8772
- createDescDiv(`kcShuffleDesc`, g_headerObj.shuffleUse ? g_lblNameObj.kcShuffleDesc : g_lblNameObj.kcNoShuffleDesc),
8773
+ createDescDiv(`kcShuffleDesc`,
8774
+ g_headerObj.shuffleUse && g_settings.shuffles.filter(val => val.endsWith(`+`)).length > 0
8775
+ ? g_lblNameObj.kcShuffleDesc : g_lblNameObj.kcNoShuffleDesc),
8773
8776
  );
8774
8777
 
8775
8778
  // キーの一覧を表示
@@ -9555,12 +9558,17 @@ const keyConfigInit = (_kcType = g_kcType) => {
9555
9558
  // また、直前と同じキーを押した場合(BackSpaceを除く)はキー操作を無効にする
9556
9559
  const disabledKeys = [240, 242, 243, 244, 91, 29, 28, 27, 259, g_prevKey];
9557
9560
 
9561
+ if (g_localeObj.val === `Ja`) {
9562
+ disabledKeys.unshift(229);
9563
+ }
9564
+ if (disabledKeys.includes(setKey) || g_kCdN[setKey] === undefined) {
9565
+ makeInfoWindow(g_msgInfoObj.I_0002, `fadeOut0`);
9566
+ return;
9567
+ } else if ((keyIsDown(g_kCdNameObj.metaLKey) || keyIsDown(g_kCdNameObj.metaRKey)) && keyIsShift()) {
9568
+ return;
9569
+ }
9558
9570
  if (selectedKc === `TitleBack` || selectedKc === `Retry`) {
9559
9571
  // プレイ中ショートカットキー変更
9560
- if (disabledKeys.includes(setKey) || g_kCdN[setKey] === undefined) {
9561
- makeInfoWindow(g_msgInfoObj.I_0002, `fadeOut0`);
9562
- return;
9563
- }
9564
9572
  g_headerObj[`key${selectedKc}`] = setKey;
9565
9573
  g_headerObj[`key${selectedKc}Def`] = setKey;
9566
9574
  document.getElementById(`sc${selectedKc}`).textContent = getScMsg[selectedKc]();
@@ -9575,14 +9583,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
9575
9583
  return;
9576
9584
  }
9577
9585
 
9578
- if (g_localeObj.val === `Ja`) {
9579
- disabledKeys.unshift(229);
9580
- }
9581
- if (disabledKeys.includes(setKey) || g_kCdN[setKey] === undefined) {
9582
- makeInfoWindow(g_msgInfoObj.I_0002, `fadeOut0`);
9583
- return;
9584
- } else if ((setKey === C_KEY_TITLEBACK && g_currentk === 0) ||
9585
- ((keyIsDown(g_kCdNameObj.metaLKey) || keyIsDown(g_kCdNameObj.metaRKey)) && keyIsShift())) {
9586
+ if (setKey === C_KEY_TITLEBACK && g_currentk === 0) {
9586
9587
  return;
9587
9588
  }
9588
9589
 
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "44.5.11",
3
+ "version": "44.5.13",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "./js/danoni_main.js",
6
+ "jsdelivr": "./js/danoni_main.js",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },