Use Channels in ChannelListItems, ChannelSection, fix ChannelListItem being misaligned

This commit is contained in:
DrabWeb
2017-05-20 18:29:57 -03:00
parent 31890a1e01
commit 6a8d745db1
4 changed files with 77 additions and 15 deletions

View File

@ -11,6 +11,7 @@ using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Chat;
namespace osu.Game.Overlays.Chat
{
@ -78,17 +79,18 @@ namespace osu.Game.Overlays.Chat
},
},
},
new ChannelListItem
new ChannelSection
{
Anchor = Anchor.Centre,
Origin = Anchor.BottomCentre,
Joined = false,
},
new ChannelListItem
{
Anchor = Anchor.Centre,
Origin = Anchor.TopCentre,
Joined = true,
Origin = Anchor.Centre,
Padding = new MarginPadding { Left = WIDTH_PADDING, Right = WIDTH_PADDING },
Header = @"GENERAL CHANNELS",
Channels = new[]
{
new Channel { Name = @"announcements", Topic = @"Automated announcement of stuff going on in osu!" },
new Channel { Name = @"osu!", Topic = @"I dunno, the default channel I guess?" },
new Channel { Name = @"lobby", Topic = @"Look for trouble here" },
},
},
};
}