Added centralised handling for some chat links

This commit is contained in:
FreezyLemon
2017-12-06 16:41:57 +01:00
parent b04ddba2a0
commit 94eb853d3d
3 changed files with 35 additions and 3 deletions

View File

@ -41,6 +41,8 @@ namespace osu.Game.Overlays
private readonly FocusedTextBox textbox;
public OsuGame Game;
private APIAccess api;
private const int transition_length = 500;
@ -271,8 +273,9 @@ namespace osu.Game.Overlays
}
[BackgroundDependencyLoader]
private void load(APIAccess api, OsuConfigManager config, OsuColour colours)
private void load(APIAccess api, OsuConfigManager config, OsuColour colours, OsuGame game)
{
Game = game;
this.api = api;
api.Register(this);