From 96efa5a2403606ba2f268193d2aa1d41628e0a8a Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Mon, 29 May 2017 22:10:07 -0300 Subject: [PATCH] Hook up to channel selector tab item --- osu.Game/Overlays/ChatOverlay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Overlays/ChatOverlay.cs b/osu.Game/Overlays/ChatOverlay.cs index 831cccf2d8..447946b863 100644 --- a/osu.Game/Overlays/ChatOverlay.cs +++ b/osu.Game/Overlays/ChatOverlay.cs @@ -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)