mirror of
https://github.com/osukey/osukey.git
synced 2025-06-03 20:07:18 +09: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…
x
Reference in New Issue
Block a user