mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Refresh leaderboard when returning to lobby
This commit is contained in:
parent
bf8aae8d9b
commit
84552b5cee
@ -7,6 +7,7 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Screens;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.Multiplayer;
|
using osu.Game.Online.Multiplayer;
|
||||||
@ -41,6 +42,7 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
|
|
||||||
private readonly Components.Header header;
|
private readonly Components.Header header;
|
||||||
private readonly Info info;
|
private readonly Info info;
|
||||||
|
private readonly MatchLeaderboard leaderboard;
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
private readonly Room room;
|
private readonly Room room;
|
||||||
@ -86,7 +88,7 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
participants = new Participants { RelativeSizeAxes = Axes.Both },
|
participants = new Participants { RelativeSizeAxes = Axes.Both },
|
||||||
new MatchLeaderboard(room) { RelativeSizeAxes = Axes.Both }
|
leaderboard = new MatchLeaderboard(room) { RelativeSizeAxes = Axes.Both }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ColumnDimensions = new[]
|
ColumnDimensions = new[]
|
||||||
@ -144,6 +146,13 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
playlistBind.BindTo(room.Playlist);
|
playlistBind.BindTo(room.Playlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnResuming(Screen last)
|
||||||
|
{
|
||||||
|
base.OnResuming(last);
|
||||||
|
|
||||||
|
leaderboard.RefreshScores();
|
||||||
|
}
|
||||||
|
|
||||||
private void addPlaylistItem(PlaylistItem item)
|
private void addPlaylistItem(PlaylistItem item)
|
||||||
{
|
{
|
||||||
playlistBind.Clear();
|
playlistBind.Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user