1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 02:27:25 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCasePositionAxes.cs
2019-04-03 19:57:22 +09:00

34 lines
928 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Testing;
using osuTK;
namespace osu.Game.Tests.Visual
{
public class TestCasePositionAxes : OsuTestCase
{
private Box box;
public TestCasePositionAxes()
{
Add(new Container()
{
Size = new Vector2(1),
Child = box = new Box
{
Size = new Vector2(25),
RelativePositionAxes = Axes.None,
Position = new Vector2(250)
}
});
AddStep("blank", () => { });
AddStep("change axes", () => box.RelativePositionAxes = Axes.Both);
}
}
}