1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Hook up to channel selector tab item

This commit is contained in:
DrabWeb 2017-05-29 22:10:07 -03:00
parent b9292b6240
commit 96efa5a240

View File

@ -76,7 +76,6 @@ namespace osu.Game.Overlays
Origin = Anchor.TopLeft,
RelativeSizeAxes = Axes.Both,
Height = 1f - DEFAULT_HEIGHT,
State = Visibility.Visible,
},
chatContainer = new Container
{
@ -157,6 +156,7 @@ namespace osu.Game.Overlays
};
channelTabs.Current.ValueChanged += newChannel => CurrentChannel = newChannel;
channelTabs.ChannelSelectorActive.ValueChanged += (value) => channelSelection.State = value ? Visibility.Visible : Visibility.Hidden;
channelSelection.StateChanged += (overlay, state) =>
{
if (state == Visibility.Visible && 1f - chatHeight.Value < channel_selection_min_height)