1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 19:52:55 +08:00

Merge pull request #8562 from mcendu/mania-fallback-to-head

Allow hold note tail to fallback to normal note image
This commit is contained in:
Dan Balasescu 2020-04-02 16:37:45 +09:00 committed by GitHub
commit 7c428011a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
{
protected override Texture GetTexture(ISkinSource skin)
{
// TODO: Should fallback to the head from default legacy skin instead of note.
return GetTextureFromLookup(skin, LegacyManiaSkinConfigurationLookups.HoldNoteHeadImage)
?? GetTextureFromLookup(skin, LegacyManiaSkinConfigurationLookups.NoteImage);
}

View File

@ -20,8 +20,10 @@ namespace osu.Game.Rulesets.Mania.Skinning
protected override Texture GetTexture(ISkinSource skin)
{
// TODO: Should fallback to the head from default legacy skin instead of note.
return GetTextureFromLookup(skin, LegacyManiaSkinConfigurationLookups.HoldNoteTailImage)
?? GetTextureFromLookup(skin, LegacyManiaSkinConfigurationLookups.HoldNoteHeadImage);
?? GetTextureFromLookup(skin, LegacyManiaSkinConfigurationLookups.HoldNoteHeadImage)
?? GetTextureFromLookup(skin, LegacyManiaSkinConfigurationLookups.NoteImage);
}
}
}