Start with largest grid size

This commit is contained in:
Bartłomiej Dach 2021-09-20 20:34:22 +02:00
parent fe21577f11
commit 0d7dac03f4
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 3 additions and 3 deletions

View File

@ -57,12 +57,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
{
AddStep("enable rectangular grid", () => InputManager.Key(Key.Y));
AddUntilStep("rectangular grid visible", () => this.ChildrenOfType<OsuRectangularPositionSnapGrid>().Any());
gridSizeIs(4);
gridSizeIs(32);
nextGridSizeIs(4);
nextGridSizeIs(8);
nextGridSizeIs(16);
nextGridSizeIs(32);
nextGridSizeIs(4);
}
private void nextGridSizeIs(int size)

View File

@ -15,7 +15,7 @@ namespace osu.Game.Rulesets.Osu.Edit
{
private static readonly int[] grid_sizes = { 4, 8, 16, 32 };
private int currentGridSizeIndex;
private int currentGridSizeIndex = grid_sizes.Length - 1;
public OsuRectangularPositionSnapGrid(int gridSize)
: base(OsuPlayfield.BASE_SIZE / 2)