mirror of
https://github.com/ppy/osu
synced 2025-02-20 20:47:09 +00: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.RelativeSizeAxes = Axes.Both;
|
||||||
flashlight.Colour = Color4.Black;
|
flashlight.Colour = Color4.Black;
|
||||||
|
// Flashlight mods should always draw above any other mod adding overlays.
|
||||||
|
flashlight.Depth = float.MinValue;
|
||||||
|
|
||||||
flashlight.Combo.BindTo(Combo);
|
flashlight.Combo.BindTo(Combo);
|
||||||
|
|
||||||
drawableRuleset.Overlays.Add(flashlight);
|
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();
|
protected abstract Flashlight CreateFlashlight();
|
||||||
|
Loading…
Reference in New Issue
Block a user