mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 05:39:57 +08:00
use GetAnimation for checking
This commit is contained in:
@@ -35,10 +35,10 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
||||
private void sourceChanged()
|
||||
{
|
||||
isLegacySkin = new Lazy<bool>(() => source.GetConfig<LegacySkinConfiguration.LegacySetting, decimal>(LegacySkinConfiguration.LegacySetting.Version) != null);
|
||||
hasKeyTexture = new Lazy<bool>(() => source.GetTexture(
|
||||
hasKeyTexture = new Lazy<bool>(() => source.GetAnimation(
|
||||
source.GetConfig<LegacyManiaSkinConfigurationLookup, string>(
|
||||
new LegacyManiaSkinConfigurationLookup(4, LegacyManiaSkinConfigurationLookups.KeyImage, 0))?.Value
|
||||
?? $"mania-key1") != null);
|
||||
?? $"mania-key1", true, true) != null);
|
||||
}
|
||||
|
||||
public Drawable GetDrawableComponent(ISkinComponent component)
|
||||
|
||||
Reference in New Issue
Block a user