private void OpenVirtualKeyboardWhenNeeded() { int length = 40; UIVirtualKeyboard uiVirtualKeyboard = new UIVirtualKeyboard(Language.GetText("UI.PlayerNameSlot").Value, this._searchString, new UIVirtualKeyboard.KeyboardSubmitEvent(this.OnFinishedSettingName), new Action(this.GoBackHere), 3, true); uiVirtualKeyboard.SetMaxInputLength(length); IngameFancyUI.OpenUIState((UIState)uiVirtualKeyboard); }
private void OpenVirtualKeyboardWhenNeeded() { int maxInputLength = 40; UIVirtualKeyboard uIVirtualKeyboard = new UIVirtualKeyboard(Language.GetText("UI.PlayerNameSlot").Value, _searchString, OnFinishedSettingName, GoBackHere, 3, allowEmpty: true); uIVirtualKeyboard.SetMaxInputLength(maxInputLength); IngameFancyUI.OpenUIState(uIVirtualKeyboard); }