mirror of https://github.com/ppy/osu
Move complex property below ctor
This commit is contained in:
parent
55afcc1e04
commit
195f101799
|
@ -24,21 +24,6 @@ public class CursorTrail : Drawable, IRequireHighFrequencyMousePosition
|
|||
{
|
||||
private const int max_sprites = 2048;
|
||||
|
||||
private Texture texture = Texture.WhitePixel;
|
||||
|
||||
public Texture Texture
|
||||
{
|
||||
get => texture;
|
||||
set
|
||||
{
|
||||
if (texture == value)
|
||||
return;
|
||||
|
||||
texture = value;
|
||||
Invalidate(Invalidation.DrawNode);
|
||||
}
|
||||
}
|
||||
|
||||
private readonly TrailPart[] parts = new TrailPart[max_sprites];
|
||||
private int currentIndex;
|
||||
private IShader shader;
|
||||
|
@ -72,6 +57,21 @@ protected override void LoadComplete()
|
|||
resetTime();
|
||||
}
|
||||
|
||||
private Texture texture = Texture.WhitePixel;
|
||||
|
||||
public Texture Texture
|
||||
{
|
||||
get => texture;
|
||||
set
|
||||
{
|
||||
if (texture == value)
|
||||
return;
|
||||
|
||||
texture = value;
|
||||
Invalidate(Invalidation.DrawNode);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsPresent => true;
|
||||
|
||||
protected override void Update()
|
||||
|
|
Loading…
Reference in New Issue