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:
parent
b2b9f2a036
commit
414b80d44e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user