Make OsuTextBox use BasicTextBox

This commit is contained in:
smoogipoo 2019-12-24 14:21:16 +09:00
parent 5e8afccfee
commit 0bfd757936

View File

@ -12,7 +12,7 @@ using osu.Framework.Input.Events;
namespace osu.Game.Graphics.UserInterface namespace osu.Game.Graphics.UserInterface
{ {
public class OsuTextBox : TextBox public class OsuTextBox : BasicTextBox
{ {
protected override float LeftRightPadding => 10; protected override float LeftRightPadding => 10;
@ -41,6 +41,8 @@ namespace osu.Game.Graphics.UserInterface
BackgroundCommit = BorderColour = colour.Yellow; BackgroundCommit = BorderColour = colour.Yellow;
} }
protected override Color4 SelectionColour => new Color4(249, 90, 255, 255);
protected override void OnFocus(FocusEvent e) protected override void OnFocus(FocusEvent e)
{ {
BorderThickness = 3; BorderThickness = 3;