public UIButton(string ButtonText, OnClickedEvent ClickCallback, string CustomButtonPrefabName)
 {
     buttonText             = ButtonText;
     clickCallback          = ClickCallback;
     customButtonPrefabName = CustomButtonPrefabName;
     hasCustomButtonPrefab  = true;
 }
 public UIButton(string ButtonText, OnClickedEvent ClickCallback, BUI.UIType DifferentButtonType)
 {
     buttonText             = ButtonText;
     clickCallback          = ClickCallback;
     customButtonType       = DifferentButtonType;
     hasDifferentButtonType = true;
 }
Exemple #3
0
        public void OnTap(Vector2 point)
        {
            if (!Interactable)
            {
                return;
            }

            OnClickedEvent?.Invoke();
        }
 public CategoryGridThumbnail()
 {
     OnClickCb = new OnClickedEvent();
 }
 public UIButton(string ButtonText, OnClickedEvent ClickCallback)
 {
     buttonText    = ButtonText;
     clickCallback = ClickCallback;
 }
Exemple #6
0
 public CategoryGridTile()
 {
     OnClickCb = new OnClickedEvent();
 }
Exemple #7
0
 protected override void OnClicked()
 {
     OnClickedEvent.Invoke();
 }