mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 17:57:29 +08:00
Add highlight to combo and accuracy when max.
This commit is contained in:
parent
00b2bdd0af
commit
df90b726b9
@ -9,6 +9,7 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.LocalisationExtensions;
|
using osu.Framework.Extensions.LocalisationExtensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Graphics.Colour;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
@ -96,10 +97,17 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
if (score != null)
|
if (score != null)
|
||||||
|
{
|
||||||
totalScoreColumn.Current = scoreManager.GetBindableTotalScoreString(score);
|
totalScoreColumn.Current = scoreManager.GetBindableTotalScoreString(score);
|
||||||
|
|
||||||
|
if (score.Accuracy == 1.0) accuracyColumn.TextColour = colours.GreenLight;
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
if (score.MaxCombo == score.BeatmapInfo!.MaxCombo) maxComboColumn.TextColour = colours.GreenLight;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private ScoreInfo score;
|
private ScoreInfo score;
|
||||||
@ -227,6 +235,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
{
|
{
|
||||||
set => text.Text = value;
|
set => text.Text = value;
|
||||||
}
|
}
|
||||||
|
public ColourInfo TextColour
|
||||||
|
{
|
||||||
|
set => text.Colour = value;
|
||||||
|
}
|
||||||
|
|
||||||
public Drawable Drawable
|
public Drawable Drawable
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user