Skip to content

Commit

Permalink
Remove broken code I accidentally added back in whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Oct 11, 2024
1 parent 09af8a9 commit 78f39b5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/OWML.ModHelper.Menus/NewMenuSystem/OptionsMenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,6 @@ public IOWMLTextEntryElement AddTextEntryInput(Menu menu, string label, string i

if (isNumeric)
{
textInputPopup.OnInputPopupValidateChar += c =>
{
var text = textInputPopup.GetInputText() + c;
return Regex.IsMatch(text, @"^\d*[,.]?\d*$");
};

textInputPopup.OnValidateChar += (string input, int charIndex, char addedChar) =>
{
var text = input.Insert(charIndex, addedChar.ToString());
Expand Down

0 comments on commit 78f39b5

Please sign in to comment.