Move ChannelManager to OsuGame

There's no reason for it to exist at OsuGameBase
This commit is contained in:
Dean Herbert
2018-09-14 12:06:04 +09:00
parent be1365fb18
commit 3c8c7a0459
4 changed files with 29 additions and 20 deletions

View File

@ -4,7 +4,10 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.Chat;
using osu.Game.Overlays;
using osu.Game.Overlays.Chat;
using osu.Game.Overlays.Chat.Tabs;
@ -26,12 +29,17 @@ namespace osu.Game.Tests.Visual
typeof(TabCloseButton)
};
public TestCaseChatDisplay()
[Cached]
private readonly ChannelManager channelManager = new ChannelManager();
[BackgroundDependencyLoader]
private void load()
{
Add(new ChatOverlay
Children = new Drawable[]
{
State = Visibility.Visible
});
channelManager,
new ChatOverlay { State = Visibility.Visible }
};
}
}
}