1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Move helper method to end of class

This commit is contained in:
Dean Herbert 2021-12-08 18:30:08 +09:00
parent de89e321c8
commit 8fa73fcbf6

View File

@ -86,8 +86,6 @@ namespace osu.Game.Graphics.UserInterface
protected override Color4 SelectionColour => selectionColour;
private void playTextAddedSample() => textAddedSamples[RNG.Next(0, textAddedSamples.Length)]?.Play();
protected override void OnUserTextAdded(string added)
{
base.OnUserTextAdded(added);
@ -208,6 +206,8 @@ namespace osu.Game.Graphics.UserInterface
SelectionColour = SelectionColour,
};
private void playTextAddedSample() => textAddedSamples[RNG.Next(0, textAddedSamples.Length)]?.Play();
private class OsuCaret : Caret
{
private const float caret_move_time = 60;