Skip to content

Commit

Permalink
Please fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Nov 4, 2024
1 parent 5d4c356 commit 5a34404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions osu.Framework.Tests/Visual/UserInterface/TestSceneTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,13 @@ public void VariousTextBoxes()
[Test]
public void TestNumbersOnly()
{
NumberTextBox numbers = null;
BasicTextBox numbers = null;

AddStep("add number textbox", () =>
{
textBoxes.Add(numbers = new NumberTextBox
textBoxes.Add(numbers = new BasicTextBox
{
InputProperties = new TextInputProperties(TextInputType.Number, false),
PlaceholderText = @"Only numbers",
Size = new Vector2(500, 30),
TabbableContentContainer = textBoxes
Expand Down Expand Up @@ -1043,13 +1044,6 @@ public partial class InsertableTextBox : BasicTextBox
public new void InsertString(string text) => base.InsertString(text);
}

private partial class NumberTextBox : BasicTextBox
{
protected override bool CanAddCharacter(char character) => char.IsAsciiDigit(character);

protected override bool AllowIme => false;
}

private partial class CustomTextBox : BasicTextBox
{
protected override Drawable GetDrawableCharacter(char c) => new ScalingText(c, FontSize);
Expand Down

0 comments on commit 5a34404

Please sign in to comment.