1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42: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.Audio;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Testing; using osu.Framework.Testing;
using osu.Game.Graphics;
using osu.Game.Overlays.Volume; using osu.Game.Overlays.Volume;
using OpenTK.Graphics;
namespace osu.Game.Tests.Visual namespace osu.Game.Tests.Visual
{ {
@ -17,10 +17,10 @@ namespace osu.Game.Tests.Visual
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(VolumeMeter), typeof(MuteButton) }; public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(VolumeMeter), typeof(MuteButton) };
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(AudioManager audio, OsuColour colours) private void load(AudioManager audio)
{ {
VolumeMeter meter; VolumeMeter meter;
Add(meter = new VolumeMeter("MASTER", 125, colours.PinkDarker)); Add(meter = new VolumeMeter("MASTER", 125, Color4.Blue));
Add(new MuteButton Add(new MuteButton
{ {
Margin = new MarginPadding { Top = 200 } Margin = new MarginPadding { Top = 200 }