danoniplus 27.8.1 → 28.0.0

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
@@ -90,16 +90,26 @@ If you would like to cooperate with the development, please see below. Even if y
90
90
  ## Community / コミュニティ
91
91
  - [Dancing☆Onigiri Discordサーバー](https://discord.gg/TegbHFY7zg)
92
92
  - [得点報告用Gitter](https://gitter.im/danonicw/freeboard)
93
- - [Twitter #danoni](https://twitter.com/search?q=%23danoni%20OR%20%22%E3%83%80%E3%83%B3%E3%81%8A%E3%81%AB%E3%81%A3%E3%81%9F%E3%83%BC%22&src=typed_query&f=live)
93
+ - [Twitter #danoni](https://twitter.com/search?q=%23danoni&src=typed_query&f=live)
94
94
 
95
- ## Related Tools Repository / 関連ツール
95
+ ## Related Tools Repository / 関連リポジトリ・ツール
96
+ ### Dancing☆Onigiri
96
97
  - [Dancing☆Onigiri エディター(CW Edition 対応)](https://github.com/superkuppabros/danoni-editor) @superkuppabros
97
98
  - [ダンおに曲データjs化ツール](https://github.com/suzme/danoni-base64) @suzme
98
99
  - [ダンおに矢印色ツール](https://github.com/suzme/danoni-colorpicker) @suzme
99
- - [Dancing☆Onigiri Chart Reverser](https://github.com/cwtickle/danoniplus-reverser)
100
- - [Dancing☆Onigiri Chart Converter](https://github.com/cwtickle/danoniplus-converter)
100
+ - [Dancing☆Onigiri Chart Reverser](https://github.com/cwtickle/danoniplus-reverser) @cwtickle
101
+ - [Dancing☆Onigiri Chart Converter](https://github.com/cwtickle/danoniplus-converter) @cwtickle
101
102
  - [ダンおにゲージ計算機 (Gauge Calculator)](http://www.omission0.com/other/gauge_calculator/) @goe0
103
+
104
+ ### キリズマ
102
105
  - [キリズマ譜面データ変換機](https://github.com/suzme/kirizma-converter) @suzme
106
+ - [キリズマ歌詞表示作成ツール](https://github.com/prlg25/kirizma_lyric) @prlg25
107
+ - [キリズマ難易度表](https://github.com/suzme/kirizma) @suzme
108
+
109
+ ### Punching◇Panels
110
+ - [Punching◇Panels](https://github.com/cwtickle/punching-panels) @cwtickle
111
+ - [Punching◇Panels エディター](https://github.com/suzme/punpane-editor) @suzme
112
+ - [Punching◇Panels 難易度表](https://github.com/suzme/punpane) @suzme
103
113
 
104
114
  ## License / ライセンス
105
115
  This software is released under the MIT License, see LICENSE.
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 : 2022/08/01
7
+ * Revised : 2022/08/21
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 27.8.1`;
12
- const g_revisedDate = `2022/08/01`;
11
+ const g_version = `Ver 28.0.0`;
12
+ const g_revisedDate = `2022/08/21`;
13
13
  const g_alphaVersion = ``;
14
14
 
15
15
  // カスタム用バージョン (danoni_custom.js 等で指定可)
@@ -365,7 +365,7 @@ const makeDedupliArray = (_array1, ..._arrays) =>
365
365
  * @param {array2} _array2d
366
366
  * @returns
367
367
  */
368
- const copyArray2d = _array2d => JSON.parse(JSON.stringify(_array2d));
368
+ const copyArray2d = _array2d => structuredClone(_array2d);
369
369
 
370
370
  /**
371
371
  * 配列データを合計
@@ -4224,7 +4224,7 @@ const createOptionWindow = _sprite => {
4224
4224
  // 速度(Speed)
4225
4225
  // 縦位置: 2 短縮ショートカットあり
4226
4226
  createGeneralSetting(spriteList.speed, `speed`, {
4227
- skipTerms: [20, 5, 1], hiddenBtn: true, scLabel: g_lblNameObj.sc_speed, roundNum: 5,
4227
+ skipTerms: g_settings.speedTerms, hiddenBtn: true, scLabel: g_lblNameObj.sc_speed, roundNum: 5,
4228
4228
  unitName: ` ${g_lblNameObj.multi}`,
4229
4229
  });
4230
4230
 
@@ -4282,7 +4282,10 @@ const createOptionWindow = _sprite => {
4282
4282
  document.getElementById(`lnk${g_stateObj.scoreDetail}G`).classList.replace(g_cssObj.button_Setting, g_cssObj.button_Default);
4283
4283
 
4284
4284
  // 選択先を表示、ボタン色を選択中に変更
4285
+ // Qキーを押したときのリンク先を次の明細へ変更
4285
4286
  g_stateObj.scoreDetail = g_settings.scoreDetails[_val];
4287
+ [`option`, `difSelector`].forEach(page => g_shortcutObj[page].KeyQ.id = g_settings.scoreDetailCursors[(_val + 1) % g_settings.scoreDetailCursors.length]);
4288
+
4286
4289
  $id(`detail${g_stateObj.scoreDetail}`).visibility = `visible`;
4287
4290
  document.getElementById(`lnk${g_stateObj.scoreDetail}G`).classList.replace(g_cssObj.button_Default, g_cssObj.button_Setting);
4288
4291
  };
@@ -4307,6 +4310,7 @@ const createOptionWindow = _sprite => {
4307
4310
  if (g_currentPage === `difSelector`) {
4308
4311
  resetDifWindow();
4309
4312
  g_stateObj.scoreDetailViewFlg = false;
4313
+ g_shortcutObj.difSelector.KeyQ.id = g_settings.scoreDetailCursors[0];
4310
4314
  }
4311
4315
  const scoreDetail = document.querySelector(`#scoreDetail`);
4312
4316
  const detailObj = document.querySelector(`#detail${g_stateObj.scoreDetail}`);
@@ -4315,6 +4319,9 @@ const createOptionWindow = _sprite => {
4315
4319
  g_stateObj.scoreDetailViewFlg = !g_stateObj.scoreDetailViewFlg;
4316
4320
  scoreDetail.style.visibility = visibles[Number(g_stateObj.scoreDetailViewFlg)];
4317
4321
  detailObj.style.visibility = visibles[Number(g_stateObj.scoreDetailViewFlg)];
4322
+
4323
+ // Qキーを押したときのカーソル位置を先頭に初期化
4324
+ g_shortcutObj.option.KeyQ.id = g_settings.scoreDetailCursors[0];
4318
4325
  };
4319
4326
 
4320
4327
  /**
@@ -4824,7 +4831,7 @@ const createOptionWindow = _sprite => {
4824
4831
  // タイミング調整 (Adjustment)
4825
4832
  // 縦位置: 10 短縮ショートカットあり
4826
4833
  createGeneralSetting(spriteList.adjustment, `adjustment`, {
4827
- skipTerms: [50, 10, 5], hiddenBtn: true, scLabel: g_lblNameObj.sc_adjustment, roundNum: 5,
4834
+ skipTerms: g_settings.adjustmentTerms, hiddenBtn: true, scLabel: g_lblNameObj.sc_adjustment, roundNum: 5,
4828
4835
  unitName: g_lblNameObj.frame,
4829
4836
  });
4830
4837
 
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2022/07/31 (v27.8.0)
8
+ * Revised : 2022/08/21 (v28.0.0)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -171,13 +171,6 @@ const updateWindowSiz = _ => {
171
171
  },
172
172
 
173
173
  /** 設定: 譜面明細子画面 */
174
- lnkScoreDetailB: {
175
- x: 10, w: 100, visibility: `hidden`,
176
- },
177
- lnkScoreDetail: {
178
- x: 10, w: 100, borderStyle: `solid`,
179
- },
180
-
181
174
  lblTooldif: {
182
175
  y: 5, w: 250, siz: C_SIZ_JDGCNTS,
183
176
  },
@@ -750,6 +743,7 @@ let g_appearanceRanges = [`Hidden+`, `Sudden+`, `Hid&Sud+`];
750
743
  const g_settings = {
751
744
  speeds: [...Array((C_MAX_SPEED - C_MIN_SPEED) * 20 + 1).keys()].map(i => C_MIN_SPEED + i / 20),
752
745
  speedNum: 0,
746
+ speedTerms: [20, 5, 1],
753
747
 
754
748
  motions: [C_FLG_OFF, `Boost`, `Brake`],
755
749
  motionNum: 0,
@@ -771,6 +765,7 @@ const g_settings = {
771
765
 
772
766
  adjustments: [...Array(C_MAX_ADJUSTMENT * 20 + 1).keys()].map(i => (i - C_MAX_ADJUSTMENT * 10) / 10),
773
767
  adjustmentNum: C_MAX_ADJUSTMENT * 10,
768
+ adjustmentTerms: (g_isFile ? [50, 10, 1] : [50, 10, 5]),
774
769
 
775
770
  volumes: [0, 0.5, 1, 2, 5, 10, 25, 50, 75, 100],
776
771
 
@@ -783,11 +778,13 @@ const g_settings = {
783
778
  opacitys: [10, 25, 50, 75, 100],
784
779
 
785
780
  scoreDetails: [`Speed`, `Density`, `ToolDif`],
786
- scoreDetailNum: 0,
781
+ scoreDetailCursors: [],
787
782
  };
788
783
 
789
784
  g_settings.volumeNum = g_settings.volumes.length - 1;
790
785
  g_settings.opacityNum = g_settings.opacitys.length - 1;
786
+ g_settings.scoreDetailCursors = g_settings.scoreDetails.map(val => `lnk${val}G`);
787
+ g_settings.scoreDetailCursors.push(`btnGraph`);
791
788
 
792
789
  /**
793
790
  * 設定画面間移動
@@ -1198,6 +1195,7 @@ const g_shortcutObj = {
1198
1195
  Numpad1: { id: `lnkSpeedG` },
1199
1196
  Numpad2: { id: `lnkDensityG` },
1200
1197
  Numpad3: { id: `lnkToolDifG` },
1198
+ KeyQ: { id: `lnkSpeedG` },
1201
1199
  KeyP: { id: `lnkDifInfo` },
1202
1200
  KeyZ: { id: `btnSave` },
1203
1201
 
@@ -1223,6 +1221,7 @@ const g_shortcutObj = {
1223
1221
  Numpad1: { id: `lnkSpeedG` },
1224
1222
  Numpad2: { id: `lnkDensityG` },
1225
1223
  Numpad3: { id: `lnkToolDifG` },
1224
+ KeyQ: { id: `lnkSpeedG` },
1226
1225
  KeyP: { id: `lnkDifInfo` },
1227
1226
 
1228
1227
  Escape: { id: `btnBack` },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "27.8.1",
3
+ "version": "28.0.0",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {