1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 02:12:57 +08:00

Added transition

This commit is contained in:
DrabWeb 2017-05-20 20:05:28 -03:00
parent 7eba619f80
commit 47dfc0d7bc

View File

@ -7,7 +7,6 @@ using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Audio.Track;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@ -41,18 +40,13 @@ namespace osu.Game.Overlays.Chat
public ChannelSelectionOverlay()
{
RelativeSizeAxes = Axes.X;
Children = new Drawable[]
{
new Container
{
RelativeSizeAxes = Axes.Both,
Masking = true,
EdgeEffect = new EdgeEffect
{
Type = EdgeEffectType.Shadow,
Colour = Color4.Black.Opacity(0.25f),
Radius = 5,
},
Children = new Drawable[]
{
bg = new Box
@ -138,11 +132,17 @@ namespace osu.Game.Overlays.Chat
{
search.HoldFocus = true;
Schedule(() => search.TriggerFocus());
FadeIn(100, EasingTypes.OutQuint);
MoveToY(0, 800, EasingTypes.OutQuint);
}
protected override void PopOut()
{
search.HoldFocus = false;
FadeOut(500, EasingTypes.InQuint);
MoveToY(DrawHeight, 500, EasingTypes.In);
}
private class HeaderSearchTextBox : SearchTextBox