danoniplus 34.6.1 → 34.7.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.
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/01/08
7
+ * Revised : 2024/01/27
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 34.6.1`;
12
- const g_revisedDate = `2024/01/08`;
11
+ const g_version = `Ver 34.7.1`;
12
+ const g_revisedDate = `2024/01/27`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -953,7 +953,7 @@ const makeColorGradation = (_colorStr, { _defaultColorgrd = g_headerObj.defaultC
953
953
  const colorArray = tmpColorStr[0].split(`:`);
954
954
  colorArray.forEach((colorCd, j) => {
955
955
  colorArray[j] = colorCdPadding(_colorCdPaddingUse, colorToHex(colorCd.replaceAll(`0x`, `#`)));
956
- if (isColorCd(colorCd) && colorCd.length === 7) {
956
+ if (isColorCd(colorArray[j]) && colorArray[j].length === 7) {
957
957
  colorArray[j] += alphaVal;
958
958
  }
959
959
  });
@@ -2705,9 +2705,16 @@ const headerConvert = _dosObj => {
2705
2705
  g_stateObj.rotateEnabled = obj.imgType[0].rotateEnabled;
2706
2706
  g_stateObj.flatStepHeight = obj.imgType[0].flatStepHeight;
2707
2707
 
2708
+ const [titleArrowName, titleArrowRotate] = padArray(_dosObj.titleArrowName?.split(`:`), [`Original`, 180]);
2709
+ obj.titleArrowNo = roundZero(g_keycons.imgTypes.findIndex(imgType => imgType === titleArrowName));
2710
+ obj.titleArrowRotate = titleArrowRotate;
2711
+
2708
2712
  // サーバ上の場合、画像セットを再読込(ローカルファイル時は読込済みのためスキップ)
2709
2713
  if (!g_isFile) {
2714
+ updateImgType(obj.imgType[obj.titleArrowNo], true);
2710
2715
  updateImgType(obj.imgType[0]);
2716
+ } else {
2717
+ g_imgObj.titleArrow = C_IMG_ARROW;
2711
2718
  }
2712
2719
 
2713
2720
  // ラベルテキスト、オンマウステキスト、確認メッセージ定義の上書き設定
@@ -3347,7 +3354,10 @@ const getMusicNameMultiLine = _musicName => {
3347
3354
  * 画像セットの入れ替え処理
3348
3355
  * @param {array} _imgType
3349
3356
  */
3350
- const updateImgType = _imgType => {
3357
+ const updateImgType = (_imgType, _initFlg = false) => {
3358
+ if (_initFlg) {
3359
+ C_IMG_TITLE_ARROW = `../img/${_imgType.name}/arrow.${_imgType.extension}`;
3360
+ }
3351
3361
  resetImgs(_imgType.name, _imgType.extension);
3352
3362
  reloadImgObj();
3353
3363
  Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_rootPath}${g_imgObj[key]}`);
@@ -4039,7 +4049,7 @@ const titleInit = _ => {
4039
4049
  background: makeColorGradation(g_headerObj.titlearrowgrds[0] || g_headerObj.setColorOrg[0], {
4040
4050
  _defaultColorgrd: [false, `#eeeeee`],
4041
4051
  _objType: `titleArrow`,
4042
- }), rotate: 180,
4052
+ }), rotate: `titleArrow:${g_headerObj.titleArrowRotate}`,
4043
4053
  })
4044
4054
  );
4045
4055
  }
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2024/01/08 (v34.6.1)
8
+ * Revised : 2024/01/12 (v34.7.0)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -477,6 +477,7 @@ let C_IMG_CURSOR = `../img/cursor.svg`;
477
477
  let C_IMG_FRZBAR = `../img/frzbar.svg`;
478
478
  let C_IMG_LIFEBAR = `../img/frzbar.svg`;
479
479
  let C_IMG_LIFEBORDER = `../img/borderline.svg`;
480
+ let C_IMG_TITLE_ARROW;
480
481
 
481
482
  if (typeof loadBinary === C_TYP_FUNCTION) {
482
483
  loadBinary();
@@ -585,6 +586,8 @@ const reloadImgObj = _ => {
585
586
  g_imgObj.frzBar = C_IMG_FRZBAR;
586
587
  g_imgObj.lifeBar = C_IMG_LIFEBAR;
587
588
  g_imgObj.lifeBorder = C_IMG_LIFEBORDER;
589
+
590
+ g_imgObj.titleArrow = C_IMG_TITLE_ARROW;
588
591
  };
589
592
  reloadImgObj();
590
593
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "34.6.1",
3
+ "version": "34.7.1",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {