mirror of
https://github.com/ppy/osu
synced 2025-01-12 09:09:44 +00:00
fix rectangular and triangular grid tests
This commit is contained in:
parent
20e338b892
commit
8425c7226c
@ -52,12 +52,15 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
{
|
||||
RectangularPositionSnapGrid grid = null;
|
||||
|
||||
AddStep("create grid", () => Child = grid = new RectangularPositionSnapGrid()
|
||||
AddStep("create grid", () =>
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
StartPosition = position,
|
||||
Spacing = spacing,
|
||||
GridLineRotation = rotation
|
||||
Child = grid = new RectangularPositionSnapGrid
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
grid.StartPosition.Value = position;
|
||||
grid.Spacing.Value = spacing;
|
||||
grid.GridLineRotation.Value = rotation;
|
||||
});
|
||||
|
||||
AddStep("add snapping cursor", () => Add(new SnappingCursorContainer
|
||||
|
@ -52,11 +52,15 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
{
|
||||
TriangularPositionSnapGrid grid = null;
|
||||
|
||||
AddStep("create grid", () => Child = grid = new TriangularPositionSnapGrid(position)
|
||||
AddStep("create grid", () =>
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Spacing = spacing,
|
||||
GridLineRotation = rotation
|
||||
Child = grid = new TriangularPositionSnapGrid
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
grid.StartPosition.Value = position;
|
||||
grid.Spacing.Value = spacing;
|
||||
grid.GridLineRotation.Value = rotation;
|
||||
});
|
||||
|
||||
AddStep("add snapping cursor", () => Add(new SnappingCursorContainer
|
||||
|
Loading…
Reference in New Issue
Block a user