mirror of
https://github.com/ppy/osu.git
synced 2025-03-25 08:47:20 +08:00
Make it so visual tests only load the osu ruleset
This commit is contained in:
parent
1d80674fbd
commit
4e07aba548
osu.Game.Tests/Visual
osu.Game/Screens/Backgrounds
@ -4,6 +4,7 @@
|
||||
using NUnit.Framework;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
using osu.Game.Screens;
|
||||
using osu.Game.Screens.Backgrounds;
|
||||
using osu.Game.Screens.Play;
|
||||
@ -13,6 +14,10 @@ namespace osu.Game.Tests.Visual
|
||||
[TestFixture]
|
||||
public class TestCaseBackgroundScreenBeatmap : TestCasePlayer
|
||||
{
|
||||
public TestCaseBackgroundScreenBeatmap() : base(new OsuRuleset())
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if the fade container is properly being faded when screen dim is enabled.
|
||||
/// </summary>
|
||||
|
@ -56,7 +56,8 @@ namespace osu.Game.Screens.Backgrounds
|
||||
FadeContainer.Child = Background = b;
|
||||
Background.BlurSigma = BlurTarget;
|
||||
}));
|
||||
AddInternal(FadeContainer);
|
||||
InternalChild = FadeContainer;
|
||||
updateBackgroundDim();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user