Add basic hard-coded inefficient multi-channel support.

This commit is contained in:
Dean Herbert
2017-05-11 23:10:48 +09:00
parent f044b95ce8
commit a77049213d
3 changed files with 54 additions and 21 deletions

View File

@ -53,5 +53,7 @@ namespace osu.Game.Online.Chat
if (messageCount > MAX_HISTORY)
Messages.RemoveRange(0, messageCount - MAX_HISTORY);
}
public override string ToString() => Name;
}
}

View File

@ -25,14 +25,6 @@ namespace osu.Game.Online.Chat.Drawables
Children = new Drawable[]
{
new OsuSpriteText
{
Text = channel.Name,
TextSize = 50,
Alpha = 0.3f,
Anchor = Anchor.Centre,
Origin = Anchor.Centre
},
scroll = new ScrollContainer
{
RelativeSizeAxes = Axes.Both,
@ -93,4 +85,4 @@ namespace osu.Game.Online.Chat.Drawables
private void scrollToEnd() => Scheduler.AddDelayed(() => scroll.ScrollToEnd(), 50);
}
}
}