Don't redraw leaderboard scores

This commit is contained in:
smoogipoo
2019-09-05 14:39:02 +09:00
parent a87a1e6031
commit 2e6af84ca8
2 changed files with 10 additions and 1 deletions

View File

@ -12,6 +12,7 @@ namespace osu.Game.Graphics.Sprites
public class GlowingSpriteText : Container, IHasText
{
private readonly OsuSpriteText spriteText, blurredText;
private readonly BufferedContainer buffer;
public string Text
{
@ -43,13 +44,19 @@ namespace osu.Game.Graphics.Sprites
set => blurredText.Colour = value;
}
public bool RedrawOnScale
{
get => buffer.RedrawOnScale;
set => buffer.RedrawOnScale = value;
}
public GlowingSpriteText()
{
AutoSizeAxes = Axes.Both;
Children = new Drawable[]
{
new BufferedContainer
buffer = new BufferedContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,