Change fail effect to be less distracting

This commit is contained in:
Dean Herbert
2020-04-09 14:33:11 +09:00
parent 4976f80b71
commit 947745d87e
2 changed files with 34 additions and 11 deletions

View File

@ -1,11 +1,8 @@
// 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.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Testing;
using osu.Game.Configuration;
using osu.Game.Screens.Play.HUD;
@ -40,7 +37,7 @@ namespace osu.Game.Tests.Visual.Gameplay
public void TestLayerFading()
{
AddSliderStep("current health", 0.0, 1.0, 1.0, val => layer.Current.Value = val);
var box = layer.ChildrenOfType<Box>().First();
var box = layer.Child;
AddStep("set health to 0.10", () => layer.Current.Value = 0.10);
AddWaitStep("wait for fade to finish", 5);