mirror of https://github.com/ppy/osu
parent
d8efcc0793
commit
3d99b89633
|
@ -12,6 +12,8 @@ namespace osu.Game.Tests.Visual
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public abstract class LegacySkinPlayerTestScene : PlayerTestScene
|
public abstract class LegacySkinPlayerTestScene : PlayerTestScene
|
||||||
{
|
{
|
||||||
|
protected LegacySkin LegacySkin { get; private set; }
|
||||||
|
|
||||||
private ISkinSource legacySkinSource;
|
private ISkinSource legacySkinSource;
|
||||||
|
|
||||||
protected override TestPlayer CreatePlayer(Ruleset ruleset) => new SkinProvidingPlayer(legacySkinSource);
|
protected override TestPlayer CreatePlayer(Ruleset ruleset) => new SkinProvidingPlayer(legacySkinSource);
|
||||||
|
@ -19,8 +21,8 @@ public abstract class LegacySkinPlayerTestScene : PlayerTestScene
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuGameBase game, SkinManager skins)
|
private void load(OsuGameBase game, SkinManager skins)
|
||||||
{
|
{
|
||||||
var legacySkin = new DefaultLegacySkin(new NamespacedResourceStore<byte[]>(game.Resources, "Skins/Legacy"), skins);
|
LegacySkin = new DefaultLegacySkin(new NamespacedResourceStore<byte[]>(game.Resources, "Skins/Legacy"), skins);
|
||||||
legacySkinSource = new SkinProvidingContainer(legacySkin);
|
legacySkinSource = new SkinProvidingContainer(LegacySkin);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SkinProvidingPlayer : TestPlayer
|
public class SkinProvidingPlayer : TestPlayer
|
||||||
|
|
Loading…
Reference in New Issue