1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:42:55 +08:00

Naming adjustments

This commit is contained in:
Andrei Zavatski 2020-01-18 03:40:31 +03:00
parent d5a3d8dbaa
commit 16cfb9310b
5 changed files with 13 additions and 13 deletions

View File

@ -19,8 +19,8 @@ namespace osu.Game.Tests.Visual.Online
{ {
public override IReadOnlyList<Type> RequiredTypes => new[] public override IReadOnlyList<Type> RequiredTypes => new[]
{ {
typeof(ProfileScore), typeof(DrawableProfileScore),
typeof(ProfileWeightedScore), typeof(DrawableProfileWeightedScore),
typeof(ProfileItemBackground), typeof(ProfileItemBackground),
}; };
@ -74,9 +74,9 @@ namespace osu.Game.Tests.Visual.Online
Spacing = new Vector2(0, 10), Spacing = new Vector2(0, 10),
Children = new[] Children = new[]
{ {
new ProfileScore(score), new DrawableProfileScore(score),
new ProfileScore(noPPScore), new DrawableProfileScore(noPPScore),
new ProfileWeightedScore(score, 0.85), new DrawableProfileWeightedScore(score, 0.85),
} }
}); });
} }

View File

@ -22,8 +22,8 @@ namespace osu.Game.Tests.Visual.Online
public override IReadOnlyList<Type> RequiredTypes => new[] public override IReadOnlyList<Type> RequiredTypes => new[]
{ {
typeof(ProfileScore), typeof(DrawableProfileScore),
typeof(ProfileWeightedScore), typeof(DrawableProfileWeightedScore),
typeof(RanksSection) typeof(RanksSection)
}; };

View File

@ -20,7 +20,7 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.Profile.Sections.Ranks namespace osu.Game.Overlays.Profile.Sections.Ranks
{ {
public class ProfileScore : CompositeDrawable public class DrawableProfileScore : CompositeDrawable
{ {
private const int performance_width = 80; private const int performance_width = 80;
private const int content_padding = 10; private const int content_padding = 10;
@ -30,7 +30,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
[Resolved] [Resolved]
private OsuColour colours { get; set; } private OsuColour colours { get; set; }
public ProfileScore(ScoreInfo score) public DrawableProfileScore(ScoreInfo score)
{ {
Score = score; Score = score;

View File

@ -10,11 +10,11 @@ using osuTK;
namespace osu.Game.Overlays.Profile.Sections.Ranks namespace osu.Game.Overlays.Profile.Sections.Ranks
{ {
public class ProfileWeightedScore : ProfileScore public class DrawableProfileWeightedScore : DrawableProfileScore
{ {
private readonly double weight; private readonly double weight;
public ProfileWeightedScore(ScoreInfo score, double weight) public DrawableProfileWeightedScore(ScoreInfo score, double weight)
: base(score) : base(score)
{ {
this.weight = weight; this.weight = weight;

View File

@ -41,10 +41,10 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
switch (type) switch (type)
{ {
default: default:
return new ProfileScore(model.CreateScoreInfo(Rulesets)); return new DrawableProfileScore(model.CreateScoreInfo(Rulesets));
case ScoreType.Best: case ScoreType.Best:
return new ProfileWeightedScore(model.CreateScoreInfo(Rulesets), Math.Pow(0.95, ItemsContainer.Count)); return new DrawableProfileWeightedScore(model.CreateScoreInfo(Rulesets), Math.Pow(0.95, ItemsContainer.Count));
} }
} }
} }