danoniplus 34.7.14 → 34.7.16
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 +26 -15
- 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 : 2025/
|
|
7
|
+
* Revised : 2025/02/17
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 34.7.
|
|
12
|
-
const g_revisedDate = `2025/
|
|
11
|
+
const g_version = `Ver 34.7.16`;
|
|
12
|
+
const g_revisedDate = `2025/02/17`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -5029,14 +5029,8 @@ const setDifficulty = (_initFlg) => {
|
|
|
5029
5029
|
});
|
|
5030
5030
|
|
|
5031
5031
|
}
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
|
|
5035
|
-
g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
|
|
5036
|
-
}
|
|
5037
|
-
if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
|
|
5038
|
-
g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
|
|
5039
|
-
}
|
|
5032
|
+
// 曲中ショートカットキーの切り替え
|
|
5033
|
+
setPlayingShortcut();
|
|
5040
5034
|
}
|
|
5041
5035
|
|
|
5042
5036
|
// スクロール設定用の配列を入れ替え
|
|
@@ -6668,6 +6662,9 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
6668
6662
|
// カラーグループ、シャッフルグループの再設定
|
|
6669
6663
|
g_keycons.groups.forEach(type => resetGroupList(type, `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`));
|
|
6670
6664
|
|
|
6665
|
+
// 曲中ショートカットキーの切り替え
|
|
6666
|
+
setPlayingShortcut();
|
|
6667
|
+
|
|
6671
6668
|
// キーコンフィグ画面を再呼び出し
|
|
6672
6669
|
keyConfigInit();
|
|
6673
6670
|
|
|
@@ -6829,6 +6826,20 @@ const getKeyInfo = _ => {
|
|
|
6829
6826
|
};
|
|
6830
6827
|
};
|
|
6831
6828
|
|
|
6829
|
+
/**
|
|
6830
|
+
* デフォルトの曲中ショートカットをキー数・キーパターンにより切り替え
|
|
6831
|
+
* - キーコンフィグ画面で個別に変えていた場合は変更しない
|
|
6832
|
+
*/
|
|
6833
|
+
const setPlayingShortcut = () => {
|
|
6834
|
+
const keyCtrlPtn = `${g_keyObj.currentKey}_${g_keyObj.currentPtn}`;
|
|
6835
|
+
if (g_headerObj.keyRetryDef === C_KEY_RETRY) {
|
|
6836
|
+
g_headerObj.keyRetry = setIntVal(getKeyCtrlVal(g_keyObj[`keyRetry${keyCtrlPtn}`]), g_headerObj.keyRetryDef);
|
|
6837
|
+
}
|
|
6838
|
+
if (g_headerObj.keyTitleBackDef === C_KEY_TITLEBACK) {
|
|
6839
|
+
g_headerObj.keyTitleBack = setIntVal(getKeyCtrlVal(g_keyObj[`keyTitleBack${keyCtrlPtn}`]), g_headerObj.keyTitleBackDef);
|
|
6840
|
+
}
|
|
6841
|
+
};
|
|
6842
|
+
|
|
6832
6843
|
/**
|
|
6833
6844
|
* ステップゾーン間隔、大きさの更新
|
|
6834
6845
|
* @param {string} _header
|
|
@@ -8828,8 +8839,8 @@ const mainInit = _ => {
|
|
|
8828
8839
|
const filterCss = g_stateObj.filterLock === C_FLG_OFF ? g_cssObj.life_Failed : g_cssObj.life_Cleared;
|
|
8829
8840
|
[`filterBar0`, `filterBar1`, `borderBar0`, `borderBar1`].forEach(obj =>
|
|
8830
8841
|
mainSprite.appendChild(createColorObject2(obj, g_lblPosObj.filterBar, filterCss)));
|
|
8831
|
-
borderBar0.style.top = wUnit(g_posObj.stepDiffY +
|
|
8832
|
-
borderBar1.style.top = wUnit(g_posObj.stepDiffY + g_posObj.arrowHeight -
|
|
8842
|
+
borderBar0.style.top = wUnit(g_posObj.stepDiffY + g_workObj.hitPosition);
|
|
8843
|
+
borderBar1.style.top = wUnit(g_posObj.stepDiffY + g_posObj.arrowHeight - g_workObj.hitPosition);
|
|
8833
8844
|
|
|
8834
8845
|
if (g_appearanceRanges.includes(g_stateObj.appearance)) {
|
|
8835
8846
|
mainSprite.appendChild(createDivCss2Label(`filterView`, ``, g_lblPosObj.filterView));
|
|
@@ -9986,8 +9997,8 @@ const changeAppearanceFilter = (_appearance, _num = 10) => {
|
|
|
9986
9997
|
$id(`arrowSprite${topNum}`).clipPath = topShape;
|
|
9987
9998
|
$id(`arrowSprite${bottomNum}`).clipPath = bottomShape;
|
|
9988
9999
|
|
|
9989
|
-
$id(`filterBar0`).top = wUnit(g_posObj.arrowHeight * _num / 100
|
|
9990
|
-
$id(`filterBar1`).top = wUnit(g_posObj.arrowHeight * (100 - _num) / 100
|
|
10000
|
+
$id(`filterBar0`).top = wUnit(g_posObj.arrowHeight * _num / 100 - g_workObj.hitPosition);
|
|
10001
|
+
$id(`filterBar1`).top = wUnit(g_posObj.arrowHeight * (100 - _num) / 100 + g_workObj.hitPosition);
|
|
9991
10002
|
|
|
9992
10003
|
if (g_appearanceRanges.includes(_appearance)) {
|
|
9993
10004
|
$id(`filterView`).top =
|