コード例 #1
0
 public void Awake()
 {
     if (_requestBotListViewController == null && _keyboardViewController == null)
     {
         _requestBotListViewController = BeatSaberUI.CreateViewController <RequestBotListViewController>();
         _keyboardViewController       = BeatSaberUI.CreateViewController <KeyboardViewController>();
     }
 }
コード例 #2
0
 private void _friendsListViewController_addFriendButtonPressed()
 {
     if (_addKeyboardViewController == null)
     {
         _addKeyboardViewController = BeatSaberUI.CreateViewController <KeyboardViewController>();
         _addKeyboardViewController.searchButtonPressed += _addFriendEnterPressed;
     }
     PresentViewController(_addKeyboardViewController);
 }
コード例 #3
0
        private void _playerInfoViewController_editNameButtonPressed(string text)
        {
            if (_keyboardViewController == null)
            {
                _keyboardViewController = BeatSaberUI.CreateViewController <KeyboardViewController>();

                _keyboardViewController.backButtonPressed   += _keyboardViewController_backButtonPressed;
                _keyboardViewController.searchButtonPressed += _keyboardViewController_searchButtonPressed;
            }

            PresentViewController(_keyboardViewController);
        }