danoniplus 39.8.20 → 39.8.22

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 +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/03/20
7
+ * Revised : 2026/04/05
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 39.8.20`;
12
- const g_revisedDate = `2026/03/20`;
11
+ const g_version = `Ver 39.8.22`;
12
+ const g_revisedDate = `2026/04/05`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -3586,9 +3586,10 @@ const headerConvert = _dosObj => {
3586
3586
 
3587
3587
  // ローカルストレージに保存済みのColorType設定からDisplayのColor設定を反映
3588
3588
  if (g_localStorage.colorType !== undefined) {
3589
- g_colorType = g_localStorage.colorType;
3589
+ g_colorType = g_keycons.colorTypes.concat(g_keycons.colorSelf).includes(g_localStorage.colorType)
3590
+ ? g_localStorage.colorType : `Default`;
3590
3591
  if (obj.colorUse) {
3591
- g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.findIndex(val => val === g_colorType) !== -1);
3592
+ g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.includes(g_colorType));
3592
3593
  }
3593
3594
  }
3594
3595
 
@@ -7163,7 +7164,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
7163
7164
  createDescDiv(`kcDesc`, g_lblNameObj.kcDesc.split(`{0}`).join(g_kCd[C_KEY_RETRY])
7164
7165
  .split(`{1}:`).join(g_isMac ? `` : `Delete:`)),
7165
7166
 
7166
- createDescDiv(`kcShuffleDesc`, g_headerObj.shuffleUse ? g_lblNameObj.kcShuffleDesc : g_lblNameObj.kcNoShuffleDesc),
7167
+ createDescDiv(`kcShuffleDesc`,
7168
+ g_headerObj.shuffleUse && g_settings.shuffles.filter(val => val.endsWith(`+`)).length > 0
7169
+ ? g_lblNameObj.kcShuffleDesc : g_lblNameObj.kcNoShuffleDesc),
7167
7170
  );
7168
7171
 
7169
7172
  // キーの一覧を表示
@@ -7947,12 +7950,17 @@ const keyConfigInit = (_kcType = g_kcType) => {
7947
7950
  // また、直前と同じキーを押した場合(BackSpaceを除く)はキー操作を無効にする
7948
7951
  const disabledKeys = [240, 242, 243, 244, 91, 29, 28, 27, 259, g_prevKey];
7949
7952
 
7953
+ if (g_localeObj.val === `Ja`) {
7954
+ disabledKeys.unshift(229);
7955
+ }
7956
+ if (disabledKeys.includes(setKey) || g_kCdN[setKey] === undefined) {
7957
+ makeInfoWindow(g_msgInfoObj.I_0002, `fadeOut0`);
7958
+ return;
7959
+ } else if ((keyIsDown(g_kCdNameObj.metaLKey) || keyIsDown(g_kCdNameObj.metaRKey)) && keyIsShift()) {
7960
+ return;
7961
+ }
7950
7962
  if (selectedKc === `TitleBack` || selectedKc === `Retry`) {
7951
7963
  // プレイ中ショートカットキー変更
7952
- if (disabledKeys.includes(setKey) || g_kCdN[setKey] === undefined) {
7953
- makeInfoWindow(g_msgInfoObj.I_0002, `fadeOut0`);
7954
- return;
7955
- }
7956
7964
  g_headerObj[`key${selectedKc}`] = setKey;
7957
7965
  g_headerObj[`key${selectedKc}Def`] = setKey;
7958
7966
  document.getElementById(`sc${selectedKc}`).textContent = getScMsg[selectedKc]();
@@ -7967,14 +7975,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
7967
7975
  return;
7968
7976
  }
7969
7977
 
7970
- if (g_localeObj.val === `Ja`) {
7971
- disabledKeys.unshift(229);
7972
- }
7973
- if (disabledKeys.includes(setKey) || g_kCdN[setKey] === undefined) {
7974
- makeInfoWindow(g_msgInfoObj.I_0002, `fadeOut0`);
7975
- return;
7976
- } else if ((setKey === C_KEY_TITLEBACK && g_currentk === 0) ||
7977
- ((keyIsDown(g_kCdNameObj.metaLKey) || keyIsDown(g_kCdNameObj.metaRKey)) && keyIsShift())) {
7978
+ if (setKey === C_KEY_TITLEBACK && g_currentk === 0) {
7978
7979
  return;
7979
7980
  }
7980
7981
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "39.8.20",
3
+ "version": "39.8.22",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {