danoniplus 45.4.0 → 45.5.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 -16
- package/js/lib/danoni_constants.js +3 -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/
|
|
7
|
+
* Revised : 2026/03/05
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 45.
|
|
12
|
-
const g_revisedDate = `2026/03/
|
|
11
|
+
const g_version = `Ver 45.5.0`;
|
|
12
|
+
const g_revisedDate = `2026/03/05`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -6456,6 +6456,7 @@ const commonSettingBtn = _labelName => {
|
|
|
6456
6456
|
const switchSave = evt => {
|
|
6457
6457
|
const from = boolToSwitch(g_stateObj.dataSaveFlg);
|
|
6458
6458
|
g_stateObj.dataSaveFlg = !g_stateObj.dataSaveFlg;
|
|
6459
|
+
updateSettingSummary();
|
|
6459
6460
|
|
|
6460
6461
|
const to = boolToSwitch(g_stateObj.dataSaveFlg);
|
|
6461
6462
|
evt.target.classList.replace(g_cssObj[`button_${from}`], g_cssObj[`button_${to}`]);
|
|
@@ -6517,7 +6518,7 @@ const commonSettingBtn = _labelName => {
|
|
|
6517
6518
|
|
|
6518
6519
|
const makeSettingSummary = () => {
|
|
6519
6520
|
const tmpDiv = createEmptySprite(divRoot, `settingSumSprite`, g_windowObj.settingSumSprite);
|
|
6520
|
-
tmpDiv.style.background = g_headerObj.baseBrightFlg ? `#
|
|
6521
|
+
tmpDiv.style.background = g_headerObj.baseBrightFlg ? `#ffffffee` : `#000000cc`;
|
|
6521
6522
|
|
|
6522
6523
|
multiAppend(tmpDiv,
|
|
6523
6524
|
createDivCss2Label(`lblSummaryHeader`, g_lblNameObj.settingSummary, g_lblPosObj.lblSummaryHeader),
|
|
@@ -6553,14 +6554,18 @@ const updateSettingSummary = () => {
|
|
|
6553
6554
|
const orgShuffleFlg = g_keyObj[`shuffle${keyCtrlPtn}`].filter((shuffleGr, j) => shuffleGr !== g_keyObj[`shuffle${keyCtrlPtn}_0d`][j]).length === 0;
|
|
6554
6555
|
const shuffleName = `${getStgDetailName(g_stateObj.shuffle)}${!orgShuffleFlg && !g_stateObj.shuffle.endsWith(`+`) ? getStgDetailName('(S)') : ''}`;
|
|
6555
6556
|
const settingData = getSelectedSettingList(shuffleName);
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
document.getElementById(`
|
|
6560
|
-
document.getElementById(`
|
|
6561
|
-
document.getElementById(`
|
|
6557
|
+
const estimatedHighscoreCondition = g_stateObj.dataSaveFlg && (g_stateObj.autoPlay !== C_FLG_ALL && g_headerObj.playbackRate === 1 && g_stateObj.fadein < 10 &&
|
|
6558
|
+
(g_stateObj.shuffle === C_FLG_OFF || (g_stateObj.shuffle.endsWith(`Mirror`) && orgShuffleFlg)));
|
|
6559
|
+
|
|
6560
|
+
document.getElementById(`lblSummaryDifInfo`).innerHTML = settingData.difData + `${estimatedHighscoreCondition ? '' : ` | <span class="common_kita common_bold">No Records</span>`}`;
|
|
6561
|
+
document.getElementById(`lblSummaryPlaystyleInfo`).textContent = settingData.playStyleData;
|
|
6562
|
+
document.getElementById(`lblSummaryDisplayInfo`).textContent = settingData.displayData;
|
|
6563
|
+
document.getElementById(`lblSummaryDisplay2Info`).textContent = settingData.display2Data;
|
|
6564
|
+
document.getElementById(`lblSummaryEnvironment`).textContent =
|
|
6562
6565
|
`(Adj: ${g_stateObj.adjustment} f, Volume: ${g_stateObj.volume}%, ` +
|
|
6563
6566
|
`ColorType: ${g_colorType}, KeyPattern: ${g_keyObj.currentPtn === -1 ? 'Self' : g_keyObj.currentPtn + 1})`;
|
|
6567
|
+
|
|
6568
|
+
g_customJsObj.settingSummary.forEach(func => func());
|
|
6564
6569
|
};
|
|
6565
6570
|
|
|
6566
6571
|
/**
|
|
@@ -8727,7 +8732,7 @@ const exSettingInit = () => {
|
|
|
8727
8732
|
createExpandedScView(_name);
|
|
8728
8733
|
},
|
|
8729
8734
|
title: g_msgObj[`${_name}Type`] ?? ``,
|
|
8730
|
-
}), g_cssObj.button_Default, g_cssObj
|
|
8735
|
+
}), g_cssObj.button_Default, g_cssObj.button_RevON);
|
|
8731
8736
|
|
|
8732
8737
|
/**
|
|
8733
8738
|
* 拡張ボタンのショートカット表示
|
|
@@ -14661,9 +14666,9 @@ const resultInit = () => {
|
|
|
14661
14666
|
maxCombo: 0, fmaxCombo: 0, score: 0,
|
|
14662
14667
|
};
|
|
14663
14668
|
|
|
14664
|
-
const
|
|
14665
|
-
(g_stateObj.shuffle === C_FLG_OFF || (
|
|
14666
|
-
if (
|
|
14669
|
+
const highscorePreCondition = (g_stateObj.autoAll === C_FLG_OFF && g_headerObj.playbackRate === 1 &&
|
|
14670
|
+
(g_stateObj.shuffle === C_FLG_OFF || (g_stateObj.shuffle.endsWith(`Mirror`) && orgShuffleFlg)));
|
|
14671
|
+
if (highscorePreCondition) {
|
|
14667
14672
|
|
|
14668
14673
|
// ハイスコア差分描画
|
|
14669
14674
|
Object.keys(jdgScoreObj).filter(score => score !== `score`).forEach(score =>
|
|
@@ -14838,7 +14843,7 @@ const resultInit = () => {
|
|
|
14838
14843
|
const currentDateTime = new Date().toLocaleString();
|
|
14839
14844
|
g_customJsObj.result.forEach(func => func());
|
|
14840
14845
|
|
|
14841
|
-
if (
|
|
14846
|
+
if (highscorePreCondition) {
|
|
14842
14847
|
|
|
14843
14848
|
// 古いキー定義の情報を検索
|
|
14844
14849
|
const relatedKeys = Object.entries(g_keyObj.keyTransPattern)
|
|
@@ -15031,7 +15036,7 @@ const resultInit = () => {
|
|
|
15031
15036
|
drawText(g_resultObj[score], { x: 200, hy: 7 + jdgScoreObj[score].pos, align: C_ALIGN_RIGHT });
|
|
15032
15037
|
});
|
|
15033
15038
|
|
|
15034
|
-
if (
|
|
15039
|
+
if (highscorePreCondition) {
|
|
15035
15040
|
drawText(`(${highscoreDfObj.score >= 0 ? '+' : '-'} ${Math.abs(highscoreDfObj.score)})`,
|
|
15036
15041
|
{ x: 206, hy: 18, color: highscoreDfObj.score > 0 ? `#ffff99` : `#cccccc`, align: C_ALIGN_RIGHT });
|
|
15037
15042
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised : 2026/03/
|
|
8
|
+
* Revised : 2026/03/05 (v45.5.0)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -4439,7 +4439,7 @@ const g_lblNameObj = {
|
|
|
4439
4439
|
'u_Shakin(Great)': `Shakin(Great)`,
|
|
4440
4440
|
'u_Fast/Slow': `Fast/Slow`,
|
|
4441
4441
|
|
|
4442
|
-
'
|
|
4442
|
+
'u_Speed': `Velocity`,
|
|
4443
4443
|
'u_Density': `Density`,
|
|
4444
4444
|
'u_ToolDif': `DifLevel`,
|
|
4445
4445
|
'u_HighScore': `HighScore`,
|
|
@@ -4845,6 +4845,7 @@ const g_customJsObj = {
|
|
|
4845
4845
|
difficulty: [],
|
|
4846
4846
|
settingsDisplay: [],
|
|
4847
4847
|
exSetting: [],
|
|
4848
|
+
settingSummary: [],
|
|
4848
4849
|
keyconfig: [],
|
|
4849
4850
|
|
|
4850
4851
|
preloading: [],
|