1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +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; private APIAccess api;
public ChatConsole(APIAccess api) public ChatConsole()
{ {
this.api = api;
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
Size = new Vector2(1, 300); Size = new Vector2(1, 300);
Anchor = Anchor.BottomLeft; Anchor = Anchor.BottomLeft;
@ -57,8 +55,10 @@ namespace osu.Game.Overlays
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(APIAccess api)
{ {
this.api = api;
initializeChannels(); initializeChannels();
} }
@ -145,8 +145,8 @@ namespace osu.Game.Overlays
protected override void PopOut() protected override void PopOut()
{ {
MoveToY(DrawSize.Y, transition_length, EasingTypes.InQuint); MoveToY(DrawSize.Y, transition_length, EasingTypes.InSine);
FadeOut(transition_length, EasingTypes.InQuint); FadeOut(transition_length, EasingTypes.InSine);
} }
} }
} }