2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Cursor;
|
|
|
|
|
using osu.Game.Graphics.Cursor;
|
|
|
|
|
using osu.Game.Rulesets.Osu.UI.Cursor;
|
2019-03-26 12:39:19 +08:00
|
|
|
|
using osu.Game.Rulesets.UI;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
using osu.Game.Tests.Visual;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2019-05-15 03:37:25 +08:00
|
|
|
|
public class TestSceneGameplayCursor : OsuTestScene, IProvideCursor
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
2019-03-05 17:06:24 +08:00
|
|
|
|
private GameplayCursorContainer cursorContainer;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-02-28 12:31:40 +08:00
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(CursorTrail) };
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-03-05 17:06:24 +08:00
|
|
|
|
public CursorContainer Cursor => cursorContainer;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
public bool ProvidingUserCursor => true;
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
2019-03-26 12:39:19 +08:00
|
|
|
|
Add(cursorContainer = new OsuCursorContainer { RelativeSizeAxes = Axes.Both });
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|