mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Documentation for tests and changes
This commit is contained in:
parent
ad9dae975d
commit
0a60f6dacd
@ -1,10 +1,7 @@
|
||||
// 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;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Screens;
|
||||
@ -16,6 +13,9 @@ namespace osu.Game.Tests.Visual
|
||||
[TestFixture]
|
||||
public class TestCaseBackgroundScreenBeatmap : TestCasePlayer
|
||||
{
|
||||
/// <summary>
|
||||
/// Check if the fade container is properly being faded when screen dim is enabled.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void EnableUserDimTest()
|
||||
{
|
||||
@ -24,6 +24,9 @@ namespace osu.Game.Tests.Visual
|
||||
AddAssert("Check screen dim", () => ((DimAccessiblePlayer)Player).AssertDimState());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if the fade container is properly being reset when screen dim is disabled.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void DisableUserDimTest()
|
||||
{
|
||||
|
@ -41,6 +41,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
{
|
||||
// We need to update on dim here because player still needs to know if it needs to dim the storyboard
|
||||
base.OnEntering(last);
|
||||
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
|
||||
BlurLevel.ValueChanged += _ => UpdateBackgroundElements();
|
||||
|
Loading…
Reference in New Issue
Block a user