mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:02:54 +08:00
Reflect nested objects vertically in the playfield correctly
This commit is contained in:
parent
2fba6cbe76
commit
1776485b93
@ -133,7 +133,7 @@ namespace osu.Game.Rulesets.Osu.Utils
|
||||
if (osuObject is not Slider slider)
|
||||
return;
|
||||
|
||||
void flipNestedObject(OsuHitObject nested) => nested.Position = new Vector2(nested.X, slider.Y - (nested.Y - slider.Y));
|
||||
void flipNestedObject(OsuHitObject nested) => nested.Position = new Vector2(nested.Position.X, OsuPlayfield.BASE_SIZE.Y - nested.Position.Y);
|
||||
static void flipControlPoint(PathControlPoint point) => point.Position = new Vector2(point.Position.X, -point.Position.Y);
|
||||
|
||||
modifySlider(slider, flipNestedObject, flipControlPoint);
|
||||
|
Loading…
Reference in New Issue
Block a user