Rankings overlay basic implementation

This commit is contained in:
Andrei Zavatski
2019-11-30 03:01:07 +03:00
parent 4dc8e0ae20
commit c451542915
3 changed files with 271 additions and 0 deletions

View File

@ -1,8 +1,11 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input.Events;
using osu.Game.Overlays;
namespace osu.Game.Users.Drawables
{
@ -34,5 +37,16 @@ namespace osu.Game.Users.Drawables
RelativeSizeAxes = Axes.Both,
};
}
[Resolved(canBeNull: true)]
private RankingsOverlay rankingsOverlay { get; set; }
protected override bool OnClick(ClickEvent e)
{
if (Country != null)
rankingsOverlay?.ShowCountry(Country);
return true;
}
}
}