1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:43:22 +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[]
{
typeof(ProfileScore),
typeof(ProfileWeightedScore),
typeof(DrawableProfileScore),
typeof(DrawableProfileWeightedScore),
typeof(ProfileItemBackground),
};
@ -74,9 +74,9 @@ namespace osu.Game.Tests.Visual.Online
Spacing = new Vector2(0, 10),
Children = new[]
{
new ProfileScore(score),
new ProfileScore(noPPScore),
new ProfileWeightedScore(score, 0.85),
new DrawableProfileScore(score),
new DrawableProfileScore(noPPScore),
new DrawableProfileWeightedScore(score, 0.85),
}
});
}

View File

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

View File

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

View File

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

View File

@ -41,10 +41,10 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
switch (type)
{
default:
return new ProfileScore(model.CreateScoreInfo(Rulesets));
return new DrawableProfileScore(model.CreateScoreInfo(Rulesets));
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));
}
}
}