コード例 #1
0
 // Token: 0x0600617A RID: 24954 RVA: 0x0022680C File Offset: 0x00224C0C
 private void StringAccepted(string s, List <KeyCode> keyCodes, Text t)
 {
     this.text = s;
     if (!string.IsNullOrEmpty(this.textField.text))
     {
         this.textField.gameObject.SetActive(true);
         if (this.placeholder != null)
         {
             this.placeholder.gameObject.SetActive(false);
         }
     }
     else
     {
         this.textField.gameObject.SetActive(false);
         if (this.placeholder != null)
         {
             this.placeholder.gameObject.SetActive(true);
         }
     }
     VRCUiPopupManager.Instance.HideCurrentPopup();
     VRCInputManager.UseKeyboardOnlyForText(false);
     this.onEndEdit.Invoke(s);
     if (this.onDoneInputting != null)
     {
         this.onDoneInputting(s);
     }
 }
コード例 #2
0
    // Token: 0x06006179 RID: 24953 RVA: 0x00226718 File Offset: 0x00224B18
    public void PressEdit()
    {
        VRCInputManager.UseKeyboardOnlyForText(true);
        string placeholderText = string.IsNullOrEmpty(this.placeholderInputText) ? ((!(this.placeholder == null)) ? this.placeholder.text : string.Empty) : this.placeholderInputText;

        if (this.isDate)
        {
            VRCUiPopupManager.Instance.ShowDatePopupWithCancel(this.title, this.text, this.inputType, "OK", new Action <string, List <KeyCode>, Text>(this.StringAccepted), new Action(this.StringRejected), placeholderText, true, delegate(VRCUiPopup obj)
            {
                VRCUiPopupDate vrcuiPopupDate = (VRCUiPopupDate)obj;
                vrcuiPopupDate.nextInputField = this.nextInputField;
            });
        }
        else
        {
            VRCUiPopupManager.Instance.ShowInputPopupWithCancel(this.title, this.text, this.inputType, "OK", new Action <string, List <KeyCode>, Text>(this.StringAccepted), new Action(this.StringRejected), placeholderText, true, delegate(VRCUiPopup obj)
            {
                VRCUiPopupJsKeyboard vrcuiPopupJsKeyboard = (VRCUiPopupJsKeyboard)obj;
                vrcuiPopupJsKeyboard.nextInputField       = this.nextInputField;
            });
        }
    }
コード例 #3
0
 // Token: 0x0600617B RID: 24955 RVA: 0x002268D3 File Offset: 0x00224CD3
 private void StringRejected()
 {
     VRCUiManager.Instance.popups.HideCurrentPopup();
     VRCInputManager.UseKeyboardOnlyForText(false);
 }