From 6176f1d275acd855afd1b181a6ab3e18f756063c Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Wed, 31 May 2017 22:29:52 -0300 Subject: [PATCH] Make the transition when chat is too tall and opening the channel selector smoother --- osu.Game/Overlays/ChatOverlay.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/ChatOverlay.cs b/osu.Game/Overlays/ChatOverlay.cs index b94489c421..23827a7f1d 100644 --- a/osu.Game/Overlays/ChatOverlay.cs +++ b/osu.Game/Overlays/ChatOverlay.cs @@ -70,7 +70,7 @@ namespace osu.Game.Overlays Children = new Drawable[] { - channelSelection = new ChannelSelectionOverlay //todo: temporary placement + channelSelection = new ChannelSelectionOverlay { Anchor = Anchor.TopLeft, Origin = Anchor.TopLeft, @@ -160,7 +160,12 @@ namespace osu.Game.Overlays channelSelection.StateChanged += (overlay, state) => { if (state == Visibility.Visible && 1f - chatHeight.Value < channel_selection_min_height) + { + chatContainer.ResizeHeightTo(1f - channel_selection_min_height, 800, EasingTypes.OutQuint); + channelSelection.ResizeHeightTo(channel_selection_min_height, 800, EasingTypes.OutQuint); + channelSelection.Show(); chatHeight.Value = 1f - channel_selection_min_height; + } }; }