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
|
|
|
|
|
|
2017-08-09 12:04:11 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-08-08 06:32:23 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-08-09 12:04:11 +08:00
|
|
|
|
using osu.Game.Rulesets;
|
2017-08-09 10:50:34 +08:00
|
|
|
|
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
|
|
|
|
|
{
|
2017-08-09 12:04:11 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(RulesetStore rulesets)
|
2017-08-07 14:09:31 +08:00
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-08-09 12:04:11 +08:00
|
|
|
|
new CatchInputManager(rulesets.GetRuleset(2))
|
2017-08-07 14:09:31 +08:00
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2017-08-09 10:50:34 +08:00
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|