mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Make leaderboard scores clickable.
This commit is contained in:
@ -23,6 +23,8 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
private readonly ScrollContainer scrollContainer;
|
||||
private readonly FillFlowContainer<LeaderboardScore> scrollFlow;
|
||||
|
||||
public Action<Score> ScoreSelected;
|
||||
|
||||
private IEnumerable<Score> scores;
|
||||
public IEnumerable<Score> Scores
|
||||
{
|
||||
@ -52,6 +54,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
var ls = new LeaderboardScore(s, 1 + i)
|
||||
{
|
||||
AlwaysPresent = true,
|
||||
Action = () => ScoreSelected?.Invoke(s),
|
||||
State = Visibility.Hidden,
|
||||
};
|
||||
scrollFlow.Add(ls);
|
||||
|
Reference in New Issue
Block a user