1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-02 03:22:55 +08:00

Add support for HitCircleOverlayAboveNumber legacy skin property

This commit is contained in:
Andrei Zavatski 2020-03-30 13:21:22 +03:00
parent 6907522cd7
commit f96229c572
2 changed files with 7 additions and 1 deletions

View File

@ -80,6 +80,11 @@ namespace osu.Game.Rulesets.Osu.Skinning
return tex ?? skin.GetTexture($"hitcircle{name}"); return tex ?? skin.GetTexture($"hitcircle{name}");
} }
bool overlayAboveNumber = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value ?? true;
if (!overlayAboveNumber)
ChangeInternalChildDepth(hitCircleText, -float.MaxValue);
} }
private void updateState(ValueChangedEvent<ArmedState> state) private void updateState(ValueChangedEvent<ArmedState> state)

View File

@ -11,6 +11,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
SliderPathRadius, SliderPathRadius,
AllowSliderBallTint, AllowSliderBallTint,
CursorExpand, CursorExpand,
CursorRotate CursorRotate,
HitCircleOverlayAboveNumber
} }
} }