mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Show final scores and change colouring again
This commit is contained in:
@ -60,7 +60,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
legend = new FillFlowContainer
|
legend = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Padding = new MarginPadding(20),
|
Padding = new MarginPadding(20),
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Full,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
},
|
},
|
||||||
@ -107,7 +107,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
graphs.Clear();
|
graphs.Clear();
|
||||||
legend.Clear();
|
legend.Clear();
|
||||||
|
|
||||||
runForProcessor("lazer-standardised", Color4.Cyan, new ScoreProcessor(new OsuRuleset()) { Mode = { Value = ScoringMode.Standardised } });
|
runForProcessor("lazer-standardised", Color4.YellowGreen, new ScoreProcessor(new OsuRuleset()) { Mode = { Value = ScoringMode.Standardised } });
|
||||||
runForProcessor("lazer-classic", Color4.MediumPurple, new ScoreProcessor(new OsuRuleset()) { Mode = { Value = ScoringMode.Classic } });
|
runForProcessor("lazer-classic", Color4.MediumPurple, new ScoreProcessor(new OsuRuleset()) { Mode = { Value = ScoringMode.Classic } });
|
||||||
|
|
||||||
int totalScore = 0;
|
int totalScore = 0;
|
||||||
@ -115,7 +115,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
const int base_score = 300;
|
const int base_score = 300;
|
||||||
|
|
||||||
runForAlgorithm("ScoreV1 (classic)", Color4.Beige, () =>
|
runForAlgorithm("ScoreV1 (classic)", Color4.Purple, () =>
|
||||||
{
|
{
|
||||||
const float score_multiplier = 1;
|
const float score_multiplier = 1;
|
||||||
|
|
||||||
@ -129,7 +129,13 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
}, () =>
|
}, () =>
|
||||||
{
|
{
|
||||||
currentCombo = 0;
|
currentCombo = 0;
|
||||||
}, () => totalScore);
|
}, () =>
|
||||||
|
{
|
||||||
|
// Arbitrary value chosen towards the upper range.
|
||||||
|
const double score_multiplier = 4;
|
||||||
|
|
||||||
|
return (int)(totalScore * score_multiplier);
|
||||||
|
});
|
||||||
|
|
||||||
double comboPortion = 0;
|
double comboPortion = 0;
|
||||||
|
|
||||||
@ -211,8 +217,18 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
legend.Add(new OsuSpriteText
|
legend.Add(new OsuSpriteText
|
||||||
{
|
{
|
||||||
Colour = colour,
|
Colour = colour,
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
Width = 0.5f,
|
||||||
Text = $"{FontAwesome.Solid.Circle.Icon} {name}"
|
Text = $"{FontAwesome.Solid.Circle.Icon} {name}"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
legend.Add(new OsuSpriteText
|
||||||
|
{
|
||||||
|
Colour = colour,
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
Width = 0.5f,
|
||||||
|
Text = $"final score {getTotalScore():#,0}"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user