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;
}
}
}

View File

@@ -1,7 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using AK.Wwise;
using Ichni.Menu;
using UnityEngine;
using UnityEngine.Serialization;
namespace Ichni
{
@@ -10,20 +12,13 @@ namespace Ichni
public static InformationTransistor instance;
public bool isReturnedFromGame;
public string chapterName;
public string songName;
public string composerName;
public string illustratorName;
public string chartDesignerName;
public string difficultyName;
public Color difficultyColor;
public Sprite illustration;
public ChapterSelectionUnit chapter;
public SongItemData song;
public DifficultyData difficulty;
public Switch chapterSwitch;
public Switch musicSwitch;
public Switch songSwitch;
private void Awake()
{
@@ -39,20 +34,14 @@ namespace Ichni
}
}
public void SetInformation(string chapterName, string songName, string composerName,
string difficultyName, string illustratorName, string chartDesignerName, Color difficultyColor,
Sprite illustration, Switch chapter, Switch music)
public void SetInformation(ChapterSelectionUnit chapter,
SongItemData song, DifficultyData difficulty)
{
this.chapterName = chapterName;
this.songName = songName;
this.composerName = composerName;
this.difficultyName = difficultyName;
this.difficultyColor = difficultyColor;
this.illustration = illustration;
this.illustratorName = illustratorName;
this.chartDesignerName = chartDesignerName;
this.chapterSwitch = chapter;
this.musicSwitch = music;
this.chapter = chapter;
this.song = song;
this.difficulty = difficulty;
this.chapterSwitch = chapter.chapterSwitch;
this.songSwitch = song.songSwitch;
}
}
}