danoniplus 33.7.0 → 33.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 +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 33.7.
|
|
12
|
-
const g_revisedDate = `2023/
|
|
11
|
+
const g_version = `Ver 33.7.1`;
|
|
12
|
+
const g_revisedDate = `2023/10/13`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -5550,29 +5550,30 @@ const setGauge = (_scrollNum, _gaugeInitFlg = false) => {
|
|
|
5550
5550
|
};
|
|
5551
5551
|
|
|
5552
5552
|
// ゲージ初期化
|
|
5553
|
-
if (_gaugeInitFlg) {
|
|
5554
|
-
// カスタムゲージの設定取得
|
|
5555
|
-
const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
|
|
5556
|
-
if (hasVal(defaultCustomGauge)) {
|
|
5557
|
-
g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
|
|
5558
|
-
g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
|
|
5559
|
-
}
|
|
5560
|
-
|
|
5561
|
-
// ゲージタイプの設定
|
|
5562
|
-
changeLifeMode(g_headerObj);
|
|
5563
|
-
g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
|
|
5564
5553
|
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5554
|
+
// カスタムゲージの設定取得
|
|
5555
|
+
const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
|
|
5556
|
+
if (hasVal(defaultCustomGauge)) {
|
|
5557
|
+
g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
|
|
5558
|
+
g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
|
|
5569
5559
|
}
|
|
5560
|
+
|
|
5561
|
+
// ゲージタイプの設定
|
|
5562
|
+
changeLifeMode(g_headerObj);
|
|
5563
|
+
g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
|
|
5564
|
+
|
|
5565
|
+
// ゲージ配列を入れ替え
|
|
5566
|
+
g_settings.gauges = structuredClone(g_gaugeOptionObj[g_gaugeType.toLowerCase()]);
|
|
5567
|
+
g_settings.gaugeNum = getCurrentNo(g_settings.gauges, g_stateObj.gauge);
|
|
5568
|
+
g_stateObj.gauge = g_settings.gauges[g_settings.gaugeNum];
|
|
5569
|
+
|
|
5570
5570
|
setSetting(_scrollNum, `gauge`);
|
|
5571
5571
|
g_stateObj.lifeVariable = g_gaugeOptionObj[`var${g_gaugeType}`][g_settings.gaugeNum];
|
|
5572
5572
|
|
|
5573
5573
|
// デフォルトゲージの設定を適用(g_gaugeOptionObjから取得)
|
|
5574
|
-
if (
|
|
5575
|
-
g_gaugeOptionObj.
|
|
5574
|
+
if (g_settings.gaugeNum !== 0 &&
|
|
5575
|
+
(g_gaugeOptionObj.custom.length === 0 ||
|
|
5576
|
+
g_gaugeOptionObj.defaultList.includes(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]))) {
|
|
5576
5577
|
|
|
5577
5578
|
const gType = (g_gaugeType === C_LFE_CUSTOM ?
|
|
5578
5579
|
toCapitalize(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]) : g_gaugeType);
|