mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
23 lines
710 B
C#
23 lines
710 B
C#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Graphics.Background;
|
|
|
|
namespace osu.Game.Screens.Backgrounds
|
|
{
|
|
public class BackgroundModeCustom : BackgroundMode
|
|
{
|
|
private readonly string textureName;
|
|
|
|
public BackgroundModeCustom(string textureName)
|
|
{
|
|
this.textureName = textureName;
|
|
Add(new Background(textureName));
|
|
}
|
|
|
|
public override bool Equals(BackgroundMode other)
|
|
{
|
|
return base.Equals(other) && textureName == ((BackgroundModeCustom)other).textureName;
|
|
}
|
|
}
|
|
} |