mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 22:47:24 +08:00
Move complex property below ctor
This commit is contained in:
parent
55afcc1e04
commit
195f101799
@ -24,21 +24,6 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
|
||||
{
|
||||
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 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
|
||||
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
Block a user