1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-20 07:23:20 +08:00
osu-lazer/osu.Desktop.Tests/Visual/TestCaseCatcher.cs

36 lines
1.1 KiB
C#
Raw Normal View History

2017-08-08 06:32:23 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
2017-08-08 06:32:23 +08:00
using osu.Framework.Graphics;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Catch;
2017-08-07 14:09:31 +08:00
using osu.Game.Rulesets.Catch.UI;
using OpenTK;
namespace osu.Desktop.Tests.Visual
{
internal class TestCaseCatcher : OsuTestCase
{
[BackgroundDependencyLoader]
private void load(RulesetStore rulesets)
2017-08-07 14:09:31 +08:00
{
Children = new Drawable[]
{
new CatchInputManager(rulesets.GetRuleset(2))
2017-08-07 14:09:31 +08:00
{
RelativeSizeAxes = Axes.Both,
Child = new CatcherArea
{
RelativePositionAxes = Axes.Both,
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Size = new Vector2(1, 0.2f),
}
},
2017-08-07 14:09:31 +08:00
};
}
}
}