mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
7168629b2a
Also fixes catcher size being relative to aspect ratio.
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using NUnit.Framework;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Rulesets.Catch.UI;
|
|
using osu.Game.Tests.Visual;
|
|
using OpenTK;
|
|
|
|
namespace osu.Game.Rulesets.Catch.Tests
|
|
{
|
|
[TestFixture]
|
|
internal class TestCaseCatcher : OsuTestCase
|
|
{
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
{
|
|
typeof(Catcher),
|
|
};
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(RulesetStore rulesets)
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
new CatchInputManager(rulesets.GetRuleset(2))
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = new Catcher
|
|
{
|
|
RelativePositionAxes = Axes.Both,
|
|
RelativeSizeAxes = Axes.Both,
|
|
Anchor = Anchor.BottomLeft,
|
|
Origin = Anchor.BottomLeft,
|
|
Size = new Vector2(1, 0.2f),
|
|
}
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|