mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 14:23:14 +08:00
fix hit marker skinnables
This commit is contained in:
parent
f9d9df30b2
commit
af13389a9e
@ -29,28 +29,6 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
|
|||||||
return new DefaultJudgementPieceSliderTickMiss(result);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ using osu.Framework.Bindables;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
|
using osu.Game.Rulesets.Osu.Skinning.Default;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||||
@ -167,6 +168,24 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
|||||||
return new LegacyApproachCircle();
|
return new LegacyApproachCircle();
|
||||||
|
|
||||||
return null;
|
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
Block a user