mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Add temporary combo/accuracy display.
This commit is contained in:
parent
f1bd64a74d
commit
4a3fc710c4
@ -40,6 +40,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
{
|
{
|
||||||
TotalScore = 2845370,
|
TotalScore = 2845370,
|
||||||
Accuracy = 0.98,
|
Accuracy = 0.98,
|
||||||
|
MaxCombo = 123,
|
||||||
Rank = ScoreRank.A,
|
Rank = ScoreRank.A,
|
||||||
User = new User
|
User = new User
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ using osu.Game.Graphics.Containers;
|
|||||||
using osu.Game.Screens.Backgrounds;
|
using osu.Game.Screens.Backgrounds;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
|
using osu.Game.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Ranking
|
namespace osu.Game.Screens.Ranking
|
||||||
{
|
{
|
||||||
@ -99,7 +100,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -173,7 +174,49 @@ namespace osu.Game.Screens.Ranking
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 50,
|
Height = 50,
|
||||||
Margin = new MarginPadding { Bottom = 110 },
|
Margin = new MarginPadding { Bottom = 110 },
|
||||||
}
|
},
|
||||||
|
new SpriteText
|
||||||
|
{
|
||||||
|
Text = $"{score.MaxCombo}x",
|
||||||
|
TextSize = 40,
|
||||||
|
RelativePositionAxes = Axes.X,
|
||||||
|
Font = @"Exo2.0-Bold",
|
||||||
|
X = 0.1f,
|
||||||
|
Colour = colours.BlueDarker,
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.BottomCentre,
|
||||||
|
},
|
||||||
|
new SpriteText
|
||||||
|
{
|
||||||
|
Text = $"max combo",
|
||||||
|
TextSize = 20,
|
||||||
|
RelativePositionAxes = Axes.X,
|
||||||
|
X = 0.1f,
|
||||||
|
Colour = colours.Gray6,
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
},
|
||||||
|
new SpriteText
|
||||||
|
{
|
||||||
|
Text = $"{score.Accuracy:P2}",
|
||||||
|
TextSize = 40,
|
||||||
|
RelativePositionAxes = Axes.X,
|
||||||
|
Font = @"Exo2.0-Bold",
|
||||||
|
X = 0.9f,
|
||||||
|
Colour = colours.BlueDarker,
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.BottomCentre,
|
||||||
|
},
|
||||||
|
new SpriteText
|
||||||
|
{
|
||||||
|
Text = $"accuracy",
|
||||||
|
TextSize = 20,
|
||||||
|
RelativePositionAxes = Axes.X,
|
||||||
|
X = 0.9f,
|
||||||
|
Colour = colours.Gray6,
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
circleInner = new CircularContainer
|
circleInner = new CircularContainer
|
||||||
@ -228,4 +271,4 @@ namespace osu.Game.Screens.Ranking
|
|||||||
modeChangeButtons.Current.TriggerChange();
|
modeChangeButtons.Current.TriggerChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user