示例#1
0
 public void Click()
 {
     if (ButtonClickEvent != null)
     {
         ButtonClickEvent.Invoke();
     }
 }
示例#2
0
 /// <summary>
 /// Executed when any window button is pressed
 /// </summary>
 /// <param name="button">Link to the pressed button </param>
 public virtual void OnButtonClick(Button button)
 {
     if (button != null)
     {
         ModalResult = button.ModalResult == ModalWindowResult.None?ModalWindowResult.Cancel: button.ModalResult;
         if (MainWindow.ActiveWindow == this)
         {
             Close();
         }
         ButtonClickEvent?.Invoke(button);
     }
 }
示例#3
0
        public virtual void OnPointerClick(PointerEventData eventData)
        {
            if (!IsInteractable())
            {
                return;
            }

            GameMainManager.instance.audioManager.PlaySound(AudioNameEnum.button_click);
            if (isInteractive)
            {
                Interacted();
                onClick.Invoke();

            }
        }
示例#4
0
 private void OnMouseLeftButtonReleasedInsideRectangle(object sender, EventArgs e)
 {
     ButtonClickEvent.Invoke(this, new EventArgs());
 }
示例#5
0
 public static void SendButtonClick()
 {
     ButtonClickEvent?.Invoke();
 }
示例#6
0
 public void ButtonClickedEvent(Transform temp)
 {
     ButtonClickEvent?.Invoke(temp);
 }
示例#7
0
文件: Button.cs 项目: abyse/Inspra
 private void OnClick()
 {
     OnButtonClick.Invoke();
 }
示例#8
0
 private void OnButtonClick()
 {
     OnDialogButtonClick?.Invoke();
 }