Пример #1
0
 // Token: 0x06006380 RID: 25472 RVA: 0x002357CC File Offset: 0x00233BCC
 private void HandleSpecialInputs()
 {
     this.mIsControlKeyPressed = false;
     if (Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl))
     {
         Debug.Log("Pressing control");
         this.mIsControlKeyPressed = true;
         if (Input.GetKeyDown(KeyCode.V))
         {
             Debug.Log("Pasting");
             this.popupInputField.text = UniPasteBoard.GetClipBoardString();
             this.popupInputField.MoveTextEnd(false);
         }
     }
     if (this.mIsControlKeyPressed)
     {
         if (Input.GetKeyDown(KeyCode.A) && !string.IsNullOrEmpty(this.popupInputField.text))
         {
             this.HighlightInput();
         }
     }
     else
     {
         if (Input.GetKeyDown(KeyCode.Return))
         {
             this.CloseAndSubmit();
         }
         if (Input.GetKeyDown(KeyCode.Escape) && !this.popupInputField.isFocused)
         {
             this.CloseAndCancel();
         }
     }
 }
Пример #2
0
    void OnGUI()
    {
        s = GUILayout.TextArea(s, GUILayout.Width(screenWidth), GUILayout.MinHeight(200));

        if (GUILayout.Button("Copy to System paste board", GUILayout.Height(80.0f)))
        {
            UniPasteBoard.SetClipBoardString(s);
        }

        if (GUILayout.Button("Paste From System paste board", GUILayout.Height(80.0f)))
        {
            s = UniPasteBoard.GetClipBoardString();
        }
    }
Пример #3
0
 // Token: 0x0600494D RID: 18765 RVA: 0x00187A48 File Offset: 0x00185E48
 private void OnGUI()
 {
     this.s = GUILayout.TextArea(this.s, new GUILayoutOption[]
     {
         GUILayout.Width((float)this.screenWidth),
         GUILayout.MinHeight(200f)
     });
     if (GUILayout.Button("Copy to System paste board", new GUILayoutOption[]
     {
         GUILayout.Height(80f)
     }))
     {
         UniPasteBoard.SetClipBoardString(this.s);
     }
     if (GUILayout.Button("Paste From System paste board", new GUILayoutOption[]
     {
         GUILayout.Height(80f)
     }))
     {
         this.s = UniPasteBoard.GetClipBoardString();
     }
 }
Пример #4
0
 public void CopyHashTag()
 {
     UniPasteBoard.SetClipBoardString("#bloopfestival #uncensoredapp #ino #funkthepower #santantoni #eivissa #streetart #openairgallery #nocensorship #ibiza");
     //confMess.SetActive(true);
     //StartCoroutine(DisableMessage());
 }