perf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user