public void OnPointerExit(PointerEventData eventData) { if (!isHovered) { return; } isHovered = false; CUIActionHandler.Deactivate(actionsOnHover); }
public void Deselect(bool instant = false, bool silent = false) { isSelected = false; CUIActionHandler.Deactivate(actionsOnActivated, instant); if (!silent) { onToggled?.Invoke(false); } }
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; }
public void OnPointerUp(PointerEventData eventData) { isPressed = false; CUIActionHandler.Deactivate(actionsOnDown); }