1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 11:27:24 +08:00

Make ChannelSelectionOverlay a FocusedOverlayContainer

This commit is contained in:
DrabWeb 2017-05-20 20:48:36 -03:00
parent 2e1d01a268
commit 4a166c1949

View File

@ -19,7 +19,7 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Chat
{
public class ChannelSelectionOverlay : OverlayContainer
public class ChannelSelectionOverlay : FocusedOverlayContainer
{
public static readonly float WIDTH_PADDING = 170;
@ -134,6 +134,8 @@ namespace osu.Game.Overlays.Chat
protected override void PopIn()
{
base.PopIn();
search.HoldFocus = true;
Schedule(() => search.TriggerFocus());
@ -143,6 +145,8 @@ namespace osu.Game.Overlays.Chat
protected override void PopOut()
{
base.PopOut();
search.HoldFocus = false;
FadeOut(500, EasingTypes.InQuint);