mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Don't redraw leaderboard scores
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user