fix hit marker skinnables

This commit is contained in:
Sheepposu 2024-02-22 07:31:56 -05:00
parent f9d9df30b2
commit af13389a9e
2 changed files with 19 additions and 22 deletions

View File

@ -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;
}

View File

@ -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;
}
}