1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:53:51 +08:00

Change flashlight depth in a more standard way

This commit is contained in:
Dean Herbert 2023-05-02 17:00:54 +09:00
parent b2b9f2a036
commit 414b80d44e

View File

@ -82,12 +82,12 @@ namespace osu.Game.Rulesets.Mods
flashlight.RelativeSizeAxes = Axes.Both;
flashlight.Colour = Color4.Black;
// Flashlight mods should always draw above any other mod adding overlays.
flashlight.Depth = float.MinValue;
flashlight.Combo.BindTo(Combo);
drawableRuleset.Overlays.Add(flashlight);
// Stop flashlight from being drawn underneath other mods that generate HitObjects.
drawableRuleset.Overlays.ChangeChildDepth(flashlight, float.MinValue);
}
protected abstract Flashlight CreateFlashlight();