Fix namerater inconsistencies

This commit is contained in:
JappaWakka 2023-04-03 19:22:42 +02:00
parent 17ef30605c
commit b12ae2026d
3 changed files with 10 additions and 0 deletions

View File

@ -281,6 +281,14 @@
Public Sub Confirm()
Dim t As String = Me.CurrentText
' Remove spaces at the start
While t.StartsWith(" ")
t = t.Remove(0, 1)
End While
' Remove spaces at the end
While t.EndsWith(" ")
t = t.Remove(t.Length - 1, 1)
End While
If t = "" Then
t = Me.DefaultName
End If

View File

@ -239,6 +239,8 @@
inputMode = InputScreen.InputModes.Name
Case "numbers"
inputMode = InputScreen.InputModes.Numbers
Case "pokemon"
inputMode = InputScreen.InputModes.Pokemon
End Select
End If
End If