mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Move BackgroundModes to their own files.
This commit is contained in:
@ -8,7 +8,6 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.GameModes;
|
||||
using osu.Framework.Graphics.Transformations;
|
||||
using osu.Game.Graphics.Background;
|
||||
using OpenTK;
|
||||
|
||||
namespace osu.Game.GameModes
|
||||
@ -61,35 +60,4 @@ namespace osu.Game.GameModes
|
||||
base.OnResuming(last);
|
||||
}
|
||||
}
|
||||
|
||||
public class BackgroundModeDefault : BackgroundMode
|
||||
{
|
||||
public override void Load()
|
||||
{
|
||||
base.Load();
|
||||
|
||||
Add(new Background());
|
||||
}
|
||||
}
|
||||
|
||||
public class BackgroundModeCustom : BackgroundMode
|
||||
{
|
||||
private readonly string textureName;
|
||||
|
||||
public BackgroundModeCustom(string textureName)
|
||||
{
|
||||
this.textureName = textureName;
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
base.Load();
|
||||
Add(new Background(textureName));
|
||||
}
|
||||
|
||||
public override bool Equals(BackgroundMode other)
|
||||
{
|
||||
return base.Equals(other) && textureName == ((BackgroundModeCustom)other).textureName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user