mirror of
https://github.com/ppy/osu
synced 2024-12-27 09:23:15 +00:00
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
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 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;
|
|
using osu.Game.Rulesets.UI;
|
|
using osu.Game.Tests.Visual;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests
|
|
{
|
|
[TestFixture]
|
|
public class TestSceneGameplayCursor : OsuTestScene, IProvideCursor
|
|
{
|
|
private GameplayCursorContainer cursorContainer;
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(CursorTrail) };
|
|
|
|
public CursorContainer Cursor => cursorContainer;
|
|
|
|
public bool ProvidingUserCursor => true;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
Add(cursorContainer = new OsuCursorContainer { RelativeSizeAxes = Axes.Both });
|
|
}
|
|
}
|
|
}
|