mirror of https://github.com/ppy/osu
Add support for HitCircleOverlayAboveNumber legacy skin property
This commit is contained in:
parent
6907522cd7
commit
f96229c572
|
@ -80,6 +80,11 @@ Texture getTextureWithFallback(string 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)
|
||||
|
|
|
@ -11,6 +11,7 @@ public enum OsuSkinConfiguration
|
|||
SliderPathRadius,
|
||||
AllowSliderBallTint,
|
||||
CursorExpand,
|
||||
CursorRotate
|
||||
CursorRotate,
|
||||
HitCircleOverlayAboveNumber
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue