public void Awake() { if (_requestBotListViewController == null && _keyboardViewController == null) { _requestBotListViewController = BeatSaberUI.CreateViewController <RequestBotListViewController>(); _keyboardViewController = BeatSaberUI.CreateViewController <KeyboardViewController>(); } }
private void _friendsListViewController_addFriendButtonPressed() { if (_addKeyboardViewController == null) { _addKeyboardViewController = BeatSaberUI.CreateViewController <KeyboardViewController>(); _addKeyboardViewController.searchButtonPressed += _addFriendEnterPressed; } PresentViewController(_addKeyboardViewController); }
private void _playerInfoViewController_editNameButtonPressed(string text) { if (_keyboardViewController == null) { _keyboardViewController = BeatSaberUI.CreateViewController <KeyboardViewController>(); _keyboardViewController.backButtonPressed += _keyboardViewController_backButtonPressed; _keyboardViewController.searchButtonPressed += _keyboardViewController_searchButtonPressed; } PresentViewController(_keyboardViewController); }