mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 18:47:27 +08:00
58fb0c042b
I'm not sure why this is required. Seems like something which was meant to exist to handle parallax, but that is already handled elsewhere now.
32 lines
831 B
C#
32 lines
831 B
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.Collections.Generic;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Screens;
|
|
|
|
namespace osu.Game.Screens
|
|
{
|
|
public class BackgroundScreenStack : ScreenStack
|
|
{
|
|
public BackgroundScreenStack()
|
|
: base(false)
|
|
{
|
|
RelativeSizeAxes = Axes.Both;
|
|
Anchor = Anchor.Centre;
|
|
Origin = Anchor.Centre;
|
|
}
|
|
|
|
public void Push(BackgroundScreen screen)
|
|
{
|
|
if (screen == null)
|
|
return;
|
|
|
|
if (EqualityComparer<BackgroundScreen>.Default.Equals((BackgroundScreen)CurrentScreen, screen))
|
|
return;
|
|
|
|
base.Push(screen);
|
|
}
|
|
}
|
|
}
|