1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

OsuColour can't be used in TestCases..?

This commit is contained in:
jorolf 2018-03-03 20:01:39 +01:00
parent 1cda58fe29
commit ba80cd5f34

View File

@ -7,8 +7,8 @@ using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Graphics;
using osu.Game.Overlays.Volume;
using OpenTK.Graphics;
namespace osu.Game.Tests.Visual
{
@ -17,10 +17,10 @@ namespace osu.Game.Tests.Visual
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(VolumeMeter), typeof(MuteButton) };
[BackgroundDependencyLoader]
private void load(AudioManager audio, OsuColour colours)
private void load(AudioManager audio)
{
VolumeMeter meter;
Add(meter = new VolumeMeter("MASTER", 125, colours.PinkDarker));
Add(meter = new VolumeMeter("MASTER", 125, Color4.Blue));
Add(new MuteButton
{
Margin = new MarginPadding { Top = 200 }