mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Force glowing sprite text to never redraw
This commit is contained in:
parent
2e6af84ca8
commit
99579255ad
@ -12,7 +12,6 @@ namespace osu.Game.Graphics.Sprites
|
||||
public class GlowingSpriteText : Container, IHasText
|
||||
{
|
||||
private readonly OsuSpriteText spriteText, blurredText;
|
||||
private readonly BufferedContainer buffer;
|
||||
|
||||
public string Text
|
||||
{
|
||||
@ -44,24 +43,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[]
|
||||
{
|
||||
buffer = new BufferedContainer
|
||||
new BufferedContainer
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
BlurSigma = new Vector2(4),
|
||||
CacheDrawnFrameBuffer = true,
|
||||
RedrawOnScale = false,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Blending = BlendingParameters.Additive,
|
||||
Size = new Vector2(3f),
|
||||
|
Loading…
Reference in New Issue
Block a user