Beispiel #1
0
    private void ResetMouseUpDelegate()
    {
        MouseUpCalls = null;

        // Start by calling mouse up on any element that is no longer being hovered but had (and still has) it's mouse down & up calls linked
        for (int i = 0; i < mouseTrackerLinkedSet.Count; i++)
        {
            if (mouseTrackerLinkedSet[i].LinkMouseUpToDown)
            {
                MouseUpCalls += mouseTrackerLinkedSet[i].MouseUpCB;
            }
        }

        // Add the rest of the hovered mouse up calls
        for (int i = 0; i < mouseTrackerEnteredSet.Count; i++)
        {
            if (!mouseTrackerLinkedSet.Contains(mouseTrackerEnteredSet[i]))
            {
                MouseUpCalls += mouseTrackerEnteredSet[i].MouseUpCB;
            }
            if (mouseTrackerEnteredSet[i].clickThrough == false)
            {
                break;
            }
        }
    }
Beispiel #2
0
 private void ResetMouseMoveDelegate()
 {
     MouseMoveCalls = null;
     for (int i = 0; i < mouseTrackerFullSet.Count; i++)
     {
         MouseMoveCalls += mouseTrackerFullSet[i].MouseMoveCB;
     }
 }
Beispiel #3
0
 private void ResetMouseDownDelegate()
 {
     MouseDownCalls = null;
     for (int i = 0; i < mouseTrackerEnteredSet.Count; i++)
     {
         MouseDownCalls += mouseTrackerEnteredSet[i].MouseDownCB;
         if (mouseTrackerEnteredSet[i].clickThrough == false)
         {
             break;
         }
     }
 }
Beispiel #4
0
    private void UseMouseUpDelegate()
    {
        MouseUpCalls = null;
        for (int i = 0; i < mouseUpScripts.Length; i++)
        {
            MouseUpCalls += mouseUpScripts[i].MouseUpCB;
        }

        if (MouseUpCalls != null)
        {
            MouseUpCalls();
        }
    }