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 @@ 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)

View File

@ -11,6 +11,7 @@ public enum OsuSkinConfiguration
SliderPathRadius,
AllowSliderBallTint,
CursorExpand,
CursorRotate
CursorRotate,
HitCircleOverlayAboveNumber
}
}