mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 14:22:55 +08:00
Fix Flashlight not appearing on top of bubbles from Bubbles mod
Inadvertently regressed in 44d0dc6113
.
This commit is contained in:
parent
fd887b24fa
commit
b78ef81bf1
@ -83,8 +83,6 @@ 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);
|
||||||
flashlight.GetPlayfieldScale = () => drawableRuleset.Playfield.Scale;
|
flashlight.GetPlayfieldScale = () => drawableRuleset.Playfield.Scale;
|
||||||
@ -95,6 +93,9 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
// workaround for 1px gaps on the edges of the playfield which would sometimes show with "gameplay" screen scaling active.
|
// workaround for 1px gaps on the edges of the playfield which would sometimes show with "gameplay" screen scaling active.
|
||||||
Padding = new MarginPadding(-1),
|
Padding = new MarginPadding(-1),
|
||||||
Child = flashlight,
|
Child = flashlight,
|
||||||
|
// Flashlight mods should always draw above any other mod adding overlays.
|
||||||
|
// NegativeInfinity is not used to allow one more thing drawn on top (used in replay analysis overlay in osu!).
|
||||||
|
Depth = float.MinValue,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user