mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Merge pull request #14865 from bdach/fix-legacy-repeat-arrow-fallback
Fix repeat arrow texture not falling back to default legacy skin
This commit is contained in:
commit
1567faa7b2
@ -13,26 +13,20 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
|||||||
{
|
{
|
||||||
public class LegacyReverseArrow : CompositeDrawable
|
public class LegacyReverseArrow : CompositeDrawable
|
||||||
{
|
{
|
||||||
private ISkin skin { get; }
|
|
||||||
|
|
||||||
[Resolved(canBeNull: true)]
|
[Resolved(canBeNull: true)]
|
||||||
private DrawableHitObject drawableHitObject { get; set; }
|
private DrawableHitObject drawableHitObject { get; set; }
|
||||||
|
|
||||||
private Drawable proxy;
|
private Drawable proxy;
|
||||||
|
|
||||||
public LegacyReverseArrow(ISkin skin)
|
|
||||||
{
|
|
||||||
this.skin = skin;
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(ISkinSource skinSource)
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
|
|
||||||
string lookupName = new OsuSkinComponent(OsuSkinComponents.ReverseArrow).LookupName;
|
string lookupName = new OsuSkinComponent(OsuSkinComponents.ReverseArrow).LookupName;
|
||||||
|
|
||||||
InternalChild = skin.GetAnimation(lookupName, true, true) ?? Empty();
|
var skin = skinSource.FindProvider(s => s.GetTexture(lookupName) != null);
|
||||||
|
InternalChild = skin?.GetAnimation(lookupName, true, true) ?? Empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
|
@ -73,7 +73,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
|||||||
|
|
||||||
case OsuSkinComponents.ReverseArrow:
|
case OsuSkinComponents.ReverseArrow:
|
||||||
if (hasHitCircle.Value)
|
if (hasHitCircle.Value)
|
||||||
return new LegacyReverseArrow(this);
|
return new LegacyReverseArrow();
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user