Add input box to ChatOverlay.

This commit is contained in:
Dean Herbert
2017-02-19 18:02:25 +09:00
parent 520e040396
commit aac4ba2baa
2 changed files with 39 additions and 5 deletions

View File

@ -21,8 +21,8 @@ namespace osu.Game.Online.Chat.Drawables
public DrawableChannel(Channel channel)
{
this.channel = channel;
newMessages(channel.Messages);
channel.NewMessagesArrived += newMessages;
newMessagesArrived(channel.Messages);
channel.NewMessagesArrived += newMessagesArrived;
RelativeSizeAxes = Axes.Both;
@ -56,16 +56,16 @@ namespace osu.Game.Online.Chat.Drawables
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
channel.NewMessagesArrived -= newMessages;
channel.NewMessagesArrived -= newMessagesArrived;
}
[BackgroundDependencyLoader]
private void load()
{
newMessages(channel.Messages);
newMessagesArrived(channel.Messages);
}
private void newMessages(IEnumerable<Message> newMessages)
private void newMessagesArrived(IEnumerable<Message> newMessages)
{
if (!IsLoaded) return;