danoniplus 46.6.1 → 46.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 +7 -4
- package/js/lib/danoni_constants.js +9 -1
- 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/04/
|
|
7
|
+
* Revised : 2026/04/13
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 46.
|
|
12
|
-
const g_revisedDate = `2026/04/
|
|
11
|
+
const g_version = `Ver 46.7.0`;
|
|
12
|
+
const g_revisedDate = `2026/04/13`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -1202,14 +1202,16 @@ const safeExecuteCustomHooks = (_hookName, _funcArray, ...args) => {
|
|
|
1202
1202
|
console.group(`${unEscapeEmoji(g_emojiObj.crossMark)} Custom Function Error: [${_hookName}] (Index: ${index}${func.name ? `, Func: ${func.name}` : ``})`);
|
|
1203
1203
|
console.error(e);
|
|
1204
1204
|
console.groupEnd();
|
|
1205
|
+
makeInfoWindow(g_msgInfoObj.W_0051, `leftToRightFade`);
|
|
1205
1206
|
|
|
1206
1207
|
} else if (errorCache && !errorCache[index]?.has(func)) {
|
|
1207
1208
|
// ループがある場合のエラー処理(初回のみ)
|
|
1208
1209
|
console.group(`${unEscapeEmoji(g_emojiObj.crossMark)} Custom Function Error: [${_hookName}] (Index: ${index}${func.name ? `, Func: ${func.name}` : ``})`);
|
|
1209
|
-
console.error(`${unEscapeEmoji(g_emojiObj.policeLight)} [${
|
|
1210
|
+
console.error(`${unEscapeEmoji(g_emojiObj.policeLight)} [${g_errorFrames[_hookName]()} Frame] ${g_msgObj.customFunctionError}`, e);
|
|
1210
1211
|
console.groupEnd();
|
|
1211
1212
|
errorCache[index] = new Set();
|
|
1212
1213
|
errorCache[index].add(func);
|
|
1214
|
+
makeInfoWindow(g_msgInfoObj.W_0051, `leftToRightFade`);
|
|
1213
1215
|
}
|
|
1214
1216
|
}
|
|
1215
1217
|
}
|
|
@@ -12014,6 +12016,7 @@ const getArrowSettings = () => {
|
|
|
12014
12016
|
g_workObj.diffList = [];
|
|
12015
12017
|
g_workObj.mainEndTime = 0;
|
|
12016
12018
|
g_workObj.currentLifeState = ``;
|
|
12019
|
+
g_errorCache['g_customJsObj.mainEnterFrame'] = [];
|
|
12017
12020
|
|
|
12018
12021
|
const rotateBy = (val, delta) => {
|
|
12019
12022
|
// numeric
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised : 2026/04/
|
|
8
|
+
* Revised : 2026/04/13 (v46.7.0)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -4254,6 +4254,7 @@ const g_lang_msgInfoObj = {
|
|
|
4254
4254
|
W_0031: `セーフモード適用中です。ローカルストレージ情報を使わない設定になっています。<br>
|
|
4255
4255
|
「Data Management」から解除が可能です。(W-0031)`,
|
|
4256
4256
|
W_0041: `選曲単品モードが有効になっています。<br><a href="{0}">[ 選曲画面へ戻る ]</a>`,
|
|
4257
|
+
W_0051: `カスタムJS実行中にエラーが発生しました。処理は続行します。<br>繰り返し発生する場合はサイト管理者へ連絡してください。`,
|
|
4257
4258
|
|
|
4258
4259
|
E_0011: `アーティスト名が未入力です。(E-0011)`,
|
|
4259
4260
|
E_0012: `曲名情報が未設定です。(E-0012)<br>
|
|
@@ -4301,6 +4302,7 @@ const g_lang_msgInfoObj = {
|
|
|
4301
4302
|
The setting is set to not use local storage information <br>
|
|
4302
4303
|
and can be removed from Data Management. (W-0031)`,
|
|
4303
4304
|
W_0041: `The single music selection mode is enabled.<br><a href="{0}">[ Return to the original page ]</a>`,
|
|
4305
|
+
W_0051: `An error occurred while executing custom JavaScript. Processing will continue.<br>If this error persists, please contact the site owner.`,
|
|
4304
4306
|
|
|
4305
4307
|
E_0011: `The artist name is not set. (E-0011)`,
|
|
4306
4308
|
E_0012: `The song title information is not set. (E-0012)<br>
|
|
@@ -5036,6 +5038,12 @@ const g_errorCache = {
|
|
|
5036
5038
|
'g_customJsObj.resultEnterFrame': [],
|
|
5037
5039
|
};
|
|
5038
5040
|
|
|
5041
|
+
const g_errorFrames = {
|
|
5042
|
+
'g_customJsObj.titleEnterFrame': () => g_scoreObj.titleFrameNum,
|
|
5043
|
+
'g_customJsObj.mainEnterFrame': () => g_scoreObj.baseFrame,
|
|
5044
|
+
'g_customJsObj.resultEnterFrame': () => g_scoreObj.resultFrameNum,
|
|
5045
|
+
};
|
|
5046
|
+
|
|
5039
5047
|
/**
|
|
5040
5048
|
* 従来のカスタム関数をg_customJsObj, g_skinJsObjへ追加
|
|
5041
5049
|
* - customjsファイルを読み込んだ直後にこの関数を呼び出している
|