mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Start with largest grid size
This commit is contained in:
parent
fe21577f11
commit
0d7dac03f4
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user