danoniplus 34.6.0 → 34.7.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 +21 -10
- package/js/lib/danoni_constants.js +6 -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 : 2024/01/
|
|
7
|
+
* Revised : 2024/01/12
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 34.
|
|
12
|
-
const g_revisedDate = `2024/01/
|
|
11
|
+
const g_version = `Ver 34.7.0`;
|
|
12
|
+
const g_revisedDate = `2024/01/12`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -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:
|
|
4052
|
+
}), rotate: `titleArrow:${g_headerObj.titleArrowRotate}`,
|
|
4043
4053
|
})
|
|
4044
4054
|
);
|
|
4045
4055
|
}
|
|
@@ -4523,7 +4533,7 @@ const makeDifList = (_difList, _targetKey = ``) => {
|
|
|
4523
4533
|
_difList.appendChild(makeDifLblCssButton(`dif${k}`, text, k, _ => nextDifficulty(j - g_stateObj.scoreId),
|
|
4524
4534
|
{ btnStyle: (j === g_stateObj.scoreId ? `Setting` : `Default`) }));
|
|
4525
4535
|
if (j === g_stateObj.scoreId) {
|
|
4526
|
-
pos = k + 6
|
|
4536
|
+
pos = k + 6.5 * (g_sHeight - 239) / 261;
|
|
4527
4537
|
curk = k;
|
|
4528
4538
|
}
|
|
4529
4539
|
k++;
|
|
@@ -4566,6 +4576,7 @@ const createDifWindow = (_key = ``) => {
|
|
|
4566
4576
|
setShortcutEvent(g_currentPage);
|
|
4567
4577
|
const difList = createEmptySprite(optionsprite, `difList`, g_windowObj.difList, g_cssObj.settings_DifSelector);
|
|
4568
4578
|
const difCover = createEmptySprite(optionsprite, `difCover`, g_windowObj.difCover, g_cssObj.settings_DifSelector);
|
|
4579
|
+
const difFilter = createEmptySprite(difCover, `difFilter`, g_windowObj.difFilter, g_cssObj.settings_DifSelector)
|
|
4569
4580
|
|
|
4570
4581
|
// リスト再作成
|
|
4571
4582
|
makeDifList(difList, _key);
|
|
@@ -4589,18 +4600,18 @@ const createDifWindow = (_key = ``) => {
|
|
|
4589
4600
|
// キー別フィルタボタン作成
|
|
4590
4601
|
let pos = 0;
|
|
4591
4602
|
g_headerObj.viewKeyLists.forEach((targetKey, m) => {
|
|
4592
|
-
|
|
4593
|
-
makeDifLblCssButton(`keyFilter${m}`, `${getKeyName(targetKey)} ${getStgDetailName('key')}`, m
|
|
4603
|
+
difFilter.appendChild(
|
|
4604
|
+
makeDifLblCssButton(`keyFilter${m}`, `${getKeyName(targetKey)} ${getStgDetailName('key')}`, m, _ => {
|
|
4594
4605
|
resetDifWindow();
|
|
4595
4606
|
g_stateObj.filterKeys = targetKey;
|
|
4596
4607
|
createDifWindow(targetKey);
|
|
4597
4608
|
}, { w: g_limitObj.difCoverWidth, btnStyle: (g_stateObj.filterKeys === targetKey ? `Setting` : `Default`) })
|
|
4598
4609
|
);
|
|
4599
4610
|
if (g_stateObj.filterKeys === targetKey) {
|
|
4600
|
-
pos = m +
|
|
4611
|
+
pos = m + 5 * (g_sHeight - 300) / 200;
|
|
4601
4612
|
}
|
|
4602
4613
|
});
|
|
4603
|
-
|
|
4614
|
+
difFilter.scrollTop = Math.max(pos * g_limitObj.setLblHeight - parseInt(difFilter.style.height), 0);
|
|
4604
4615
|
|
|
4605
4616
|
multiAppend(optionsprite, makeDifBtn(-1), makeDifBtn());
|
|
4606
4617
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised : 2024/01/
|
|
8
|
+
* Revised : 2024/01/12 (v34.7.0)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -186,7 +186,8 @@ const updateWindowSiz = _ => {
|
|
|
186
186
|
Object.assign(g_windowObj, {
|
|
187
187
|
optionSprite: { x: (g_sWidth - 450) / 2, y: 65, w: 450, h: 325 },
|
|
188
188
|
difList: { x: 165, y: 60, w: 280, h: 261 + g_sHeight - 500, overflow: `auto` },
|
|
189
|
-
difCover: { x: 25, y: 60, w: 140, h: 261 + g_sHeight - 500,
|
|
189
|
+
difCover: { x: 25, y: 60, w: 140, h: 261 + g_sHeight - 500, opacity: 0.95 },
|
|
190
|
+
difFilter: { x: 0, y: 61, w: 140, h: 200 + g_sHeight - 500, overflow: `auto` },
|
|
190
191
|
displaySprite: { x: 25, y: 30, w: (g_sWidth - 450) / 2, h: g_limitObj.setLblHeight * 5 },
|
|
191
192
|
scoreDetail: { x: 20, y: 85, w: (g_sWidth - 500) / 2 + 420, h: 236, visibility: `hidden` },
|
|
192
193
|
detailObj: { w: (g_sWidth - 500) / 2 + 420, h: 230, visibility: `hidden` },
|
|
@@ -476,6 +477,7 @@ let C_IMG_CURSOR = `../img/cursor.svg`;
|
|
|
476
477
|
let C_IMG_FRZBAR = `../img/frzbar.svg`;
|
|
477
478
|
let C_IMG_LIFEBAR = `../img/frzbar.svg`;
|
|
478
479
|
let C_IMG_LIFEBORDER = `../img/borderline.svg`;
|
|
480
|
+
let C_IMG_TITLE_ARROW;
|
|
479
481
|
|
|
480
482
|
if (typeof loadBinary === C_TYP_FUNCTION) {
|
|
481
483
|
loadBinary();
|
|
@@ -584,6 +586,8 @@ const reloadImgObj = _ => {
|
|
|
584
586
|
g_imgObj.frzBar = C_IMG_FRZBAR;
|
|
585
587
|
g_imgObj.lifeBar = C_IMG_LIFEBAR;
|
|
586
588
|
g_imgObj.lifeBorder = C_IMG_LIFEBORDER;
|
|
589
|
+
|
|
590
|
+
g_imgObj.titleArrow = C_IMG_TITLE_ARROW;
|
|
587
591
|
};
|
|
588
592
|
reloadImgObj();
|
|
589
593
|
|