Split drawing and business logic of ChatOverlay

This commit is contained in:
miterosan
2018-04-08 18:21:48 +02:00
parent 525e50e8dd
commit a70b329155
11 changed files with 431 additions and 388 deletions

View File

@ -15,6 +15,7 @@ using System.Linq;
using NUnit.Framework;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Online.API;
using osu.Game.Overlays;
namespace osu.Game.Tests.Visual
@ -50,17 +51,14 @@ namespace osu.Game.Tests.Visual
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
private void load(OsuColour colours, IAPIProvider api)
{
linkColour = colours.Blue;
dependencies.Cache(new ChatOverlay
{
AvailableChannels =
{
new ChannelChat { Name = "#english" },
new ChannelChat { Name = "#japanese" }
}
});
dependencies.Cache(new ChatOverlay());
var chatManager = new ChatManager(Scheduler);
api.Register(chatManager);
dependencies.Cache(chatManager);
testLinksGeneral();
testEcho();