danoniplus 44.5.9 → 44.5.11

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 CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2026/03/12
7
+ * Revised : 2026/03/20
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 44.5.9`;
12
- const g_revisedDate = `2026/03/12`;
11
+ const g_version = `Ver 44.5.11`;
12
+ const g_revisedDate = `2026/03/20`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -11775,6 +11775,46 @@ const getArrowSettings = () => {
11775
11775
  g_workObj.orgFlatFlg = g_workObj.dividePos.every(v => v % 2 === g_workObj.dividePos[0] % 2);
11776
11776
  g_stateObj.layerNumDf = Math.max(g_stateObj.layerNumDf, Math.ceil((Math.max(...g_workObj.dividePos) + 1) / 2) * 2);
11777
11777
 
11778
+ // Swapping設定に応じたステップゾーンの入れ替え
11779
+ if (g_stateObj.swapping.includes(`Mirror`)) {
11780
+
11781
+ let _style = structuredClone(Object.values(g_workObj.shuffleGroupMap));
11782
+ const _styleTrans = _style.flatMap(arr => {
11783
+ // g_workObj.devidePosの値ごとにグループ化する
11784
+ const groups = {};
11785
+
11786
+ arr.forEach(n => {
11787
+ const div = g_workObj.dividePos[n];
11788
+ if (!groups[div]) groups[div] = [];
11789
+ groups[div].push(n);
11790
+ });
11791
+
11792
+ // groups は {0:[...], 1:[...], 2:[...]} のような形になるので
11793
+ // これを配列に変換して返す
11794
+ return Object.values(groups);
11795
+ });
11796
+ const _styleTransDf = structuredClone(Object.values(_styleTrans));
11797
+ if (g_stateObj.swapping === `Mirror`) {
11798
+ _styleTrans.map(_group => _group.reverse());
11799
+
11800
+ } else if (g_stateObj.swapping === `X-Mirror`) {
11801
+ // X-Mirrorの場合、グループの内側だけ入れ替える
11802
+ _styleTrans.forEach((group, i) => {
11803
+ g_settings.swapPattern.forEach(val => {
11804
+ swapGroupNums(_styleTrans, group, i, val);
11805
+ });
11806
+ });
11807
+ }
11808
+
11809
+ // 入れ替えた結果に合わせてX座標位置を入れ替える
11810
+ g_workObj.stepX_df = structuredClone(g_workObj.stepX);
11811
+ _styleTrans.forEach((_group, _i) => {
11812
+ _group.forEach((_val, _j) => {
11813
+ g_workObj.stepX[_group[_j]] = g_workObj.stepX_df[_styleTransDf[_i][_j]];
11814
+ });
11815
+ });
11816
+ }
11817
+
11778
11818
  // StepArea(Default, Halfway以外)によるレイヤー移動
11779
11819
  // ずらした位置に表示するため、レイヤーを倍化して倍化した先に割り当てる
11780
11820
  const assignLayer = _func => {
@@ -11858,27 +11898,6 @@ const getArrowSettings = () => {
11858
11898
  g_workObj.backX = (g_workObj.nonDefaultSc && g_headerObj.playingLayout ? g_headerObj.scAreaWidth : 0);
11859
11899
  g_workObj.playingX = g_headerObj.playingX + g_workObj.backX;
11860
11900
 
11861
- // Swapping設定に応じたステップゾーンの入れ替え
11862
- if (g_stateObj.swapping.includes(`Mirror`)) {
11863
-
11864
- let _style = structuredClone(Object.values(g_workObj.shuffleGroupMap));
11865
- if (g_stateObj.swapping === `Mirror`) {
11866
- _style.map(_group => _group.reverse());
11867
-
11868
- } else if (g_stateObj.swapping === `X-Mirror`) {
11869
- // X-Mirrorの場合、グループの内側だけ入れ替える
11870
- _style.forEach((group, i) => g_settings.swapPattern.forEach(val => swapGroupNums(_style, group, i, val)));
11871
- }
11872
-
11873
- // 入れ替えた結果に合わせてX座標位置を入れ替える
11874
- g_workObj.stepX_df = structuredClone(g_workObj.stepX);
11875
- _style.forEach((_group, _i) => {
11876
- _group.forEach((_val, _j) => {
11877
- g_workObj.stepX[_group[_j]] = g_workObj.stepX_df[g_workObj.shuffleGroupMap[_i][_j]];
11878
- });
11879
- });
11880
- }
11881
-
11882
11901
  // FrzReturnの初期化
11883
11902
  g_workObj.frzReturnFlg = false;
11884
11903
 
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2026/03/06 (v44.5.7)
8
+ * Revised : 2026/03/15 (v44.5.10)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -4424,7 +4424,7 @@ const g_lang_msgObj = {
4424
4424
  scroll: `各レーンのスクロール方向をパターンに沿って設定します。\nReverse:ONでスクロール方向を反転します。`,
4425
4425
  shuffle: `譜面を左右反転したり、ランダムにします。\nランダムにした場合は別譜面扱いとなり、ハイスコアは保存されません。`,
4426
4426
  autoPlay: `オートプレイや一部キーを自動で打たせる設定を行います。\nオートプレイ時はハイスコアを保存しません。`,
4427
- gauge: `クリア条件を設定します。\n[Start] ゲージ初期値, [Border] クリア条件(ハイフン時は0),\n[Recovery] 回復量, [Damage] ダメージ量, [Accuracy] クリアに必要な正確率(オンマウスで許容ミス数表示)`,
4427
+ gauge: `クリア条件を設定します。\n[Start] ゲージ初期値, [Border] クリア条件(ハイフン時は0),\n[Recovery] 回復量, [Damage] ダメージ量, [Accuracy] クリアに必要な正確率、許容ミス数`,
4428
4428
  excessive: `空押し判定を行うか設定します。`,
4429
4429
  adjustment: `曲とのタイミングにズレを感じる場合、\n数値を変えることでフレーム単位のズレを直すことができます。\n外側のボタンは5f刻み、真ん中は1f刻み、内側は0.5f刻みで調整できます。`,
4430
4430
  fadein: `譜面を途中から再生します。\n途中から開始した場合はハイスコアを保存しません。`,
@@ -4517,7 +4517,7 @@ const g_lang_msgObj = {
4517
4517
  scroll: `Set the scroll direction for each lane according to the pattern.\nIf "Reverse:ON" sets, reverse the scroll direction.`,
4518
4518
  shuffle: `Flip the chart left and right or make it random.\nIf you make it random, it will be treated as other charts and the high score will not be saved.`,
4519
4519
  autoPlay: `Set to auto play and to hit some keys automatically.\nHigh score is not saved during auto play.`,
4520
- gauge: `Set the clear condition.\n[Start] initial value, [Border] borderline value (hyphen means zero),\n[Recovery] recovery amount, [Damage] damage amount,\n[Accuracy] accuracy required to clear (mouseover to see the number of allowed mistakes)`,
4520
+ gauge: `Set the clear condition.\n[Start] initial value, [Border] borderline value (hyphen means zero),\n[Recovery] recovery amount, [Damage] damage amount,\n[Accuracy] accuracy required to clear and the number of allowed mistakes`,
4521
4521
  excessive: `Set whether to use excessive miss judgment.`,
4522
4522
  adjustment: `If you feel that the timing is out of sync with the music, \nyou can correct the shift in frame units by changing the value.\nThe outer button can be adjusted in 5 frame increments, the middle in 1 frame increments, \nand the inner button in 0.5 frame increments.`,
4523
4523
  fadein: `Plays the chart from the middle.\nIf you start in the middle, the high score will not be saved.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "44.5.9",
3
+ "version": "44.5.11",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "./js/danoni_main.js",
6
6
  "scripts": {