mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 19:02:58 +08:00
Fix beat snap grid being lines not being corectly centered to time
This was pointed out as an issue in the osu!taiko editor, but actually affects all rulesets. Has now been fixed everywhere. --- Closes https://github.com/ppy/osu/issues/31548. osu!mania could arguable be consdiered "more correct" with the old display, but I don't think it's a huge deal either way (subjective at best).
This commit is contained in:
parent
2c5b438589
commit
46ff9d1aad
@ -185,9 +185,28 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||
{
|
||||
Origin = Anchor = direction.NewValue == ScrollingDirection.Up
|
||||
? Anchor.TopLeft
|
||||
: Anchor.BottomLeft;
|
||||
switch (direction.NewValue)
|
||||
{
|
||||
case ScrollingDirection.Up:
|
||||
Anchor = Anchor.TopLeft;
|
||||
Origin = Anchor.CentreLeft;
|
||||
break;
|
||||
|
||||
case ScrollingDirection.Down:
|
||||
Anchor = Anchor.BottomLeft;
|
||||
Origin = Anchor.CentreLeft;
|
||||
break;
|
||||
|
||||
case ScrollingDirection.Left:
|
||||
Anchor = Anchor.TopLeft;
|
||||
Origin = Anchor.TopCentre;
|
||||
break;
|
||||
|
||||
case ScrollingDirection.Right:
|
||||
Anchor = Anchor.TopRight;
|
||||
Origin = Anchor.TopCentre;
|
||||
break;
|
||||
}
|
||||
|
||||
bool isHorizontal = direction.NewValue == ScrollingDirection.Left || direction.NewValue == ScrollingDirection.Right;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user