From 999af6cf37af3d5235f388c4247b5b37b469cb9b Mon Sep 17 00:00:00 2001 From: 0aubsq <0aubsq@gmail.com> Date: Wed, 30 Mar 2022 18:10:17 +0200 Subject: [PATCH] Another fix attempt --- .../Stages/05.SongSelect/CActSelect曲リスト.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/TJAPlayer3/Stages/05.SongSelect/CActSelect曲リスト.cs b/TJAPlayer3/Stages/05.SongSelect/CActSelect曲リスト.cs index ef1df60e..a9f317fa 100644 --- a/TJAPlayer3/Stages/05.SongSelect/CActSelect曲リスト.cs +++ b/TJAPlayer3/Stages/05.SongSelect/CActSelect曲リスト.cs @@ -273,13 +273,25 @@ namespace TJAPlayer3 if(r現在選択中の曲.list子リスト.Count != 1) { List list = TJAPlayer3.Songs管理.list曲ルート; + + // Fill list songs list.InsertRange(list.IndexOf(this.r現在選択中の曲) + 1, this.r現在選択中の曲.list子リスト); - int n回数 = Math.Min(list.Count() - 1, this.r現在選択中の曲.Openindex); + + // Previous index + int n回数 = this.r現在選択中の曲.Openindex; + if (this.r現在選択中の曲.Openindex >= list.Count()) + n回数 = 0; + + for (int index = 0; index <= n回数; index++) this.r現在選択中の曲 = this.r次の曲(this.r現在選択中の曲); + + // Remove main box list.RemoveAt(list.IndexOf(this.r現在選択中の曲.r親ノード)); + this.t現在選択中の曲を元に曲バーを再構成する(); this.t選択曲が変更された(false); + TJAPlayer3.stage選曲.t選択曲変更通知(); // #27648 項目数変更を反映させる this.b選択曲が変更された = true; // TJAPlayer3.Skin.bgm選曲画面.t停止する();