mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 06:12:57 +08:00
Remove alternative total score display (colour gradient) for now
For simplicity and a future consideration for when the skinning portion is implemented.
This commit is contained in:
parent
42d41add41
commit
f6741514aa
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Graphics;
|
|
||||||
using osu.Framework.Graphics.Colour;
|
using osu.Framework.Graphics.Colour;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Online.Rooms;
|
using osu.Game.Online.Rooms;
|
||||||
@ -69,26 +68,6 @@ namespace osu.Game.Graphics
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Retrieves the colour for the total score depending on <see cref="ScoreRank"/>.
|
|
||||||
/// </summary>
|
|
||||||
public static ColourInfo TotalScoreColourFor(ScoreRank rank)
|
|
||||||
{
|
|
||||||
switch (rank)
|
|
||||||
{
|
|
||||||
case ScoreRank.XH:
|
|
||||||
case ScoreRank.X:
|
|
||||||
return ColourInfo.GradientVertical(Colour4.FromHex(@"A4DEFF"), Colour4.FromHex(@"F0AADD"));
|
|
||||||
|
|
||||||
case ScoreRank.SH:
|
|
||||||
case ScoreRank.S:
|
|
||||||
return ColourInfo.GradientVertical(Colour4.FromHex(@"FFFFFF"), Colour4.FromHex(@"F7E65D"));
|
|
||||||
|
|
||||||
default:
|
|
||||||
return Colour4.White;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the colour for a <see cref="HitResult"/>.
|
/// Retrieves the colour for a <see cref="HitResult"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -414,7 +414,6 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
Shear = -shear,
|
Shear = -shear,
|
||||||
Current = scoreManager.GetBindableTotalScoreString(score),
|
Current = scoreManager.GetBindableTotalScoreString(score),
|
||||||
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Light),
|
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Light),
|
||||||
Colour = OsuColour.TotalScoreColourFor(score.Rank),
|
|
||||||
},
|
},
|
||||||
modsContainer = new FillFlowContainer<ColouredModSwitchTiny>
|
modsContainer = new FillFlowContainer<ColouredModSwitchTiny>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user