mirror of https://github.com/ppy/osu
fix hit marker skinnables
This commit is contained in:
parent
f9d9df30b2
commit
af13389a9e
|
@ -29,28 +29,6 @@ public OsuTrianglesSkinTransformer(ISkin skin)
|
|||
return new DefaultJudgementPieceSliderTickMiss(result);
|
||||
}
|
||||
|
||||
break;
|
||||
case OsuSkinComponentLookup osuComponent:
|
||||
switch (osuComponent.Component)
|
||||
{
|
||||
case OsuSkinComponents.HitMarkerLeft:
|
||||
if (GetTexture(@"hitmarker-left") != null)
|
||||
return new HitMarker(OsuAction.LeftButton);
|
||||
|
||||
return null;
|
||||
|
||||
case OsuSkinComponents.HitMarkerRight:
|
||||
if (GetTexture(@"hitmarker-right") != null)
|
||||
return new HitMarker(OsuAction.RightButton);
|
||||
|
||||
return null;
|
||||
|
||||
case OsuSkinComponents.AimMarker:
|
||||
if (GetTexture(@"aimmarker") != null)
|
||||
return new HitMarker();
|
||||
|
||||
return null;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
using osu.Framework.Graphics;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
using osu.Game.Skinning;
|
||||
using osu.Game.Rulesets.Osu.Skinning.Default;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
|
@ -167,6 +168,24 @@ public OsuLegacySkinTransformer(ISkin skin)
|
|||
return new LegacyApproachCircle();
|
||||
|
||||
return null;
|
||||
|
||||
case OsuSkinComponents.HitMarkerLeft:
|
||||
if (GetTexture(@"hitmarker-left") != null)
|
||||
return new HitMarker(OsuAction.LeftButton);
|
||||
|
||||
return null;
|
||||
|
||||
case OsuSkinComponents.HitMarkerRight:
|
||||
if (GetTexture(@"hitmarker-right") != null)
|
||||
return new HitMarker(OsuAction.RightButton);
|
||||
|
||||
return null;
|
||||
|
||||
case OsuSkinComponents.AimMarker:
|
||||
if (GetTexture(@"aimmarker") != null)
|
||||
return new HitMarker();
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue