Add OnRequestLeave

This commit is contained in:
DrabWeb
2017-05-26 03:56:10 -03:00
parent d632435a34
commit 4c551270e9
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,7 @@ namespace osu.Game.Overlays.Chat
private readonly SearchContainer<ChannelSection> sectionsFlow;
public Action<Channel> OnRequestJoin;
public Action<Channel> OnRequestLeave;
public IEnumerable<ChannelSection> Sections
{
@ -41,6 +42,7 @@ namespace osu.Game.Overlays.Chat
foreach (ChannelListItem c in s.ChannelFlow.Children)
{
c.OnRequestJoin = channel => { OnRequestJoin?.Invoke(channel); };
c.OnRequestLeave = channel => { OnRequestLeave?.Invoke(channel); };
}
}
}