mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00:00
Use better conditional for choosing which spinner type to use
Co-authored-by: Dan Balasescu <smoogipoo@smgi.me>
This commit is contained in:
parent
f03bad6513
commit
9e244be489
@ -104,9 +104,11 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
};
|
||||
|
||||
case OsuSkinComponents.SpinnerBody:
|
||||
if (Source.GetTexture("spinner-top") != null)
|
||||
bool hasBackground = Source.GetTexture("spinner-background") != null;
|
||||
|
||||
if (Source.GetTexture("spinner-top") != null && !hasBackground)
|
||||
return new LegacyNewStyleSpinner();
|
||||
else if (Source.GetTexture("spinner-background") != null)
|
||||
else if (hasBackground)
|
||||
return new LegacyOldStyleSpinner();
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user