mirror of https://github.com/ppy/osu
Remove background scale altogether
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.
This commit is contained in:
parent
4f3a5fbad5
commit
58fb0c042b
|
@ -4,25 +4,19 @@
|
|||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Screens;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Screens
|
||||
{
|
||||
public class BackgroundScreenStack : ScreenStack
|
||||
{
|
||||
public const float BACKGROUND_SCALE = 1.06f;
|
||||
|
||||
public BackgroundScreenStack()
|
||||
: base(false)
|
||||
{
|
||||
Scale = new Vector2(BACKGROUND_SCALE);
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Anchor = Anchor.Centre;
|
||||
Origin = Anchor.Centre;
|
||||
}
|
||||
|
||||
//public float ParallaxAmount { set => parallax.ParallaxAmount = ParallaxContainer.DEFAULT_PARALLAX_AMOUNT * value; }
|
||||
|
||||
public void Push(BackgroundScreen screen)
|
||||
{
|
||||
if (screen == null)
|
||||
|
|
|
@ -77,14 +77,6 @@ private void switchBackground(PlaylistItemBackground newBackground)
|
|||
AddInternal(background = newBackground);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
// This is a static screen, so override the scale set in base.Update(), but also the scale set by the screen stack.
|
||||
Scale = new Vector2(1f / BackgroundScreenStack.BACKGROUND_SCALE);
|
||||
}
|
||||
|
||||
public override void OnSuspending(IScreen next)
|
||||
{
|
||||
base.OnSuspending(next);
|
||||
|
|
Loading…
Reference in New Issue