This commit is contained in:
SoulliesOfficial
2025-07-21 05:42:20 -04:00
parent e483cfe502
commit bae0bfbc20
533 changed files with 172709 additions and 125965 deletions

View File

@@ -14,7 +14,7 @@ namespace Ichni
public ChapterSelectionUIPage chapterSelectionUIPage;
public List<ChapterSelectionUnit> chapters;
public string currentChapter;
public ChapterSelectionUnit currentChapter;
}
public partial class ChapterSelectionManager
@@ -23,5 +23,10 @@ namespace Ichni
{
instance = this;
}
public ChapterSelectionUnit GetChapterByName(string chapterName)
{
return chapters.Find(chapter => chapter.chapterName == chapterName);
}
}
}

View File

@@ -29,13 +29,13 @@ namespace Ichni.Menu
{
if(song.difficultyDataList.All(d => d.difficultyName != "Easy"))
{
song.difficultyDataList.Add(new DifficultyData("Easy","", 0, "",
song.difficultyDataList.Add(new DifficultyData(0, "Easy","", 0, "",
new Color(0f, 0.7f, 0.2f, 1f)));
}
if (song.difficultyDataList.All(d => d.difficultyName != "Hard"))
{
song.difficultyDataList.Add(new DifficultyData("Hard", "", 0, "",
song.difficultyDataList.Add(new DifficultyData(1,"Hard", "", 0, "",
new Color(1f, 0.2f, 0.2f, 1f)));
}
}
@@ -58,20 +58,14 @@ namespace Ichni.Menu
[FoldoutGroup("$songName")]
public string displaySongName;
[FormerlySerializedAs("author")] [FoldoutGroup("$songName")]
public string composer;
[FoldoutGroup("$songName")]
public bool isNewSong;
public string composer;
[FoldoutGroup("$songName")]
public Switch songSwitch;
[FoldoutGroup("$songName")]
public Sprite albumIconCover;
[FoldoutGroup("$songName")]
public Sprite albumIllustrationCover;
public Sprite illustration;
[FoldoutGroup("$songName")]
public string illustratorName;
@@ -86,19 +80,26 @@ namespace Ichni.Menu
[Serializable]
public class DifficultyData
{
public int difficultyIndex;
public string difficultyName;
public string displayDifficultyName;
public int difficultyValue;
public string designerName;
public string charterName;
public Color color;
public DifficultyData(string difficultyName, string displayDifficultyName, int difficultyValue, string designerName, Color color)
public DifficultyData(int difficultyIndex, string difficultyName, string displayDifficultyName, int difficultyValue, string charterName, Color color)
{
this.difficultyIndex = difficultyIndex;
this.difficultyName = difficultyName;
this.displayDifficultyName = displayDifficultyName;
this.designerName = designerName;
this.charterName = charterName;
this.difficultyValue = difficultyValue;
this.color = color;
}
public string GetDifficultyName()
{
return string.IsNullOrEmpty(displayDifficultyName) ? difficultyName : displayDifficultyName;
}
}
}