mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:12:57 +08:00
Let LegacyBeatmapSkinColourTest
inherit from TestPlayer
instead
This commit is contained in:
parent
51ff59242d
commit
fda6d8685c
@ -10,7 +10,6 @@ using osu.Framework.Bindables;
|
|||||||
using osu.Framework.IO.Stores;
|
using osu.Framework.IO.Stores;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Screens.Play;
|
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
using osu.Game.Tests.Visual;
|
using osu.Game.Tests.Visual;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
@ -66,16 +65,12 @@ namespace osu.Game.Tests.Beatmaps
|
|||||||
|
|
||||||
protected virtual ExposedPlayer CreateTestPlayer(bool userHasCustomColours) => new ExposedPlayer(userHasCustomColours);
|
protected virtual ExposedPlayer CreateTestPlayer(bool userHasCustomColours) => new ExposedPlayer(userHasCustomColours);
|
||||||
|
|
||||||
protected class ExposedPlayer : Player
|
protected class ExposedPlayer : TestPlayer
|
||||||
{
|
{
|
||||||
protected readonly bool UserHasCustomColours;
|
protected readonly bool UserHasCustomColours;
|
||||||
|
|
||||||
public ExposedPlayer(bool userHasCustomColours)
|
public ExposedPlayer(bool userHasCustomColours)
|
||||||
: base(new PlayerConfiguration
|
: base(false, false)
|
||||||
{
|
|
||||||
AllowPause = false,
|
|
||||||
ShowResults = false,
|
|
||||||
})
|
|
||||||
{
|
{
|
||||||
UserHasCustomColours = userHasCustomColours;
|
UserHasCustomColours = userHasCustomColours;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user