mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Show team scores at the tournament map pool screen
This commit is contained in:
parent
7364173fa9
commit
8d6739ae73
@ -25,6 +25,7 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
|
||||
public bool ShowScore
|
||||
{
|
||||
get => teamDisplay.ShowScore;
|
||||
set => teamDisplay.ShowScore = value;
|
||||
}
|
||||
|
||||
@ -92,10 +93,14 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
|
||||
private void teamChanged(ValueChangedEvent<TournamentTeam> team)
|
||||
{
|
||||
bool wasShowingScores = teamDisplay?.ShowScore ?? false;
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
teamDisplay = new TeamDisplay(team.NewValue, teamColour, currentTeamScore, currentMatch.Value?.PointsToWin ?? 0),
|
||||
};
|
||||
|
||||
teamDisplay.ShowScore = wasShowingScores;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,10 @@ namespace osu.Game.Tournament.Screens.MapPool
|
||||
Loop = true,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
new MatchHeader(),
|
||||
new MatchHeader
|
||||
{
|
||||
ShowScores = true,
|
||||
},
|
||||
mapFlows = new FillFlowContainer<FillFlowContainer<TournamentBeatmapPanel>>
|
||||
{
|
||||
Y = 160,
|
||||
|
Loading…
Reference in New Issue
Block a user