danoniplus 33.6.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 +29 -27
- package/js/template/danoni_setting.js +13 -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 : 2023/
|
|
7
|
+
* Revised : 2023/10/13
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 33.
|
|
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 = ``;
|
|
@@ -2718,8 +2718,9 @@ const headerConvert = _dosObj => {
|
|
|
2718
2718
|
$id(`canvas-frame`).width = `${g_sWidth}px`;
|
|
2719
2719
|
}
|
|
2720
2720
|
// 高さ設定
|
|
2721
|
-
if (hasVal(_dosObj.windowHeight)) {
|
|
2722
|
-
g_sHeight = Math.max(setIntVal(_dosObj.windowHeight, g_sHeight),
|
|
2721
|
+
if (hasVal(_dosObj.windowHeight) || hasVal(g_presetObj.autoMinHeight)) {
|
|
2722
|
+
g_sHeight = Math.max(setIntVal(_dosObj.windowHeight, g_sHeight),
|
|
2723
|
+
setIntVal(g_presetObj.autoMinHeight, g_sHeight), g_sHeight);
|
|
2723
2724
|
$id(`canvas-frame`).height = `${g_sHeight}px`;
|
|
2724
2725
|
}
|
|
2725
2726
|
|
|
@@ -2989,12 +2990,12 @@ const headerConvert = _dosObj => {
|
|
|
2989
2990
|
}
|
|
2990
2991
|
|
|
2991
2992
|
// プレイサイズ(X方向, Y方向)
|
|
2992
|
-
obj.playingWidth = setIntVal(_dosObj.playingWidth, `default`);
|
|
2993
|
-
obj.playingHeight = setIntVal(_dosObj.playingHeight, g_sHeight);
|
|
2993
|
+
obj.playingWidth = setIntVal(_dosObj.playingWidth, g_presetObj.playingWidth ?? `default`);
|
|
2994
|
+
obj.playingHeight = setIntVal(_dosObj.playingHeight, g_presetObj.playingHeight ?? g_sHeight);
|
|
2994
2995
|
|
|
2995
2996
|
// プレイ左上位置(X座標, Y座標)
|
|
2996
|
-
obj.playingX = setIntVal(_dosObj.playingX);
|
|
2997
|
-
obj.playingY = setIntVal(_dosObj.playingY);
|
|
2997
|
+
obj.playingX = setIntVal(_dosObj.playingX, g_presetObj.playingX ?? 0);
|
|
2998
|
+
obj.playingY = setIntVal(_dosObj.playingY, g_presetObj.playingY ?? 0);
|
|
2998
2999
|
|
|
2999
3000
|
// ステップゾーン位置
|
|
3000
3001
|
g_posObj.stepY = (isNaN(parseFloat(_dosObj.stepY)) ? C_STEP_Y : parseFloat(_dosObj.stepY));
|
|
@@ -5549,29 +5550,30 @@ const setGauge = (_scrollNum, _gaugeInitFlg = false) => {
|
|
|
5549
5550
|
};
|
|
5550
5551
|
|
|
5551
5552
|
// ゲージ初期化
|
|
5552
|
-
if (_gaugeInitFlg) {
|
|
5553
|
-
// カスタムゲージの設定取得
|
|
5554
|
-
const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
|
|
5555
|
-
if (hasVal(defaultCustomGauge)) {
|
|
5556
|
-
g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
|
|
5557
|
-
g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
|
|
5558
|
-
}
|
|
5559
|
-
|
|
5560
|
-
// ゲージタイプの設定
|
|
5561
|
-
changeLifeMode(g_headerObj);
|
|
5562
|
-
g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
|
|
5563
5553
|
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
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();
|
|
5568
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
|
+
|
|
5569
5570
|
setSetting(_scrollNum, `gauge`);
|
|
5570
5571
|
g_stateObj.lifeVariable = g_gaugeOptionObj[`var${g_gaugeType}`][g_settings.gaugeNum];
|
|
5571
5572
|
|
|
5572
5573
|
// デフォルトゲージの設定を適用(g_gaugeOptionObjから取得)
|
|
5573
|
-
if (
|
|
5574
|
-
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}`]))) {
|
|
5575
5577
|
|
|
5576
5578
|
const gType = (g_gaugeType === C_LFE_CUSTOM ?
|
|
5577
5579
|
toCapitalize(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]) : g_gaugeType);
|
|
@@ -7833,7 +7835,7 @@ const getFirstArrowFrame = (_dataObj, _keyCtrlPtn = `${g_keyObj.currentKey}_${g_
|
|
|
7833
7835
|
];
|
|
7834
7836
|
|
|
7835
7837
|
data.filter(data => hasVal(data)).forEach(_objData => {
|
|
7836
|
-
if (
|
|
7838
|
+
if (_objData[0] !== `` && _objData[0] < tmpFirstNum && _objData[0] + g_limitObj.adjustment > 0) {
|
|
7837
7839
|
tmpFirstNum = _objData[0];
|
|
7838
7840
|
}
|
|
7839
7841
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
3
|
* Dancing☆Onigiri 設定用jsファイル
|
|
4
|
-
* Template Update: 2023/08
|
|
4
|
+
* Template Update: 2023/09/08 (v33.7.0)
|
|
5
5
|
*
|
|
6
6
|
* このファイルでは、作品全体に対しての初期設定を行うことができます。
|
|
7
7
|
* 譜面データ側で個別に同様の項目が設定されている場合は、譜面データ側の設定が優先されます。
|
|
@@ -29,6 +29,9 @@ g_presetObj.tuningUrl = `https://www.google.co.jp/`;
|
|
|
29
29
|
/** 個人サイト別の最小横幅設定 */
|
|
30
30
|
//g_presetObj.autoMinWidth = 600;
|
|
31
31
|
|
|
32
|
+
/** 個人サイト別の最小高さ設定 */
|
|
33
|
+
//g_presetObj.autoMinHeight = 500;
|
|
34
|
+
|
|
32
35
|
/** 個人サイト別のウィンドウ位置 (left:左寄せ, center:中央, right:右寄せ)*/
|
|
33
36
|
//g_presetObj.windowAlign = `center`;
|
|
34
37
|
|
|
@@ -292,6 +295,15 @@ g_presetObj.stockForceDelList = {
|
|
|
292
295
|
*/
|
|
293
296
|
//g_presetObj.playingLayout = `left`;
|
|
294
297
|
|
|
298
|
+
/**
|
|
299
|
+
* プレイ画面の位置調整
|
|
300
|
+
* - 譜面ヘッダーのplayingX, playingY, playingWidth, playingHeightと同じ
|
|
301
|
+
*/
|
|
302
|
+
//g_presetObj.playingX = 0;
|
|
303
|
+
//g_presetObj.playingY = 0;
|
|
304
|
+
//g_presetObj.playingWidth = 600;
|
|
305
|
+
//g_presetObj.playingHeight = 500;
|
|
306
|
+
|
|
295
307
|
/*
|
|
296
308
|
------------------------------------------------------------------------
|
|
297
309
|
リザルトデータ
|