add tab item

This commit is contained in:
Jorolf
2017-05-17 21:16:53 +02:00
parent 78c1d4581f
commit 67806c4247
2 changed files with 42 additions and 2 deletions

View File

@ -44,6 +44,8 @@ namespace osu.Game.Overlays
public const float TAB_AREA_HEIGHT = 50;
public const int CHANNEL_SELECTOR_ID = -1;
private GetMessagesRequest fetchReq;
private readonly ChatTabControl channelTabs;
@ -262,6 +264,16 @@ namespace osu.Game.Overlays
{
if (currentChannel == value) return;
if(value.Id == CHANNEL_SELECTOR_ID)
{
//channel selector popout
currentChannel = value;
return;
}else if(currentChannel?.Id == CHANNEL_SELECTOR_ID)
{
//channel selector popin
}
if (currentChannel != null)
currentChannelContainer.Clear(false);