コード例 #1
0
        private void Awake()
        {
            instantButtonAnimator = GetComponent <Animator>();
            inputBarFieldLoader   = base.gameObject.GetComponent <InputBarFieldLoader>();
            InputBarFieldLoader obj = inputBarFieldLoader;

            obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Combine(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded));
            inputBarFieldLoader.LoadInputBarField();
        }
コード例 #2
0
        private void Awake()
        {
            inputBarFieldLoader = GetComponent <InputBarFieldLoader>();
            InputBarFieldLoader obj = inputBarFieldLoader;

            obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Combine(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded));
            inputBarFieldLoader.LoadInputBarField();
            checkDisplaySearchBar();
            CloseButton.SetActive(value: false);
            Service.Get <EventDispatcher>().AddListener <KeyboardEvents.ReturnKeyPressed>(onReturnKeyPressed);
            Service.Get <EventDispatcher>().AddListener <FriendsServiceEvents.FriendsListUpdated>(onFriendsListUpdated);
            Service.Get <EventDispatcher>().AddListener <FriendsScreenEvents.SearchFriend>(onSearchFriend);
        }
コード例 #3
0
        private void onInputBarFieldLoaded(InputBarField inputBarField)
        {
            InputBarFieldLoader obj = inputBarFieldLoader;

            obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Remove(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded));
            string tokenTranslation = Service.Get <Localizer>().GetTokenTranslation("Friends.FindFriendScreenController.FIND_FRIEND_PLACEHOLDER_TEXT");

            this.inputBarField = inputBarField;
            inputBarField.SetCharacterLimit(140);
            inputBarField.SetPlaceholderText(tokenTranslation);
            inputBarField.SetKeyboardReturnKey(NativeKeyboardReturnKey.Search);
            inputBarField.ShowSuggestions      = false;
            inputBarField.OpenKeyboardOnSelect = true;
            changeKeyboardState(currentState);
            inputBarField.OnTextChanged      = (Action <string>)Delegate.Combine(inputBarField.OnTextChanged, new Action <string>(onTextChanged));
            inputBarField.ESendButtonClicked = (System.Action)Delegate.Combine(inputBarField.ESendButtonClicked, new System.Action(onSendButtonClicked));
        }
コード例 #4
0
        private void onInputBarFieldLoaded(InputBarField inputBarField)
        {
            if (PlatformUtils.GetAspectRatioType() == AspectRatioType.Landscape)
            {
                CoroutineRunner.Start(CheckRootState(), this, "CheckRootState");
            }
            InputBarFieldLoader obj = inputBarFieldLoader;

            obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Remove(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded));
            InputBarField             = inputBarField;
            inputBarField.SetCharacterLimit(CharacterLimit);
            inputBarField.SetKeyboardReturnKey(NativeKeyboardReturnKey.Send);
            inputBarField.ShowSuggestions = true;
            updateStateUI();
            inputBarField.OnTextChanged          = (Action <string>)Delegate.Combine(inputBarField.OnTextChanged, new Action <string>(onTextChanged));
            inputBarField.ESendButtonClicked     = (System.Action)Delegate.Combine(inputBarField.ESendButtonClicked, new System.Action(OnSendButtonClicked));
            inputBarField.EEmojiButtonClicked    = (System.Action)Delegate.Combine(inputBarField.EEmojiButtonClicked, new System.Action(onInputBarEmojiButtonClicked));
            inputBarField.EKeyboardButtonClicked = (System.Action)Delegate.Combine(inputBarField.EKeyboardButtonClicked, new System.Action(onInputBarKeyboardButtonClicked));
        }