mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
let retrievals outside mania skin components use extension
https://github.com/ppy/osu/pull/9264#discussion_r439730321
This commit is contained in:
parent
bd7b7b5017
commit
ffae73a966
@ -71,8 +71,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
|||||||
{
|
{
|
||||||
isLegacySkin = new Lazy<bool>(() => source.GetConfig<LegacySkinConfiguration.LegacySetting, decimal>(LegacySkinConfiguration.LegacySetting.Version) != null);
|
isLegacySkin = new Lazy<bool>(() => source.GetConfig<LegacySkinConfiguration.LegacySetting, decimal>(LegacySkinConfiguration.LegacySetting.Version) != null);
|
||||||
hasKeyTexture = new Lazy<bool>(() => source.GetAnimation(
|
hasKeyTexture = new Lazy<bool>(() => source.GetAnimation(
|
||||||
GetConfig<ManiaSkinConfigurationLookup, string>(
|
this.GetManiaSkinConfig<string>(LegacyManiaSkinConfigurationLookups.KeyImage)?.Value
|
||||||
new ManiaSkinConfigurationLookup(LegacyManiaSkinConfigurationLookups.KeyImage, 0))?.Value
|
|
||||||
?? "mania-key1", true, true) != null);
|
?? "mania-key1", true, true) != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,9 +127,8 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
|||||||
|
|
||||||
private Drawable getResult(HitResult result)
|
private Drawable getResult(HitResult result)
|
||||||
{
|
{
|
||||||
string filename = GetConfig<ManiaSkinConfigurationLookup, string>(
|
string filename = this.GetManiaSkinConfig<string>(hitresult_mapping[result])?.Value
|
||||||
new ManiaSkinConfigurationLookup(hitresult_mapping[result])
|
?? default_hitresult_skin_filenames[result];
|
||||||
)?.Value ?? default_hitresult_skin_filenames[result];
|
|
||||||
|
|
||||||
return this.GetAnimation(filename, true, true);
|
return this.GetAnimation(filename, true, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user