Esempio n. 1
0
        public void OnPointerExit(PointerEventData eventData)
        {
            if (!isHovered)
            {
                return;
            }
            isHovered = false;

            CUIActionHandler.Deactivate(actionsOnHover);
        }
Esempio n. 2
0
        public void Deselect(bool instant = false, bool silent = false)
        {
            isSelected = false;

            CUIActionHandler.Deactivate(actionsOnActivated, instant);

            if (!silent)
            {
                onToggled?.Invoke(false);
            }
        }
Esempio n. 3
0
        public void OnPointerUp(PointerEventData eventData)
        {
            if (closeIconShowing)
            {
                //TODO: Window list button actions
                CUIActionHandler.Deactivate(closeActions);

                if (isHovered)
                {
                    onHeldClose?.Invoke(appKey);
                }
            }
            else
            {
                onPress?.Invoke(appKey);
            }



            closeIconShowing = false;
            pointerDown      = false;
            holdTimer        = 0f;
        }
Esempio n. 4
0
        public void OnPointerUp(PointerEventData eventData)
        {
            isPressed = false;

            CUIActionHandler.Deactivate(actionsOnDown);
        }