danoniplus 36.6.0 → 37.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/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2024/06/08
7
+ * Revised : 2024/06/15
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 36.6.0`;
12
- const g_revisedDate = `2024/06/08`;
11
+ const g_version = `Ver 37.0.0`;
12
+ const g_revisedDate = `2024/06/15`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -55,7 +55,6 @@ window.onload = async () => {
55
55
  // ロード直後に定数・初期化ファイル、旧バージョン定義関数を読込
56
56
  await loadScript2(`${g_rootPath}../js/lib/danoni_localbinary.js?${g_randTime}`, false);
57
57
  await loadScript2(`${g_rootPath}../js/lib/danoni_constants.js?${g_randTime}`);
58
- await loadScript2(`${g_rootPath}../js/lib/danoni_legacy_function.js?${g_randTime}`, false);
59
58
  initialControl();
60
59
  };
61
60
 
@@ -8218,13 +8217,24 @@ const scoreConvert = (_dosObj, _scoreId, _preblankFrame, _dummyNo = ``,
8218
8217
  // キー変化定義
8219
8218
  obj.keychFrames = [];
8220
8219
  obj.keychTarget = [];
8220
+ obj.keychTargetAlpha = [];
8221
8221
  if (hasVal(getRefData(`keych`, `${scoreIdHeader}_data`))) {
8222
8222
  const keychdata = splitLF2(getRefData(`keych`, `${scoreIdHeader}_data`), `,`);
8223
8223
  obj.keychFrames.push(...(keychdata.filter((val, j) => j % 2 === 0)).map(val => val === `0` ? 0 : calcFrame(val)));
8224
- obj.keychTarget.push(...keychdata.filter((val, j) => j % 2 === 1));
8224
+
8225
+ keychdata.filter((val, j) => j % 2 === 1)?.forEach(targets => {
8226
+ const targetKeyList = [], targetKeyAlpha = [];
8227
+ targets?.split(`/`).forEach(target => {
8228
+ targetKeyList.push(trimStr(target?.split(`:`)[0]));
8229
+ targetKeyAlpha.push(trimStr(target?.split(`:`)[1]) || 1);
8230
+ })
8231
+ obj.keychTarget.push(targetKeyList);
8232
+ obj.keychTargetAlpha.push(targetKeyAlpha);
8233
+ });
8225
8234
  }
8226
8235
  obj.keychFrames.unshift(0);
8227
- obj.keychTarget.unshift(`0`);
8236
+ obj.keychTarget.unshift([`0`]);
8237
+ obj.keychTargetAlpha.unshift([1]);
8228
8238
 
8229
8239
  return obj;
8230
8240
  };
@@ -10251,7 +10261,7 @@ const mainInit = _ => {
10251
10261
  // キー変化
10252
10262
  while (currentFrame >= g_scoreObj.keychFrames[keychCnts]) {
10253
10263
  for (let j = 0; j < keyNum; j++) {
10254
- appearKeyTypes(j, g_scoreObj.keychTarget[keychCnts]);
10264
+ appearKeyTypes(j, g_scoreObj.keychTarget[keychCnts], g_scoreObj.keychTargetAlpha[keychCnts]);
10255
10265
  }
10256
10266
  keychCnts++;
10257
10267
  }
@@ -10482,18 +10492,23 @@ const makeCounterSymbol = (_id, _x, _class, _heightPos, _text, _display = C_DIS_
10482
10492
  * @param {number} _j
10483
10493
  * @param {string} _display
10484
10494
  */
10485
- const appearStepZone = (_j, _display) => $id(`stepRoot${_j}`).display = _display;
10495
+ const appearStepZone = (_j, _display, _alpha = 1) => {
10496
+ $id(`stepRoot${_j}`).display = _display;
10497
+ $id(`stepRoot${_j}`).opacity = _alpha;
10498
+ };
10486
10499
 
10487
10500
  /**
10488
10501
  * 部分キーのステップゾーン出現処理
10489
10502
  * @param {number} _j
10490
- * @param {string} _target
10503
+ * @param {array} _targets
10491
10504
  */
10492
- const appearKeyTypes = (_j, _target) => {
10505
+ const appearKeyTypes = (_j, _targets, _alphas = fillArray(_targets.length, 1)) => {
10493
10506
  appearStepZone(_j, C_DIS_NONE);
10494
- if (g_workObj.keyGroupMaps[_j].includes(_target)) {
10495
- appearStepZone(_j, C_DIS_INHERIT);
10496
- }
10507
+ _targets.forEach((target, k) => {
10508
+ if (g_workObj.keyGroupMaps[_j].includes(target)) {
10509
+ appearStepZone(_j, C_DIS_INHERIT, _alphas[k]);
10510
+ }
10511
+ });
10497
10512
  };
10498
10513
 
10499
10514
  /**
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2024/06/08 (v36.6.0)
8
+ * Revised : 2024/06/15 (v37.0.0)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -23,45 +23,6 @@ const C_VALIGN_BOTTOM = `bottom`;
23
23
 
24
24
  const C_LBL_BASICFONT = `"Meiryo UI", sans-serif`;
25
25
 
26
- /** 廃止予定の定数群 */
27
- const C_LBL_TITLESIZE = 32;
28
- const C_LBL_BTNSIZE = 28;
29
- const C_LBL_LNKSIZE = 16;
30
-
31
- const C_BTN_HEIGHT = 50;
32
- const C_LNK_HEIGHT = 30;
33
- const C_LEN_SETLBL_LEFT = 160;
34
- const C_LEN_SETLBL_WIDTH = 210;
35
- const C_LEN_DIFSELECTOR_WIDTH = 250;
36
- const C_LEN_DIFCOVER_WIDTH = 110;
37
- const C_LEN_SETLBL_HEIGHT = 22;
38
- const C_SIZ_SETLBL = 17;
39
- const C_LEN_SETDIFLBL_HEIGHT = 25;
40
- const C_SIZ_SETDIFLBL = 17;
41
- const C_LEN_SETMINI_WIDTH = 40;
42
- const C_SIZ_SETMINI = 18;
43
- const C_SIZ_DIFSELECTOR = 14;
44
- const C_SIZ_MAIN = 14;
45
- const C_SIZ_MUSIC_TITLE = 13;
46
-
47
- const C_LEN_JDGCHARA_WIDTH = 200;
48
- const C_LEN_JDGCHARA_HEIGHT = 20;
49
- const C_SIZ_JDGCHARA = 20;
50
-
51
- const C_LEN_JDGCNTS_WIDTH = 100;
52
- const C_LEN_JDGCNTS_HEIGHT = 20;
53
- const C_SIZ_JDGCNTS = 16;
54
-
55
- const C_LEN_GRAPH_WIDTH = 286;
56
- const C_LEN_GRAPH_HEIGHT = 226;
57
- const C_CLR_SPEEDGRAPH_SPEED = `#cc3333`;
58
- const C_CLR_SPEEDGRAPH_BOOST = `#999900`;
59
- const C_CLR_DENSITY_MAX = `#990000cc`;
60
- const C_CLR_DENSITY_DEFAULT = `#999999cc`;
61
- const C_LEN_DENSITY_DIVISION = 16;
62
-
63
- const C_MAX_ADJUSTMENT = 30;
64
-
65
26
  /** 設定幅、位置などを管理するプロパティ */
66
27
  const g_limitObj = {
67
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "36.6.0",
3
+ "version": "37.0.0",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {