Ejemplo n.º 1
0
        private IEnumerator InvokeOnPaste()
        {
            //Wait until the pasted objects are rendered
            yield return(new WaitForEndOfFrame());

            //Notify listeners that the copied objects were pasted
            OnPaste?.Invoke(ObjectSelection.Instance.GetSelection());
        }
Ejemplo n.º 2
0
        new public bool Paste()
        {
            var paste = base.Paste();

            OnPaste?.Invoke(GUIUtility.systemCopyBuffer);
            //Debug.Log(GUIUtility.systemCopyBuffer + " Paste");

            return(paste);
        }
 protected override void WndProc(ref Message msg)
 {
     if (msg.Msg == WM_PASTE)
     {
         var e = new PasteEventArgs();
         OnPaste?.Invoke(this, e);
         if (e.Cancel)
         {
             return;
         }
     }
     base.WndProc(ref msg);
 }
Ejemplo n.º 4
0
 private void PasteClick() => OnPaste?.Invoke();
Ejemplo n.º 5
0
 public void Paste(string text) => OnPaste?.Invoke(this, text);
Ejemplo n.º 6
0
 private void PasteClick(UIComponent component, UIMouseEventParameter eventParam) => OnPaste?.Invoke();
 private void btnPaste_Click(object sender, EventArgs e)
 {
     OnPaste?.Invoke(this, e);
 }