mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Make ChannelSelectionOverlay a FocusedOverlayContainer
This commit is contained in:
parent
2e1d01a268
commit
4a166c1949
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user