1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:02:55 +08:00

Invalidate drawnode on change

This commit is contained in:
smoogipoo 2021-04-15 23:37:05 +09:00
parent 4538e4b503
commit 34859a4760

View File

@ -32,7 +32,17 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
private double timeOffset; private double timeOffset;
private float time; private float time;
protected Anchor TrailOrigin = Anchor.Centre; private Anchor trailOrigin = Anchor.Centre;
protected Anchor TrailOrigin
{
get => trailOrigin;
set
{
trailOrigin = value;
Invalidate(Invalidation.DrawNode);
}
}
public CursorTrail() public CursorTrail()
{ {