danoniplus 32.7.4 → 32.7.5
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 -20
- 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 : 2023/
|
|
7
|
+
* Revised : 2023/10/13
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 32.7.
|
|
12
|
-
const g_revisedDate = `2023/
|
|
11
|
+
const g_version = `Ver 32.7.5`;
|
|
12
|
+
const g_revisedDate = `2023/10/13`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -5406,29 +5406,30 @@ const setGauge = (_scrollNum, _gaugeInitFlg = false) => {
|
|
|
5406
5406
|
};
|
|
5407
5407
|
|
|
5408
5408
|
// ゲージ初期化
|
|
5409
|
-
if (_gaugeInitFlg) {
|
|
5410
|
-
// カスタムゲージの設定取得
|
|
5411
|
-
const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
|
|
5412
|
-
if (hasVal(defaultCustomGauge)) {
|
|
5413
|
-
g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
|
|
5414
|
-
g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
|
|
5415
|
-
}
|
|
5416
|
-
|
|
5417
|
-
// ゲージタイプの設定
|
|
5418
|
-
changeLifeMode(g_headerObj);
|
|
5419
|
-
g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
|
|
5420
5409
|
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5410
|
+
// カスタムゲージの設定取得
|
|
5411
|
+
const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
|
|
5412
|
+
if (hasVal(defaultCustomGauge)) {
|
|
5413
|
+
g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
|
|
5414
|
+
g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
|
|
5425
5415
|
}
|
|
5416
|
+
|
|
5417
|
+
// ゲージタイプの設定
|
|
5418
|
+
changeLifeMode(g_headerObj);
|
|
5419
|
+
g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
|
|
5420
|
+
|
|
5421
|
+
// ゲージ配列を入れ替え
|
|
5422
|
+
g_settings.gauges = structuredClone(g_gaugeOptionObj[g_gaugeType.toLowerCase()]);
|
|
5423
|
+
g_settings.gaugeNum = getCurrentNo(g_settings.gauges, g_stateObj.gauge);
|
|
5424
|
+
g_stateObj.gauge = g_settings.gauges[g_settings.gaugeNum];
|
|
5425
|
+
|
|
5426
5426
|
setSetting(_scrollNum, `gauge`);
|
|
5427
5427
|
g_stateObj.lifeVariable = g_gaugeOptionObj[`var${g_gaugeType}`][g_settings.gaugeNum];
|
|
5428
5428
|
|
|
5429
5429
|
// デフォルトゲージの設定を適用(g_gaugeOptionObjから取得)
|
|
5430
|
-
if (
|
|
5431
|
-
g_gaugeOptionObj.
|
|
5430
|
+
if (g_settings.gaugeNum !== 0 &&
|
|
5431
|
+
(g_gaugeOptionObj.custom.length === 0 ||
|
|
5432
|
+
g_gaugeOptionObj.defaultList.includes(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]))) {
|
|
5432
5433
|
|
|
5433
5434
|
const gType = (g_gaugeType === C_LFE_CUSTOM ?
|
|
5434
5435
|
toCapitalize(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]) : g_gaugeType);
|