mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add ResetCount method for Counter.
This commit is contained in:
@ -120,5 +120,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
textLayer.FadeColour(KeyUpTextColor, FadeTime);
|
textLayer.FadeColour(KeyUpTextColor, FadeTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ResetCount() => Count = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
base.Add(key);
|
base.Add(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ResetCount()
|
||||||
|
{
|
||||||
|
foreach (var counter in counters)
|
||||||
|
counter.ResetCount();
|
||||||
|
}
|
||||||
|
|
||||||
public override bool Contains(Vector2 screenSpacePos) => true;
|
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||||
|
|
||||||
//further: change default values here and in KeyCounter if needed, instead of passing them in every constructor
|
//further: change default values here and in KeyCounter if needed, instead of passing them in every constructor
|
||||||
|
Reference in New Issue
Block a user