Update textbox event names

This commit is contained in:
Dean Herbert
2020-08-19 22:10:58 +09:00
parent 4397be60e2
commit 1badc584f6

View File

@ -74,9 +74,9 @@ namespace osu.Game.Graphics.UserInterface
protected override Color4 SelectionColour => new Color4(249, 90, 255, 255); protected override Color4 SelectionColour => new Color4(249, 90, 255, 255);
protected override void OnTextAdded(string added) protected override void OnUserTextAdded(string added)
{ {
base.OnTextAdded(added); base.OnUserTextAdded(added);
if (added.Any(char.IsUpper) && AllowUniqueCharacterSamples) if (added.Any(char.IsUpper) && AllowUniqueCharacterSamples)
capsTextAddedSample?.Play(); capsTextAddedSample?.Play();
@ -84,9 +84,9 @@ namespace osu.Game.Graphics.UserInterface
textAddedSamples[RNG.Next(0, 3)]?.Play(); textAddedSamples[RNG.Next(0, 3)]?.Play();
} }
protected override void OnTextRemoved(string removed) protected override void OnUserTextRemoved(string removed)
{ {
base.OnTextRemoved(removed); base.OnUserTextRemoved(removed);
textRemovedSample?.Play(); textRemovedSample?.Play();
} }