Set actions for retry/quit, moved setting paused to PopIn and PopOut, added null propogation for the sound samples for PauseButton(sometimes in the visual tests the audio doesn't load for whatever reason), added a gradient to the background of the PauseOverlay visual test(same as the one in the menu button system test), wired up the retry and quit actions in Player, made the quit action quit the map, retry still does nothing

This commit is contained in:
DrabWeb
2017-01-27 06:19:52 -04:00
parent dedd6a4bcf
commit f35974021a
4 changed files with 37 additions and 18 deletions

View File

@ -1,12 +1,11 @@
using System;
using osu.Framework.GameModes.Testing;
using OpenTK.Graphics;
using osu.Framework.Graphics;
using osu.Game.Graphics.UserInterface;
using OpenTK.Input;
using osu.Game.Overlays.Pause;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Colour;
using osu.Framework.GameModes.Testing;
namespace osu.Desktop.VisualTests.Tests
{
class TestCasePauseOverlay : TestCase
@ -21,7 +20,13 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
Children = new[] { pauseOverlay = new PauseOverlay() };
Add(new Box
{
ColourInfo = ColourInfo.GradientVertical(Color4.Gray, Color4.WhiteSmoke),
RelativeSizeAxes = Framework.Graphics.Axes.Both,
});
Add(pauseOverlay = new PauseOverlay());
pauseOverlay.ToggleVisibility();
}
}