1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Use DI to get api for ChatConsole.

This commit is contained in:
Dean Herbert 2016-11-30 14:52:24 +09:00
parent 19897013a0
commit 6809e2ce0a

View File

@ -32,10 +32,8 @@ namespace osu.Game.Overlays
private APIAccess api;
public ChatConsole(APIAccess api)
public ChatConsole()
{
this.api = api;
RelativeSizeAxes = Axes.X;
Size = new Vector2(1, 300);
Anchor = Anchor.BottomLeft;
@ -57,8 +55,10 @@ namespace osu.Game.Overlays
}
[BackgroundDependencyLoader]
private void load()
private void load(APIAccess api)
{
this.api = api;
initializeChannels();
}
@ -145,8 +145,8 @@ namespace osu.Game.Overlays
protected override void PopOut()
{
MoveToY(DrawSize.Y, transition_length, EasingTypes.InQuint);
FadeOut(transition_length, EasingTypes.InQuint);
MoveToY(DrawSize.Y, transition_length, EasingTypes.InSine);
FadeOut(transition_length, EasingTypes.InSine);
}
}
}