コード例 #1
0
 protected void HoverExit()
 {
     OverlayFactory.HANDLER().ClickThrough = true;
     if (controller != null)
     {
         controller.HoverExited();
     }
 }
コード例 #2
0
 protected void HoverEnter()
 {
     OverlayFactory.HANDLER().ClickThrough = false;
     if (controller != null)
     {
         controller.HoverEntered();
     }
 }
コード例 #3
0
 void OnPostRender()
 {
     if (!wait)
     {
         tex = OverlayFactory.HANDLER().ActiveWindow.GetActiveWindowCapture();
         if (tex != null)
         {
             target.GetComponent <RawImage>().texture = tex;
         }
     }
 }
コード例 #4
0
        public bool IsProgramOpen()
        {
            var newProgram = OverlayFactory.HANDLER().ActiveWindow.GetTitle().ToLower();

            if (!newProgram.Contains(Application.productName.ToLower()))
            {
                prevOpenProgram = OpenProgram;
                OpenProgram     = newProgram;
                return(OpenProgram.Contains(Name.ToLower()));
            }
            return(prevOpenProgram.Contains(Name.ToLower()));
        }
コード例 #5
0
 // Update is called once per frame
 void Update()
 {
     if (!isLow && !OverlayFactory.HANDLER().CanToggleClickThrough)
     {
         isLow = true;
         transform.SetPositionAndRotation(transform.position + new Vector3(0, -amount, 0), new Quaternion());
     }
     else if (isLow && OverlayFactory.HANDLER().CanToggleClickThrough)
     {
         transform.SetPositionAndRotation(transform.position + new Vector3(0, amount, 0), new Quaternion());
         isLow = false;
     }
 }
コード例 #6
0
        // Use this for initialization
        protected override void Clicked()
        {
            _open = !_open;

            OverlayFactory.HANDLER().CanToggleClickThrough = !_open;

            if (_open)
            {
                menu.GetComponent <CanvasGroup>().Show();
            }
            else
            {
                menu.GetComponent <CanvasGroup>().Hide();
            }
        }
コード例 #7
0
 void Start()
 {
     OverlayFactory.HANDLER().ClickThrough = clickthrough;
 }
コード例 #8
0
 void Start()
 {
     OverlayFactory.HANDLER().MouseTracker.OnMouseMoved += MouseTracker_OnMouseMoved;
 }
コード例 #9
0
 public ClickthroughComponent(MonoBehaviour mb, IClickthroughController tc = null)
 {
     controller = tc;
     component  = mb;
     OverlayFactory.HANDLER().MouseTracker.OnMouseMoved += MouseTracker_OnMouseMoved;
 }