protected void HoverExit() { OverlayFactory.HANDLER().ClickThrough = true; if (controller != null) { controller.HoverExited(); } }
protected void HoverEnter() { OverlayFactory.HANDLER().ClickThrough = false; if (controller != null) { controller.HoverEntered(); } }
void OnPostRender() { if (!wait) { tex = OverlayFactory.HANDLER().ActiveWindow.GetActiveWindowCapture(); if (tex != null) { target.GetComponent <RawImage>().texture = tex; } } }
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())); }
// 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; } }
// 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(); } }
void Start() { OverlayFactory.HANDLER().ClickThrough = clickthrough; }
void Start() { OverlayFactory.HANDLER().MouseTracker.OnMouseMoved += MouseTracker_OnMouseMoved; }
public ClickthroughComponent(MonoBehaviour mb, IClickthroughController tc = null) { controller = tc; component = mb; OverlayFactory.HANDLER().MouseTracker.OnMouseMoved += MouseTracker_OnMouseMoved; }