mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Read UseSkinSprites when decoding storyboards
This commit is contained in:
@ -48,6 +48,10 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
switch (section)
|
||||
{
|
||||
case Section.General:
|
||||
handleGeneral(storyboard, line);
|
||||
return;
|
||||
|
||||
case Section.Events:
|
||||
handleEvents(line);
|
||||
return;
|
||||
@ -60,6 +64,18 @@ namespace osu.Game.Beatmaps.Formats
|
||||
base.ParseLine(storyboard, section, line);
|
||||
}
|
||||
|
||||
private void handleGeneral(Storyboard storyboard, string line)
|
||||
{
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
switch (pair.Key)
|
||||
{
|
||||
case "UseSkinSprites":
|
||||
storyboard.UseSkinSprites = pair.Value == "1";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void handleEvents(string line)
|
||||
{
|
||||
var depth = 0;
|
||||
|
Reference in New Issue
Block a user