Пример #1
0
 public void onbtnNext()
 {
     if (webView.CanGoForward())
     {
         webView.GoForward();
     }
 }
Пример #2
0
 public void PageFoward()
 {
     if (m_Web.CanGoForward())
     {
         m_Web.GoForward();
     }
 }
Пример #3
0
    void OnGUI()
    {
        GUI.enabled = webViewObject.CanGoBack();
        if (GUI.Button(new Rect(10, 10, 80, 80), "<"))
        {
            webViewObject.GoBack();
        }
        GUI.enabled = true;

        GUI.enabled = webViewObject.CanGoForward();
        if (GUI.Button(new Rect(100, 10, 80, 80), ">"))
        {
            webViewObject.GoForward();
        }
        GUI.enabled = true;

        GUI.TextField(new Rect(200, 10, 300, 80), "" + webViewObject.Progress());

        if (GUI.Button(new Rect(600, 10, 80, 80), "*"))
        {
            var g = GameObject.Find("WebViewObject");
            if (g != null)
            {
                Destroy(g);
            }
            else
            {
                StartCoroutine(Start());
            }
        }
        GUI.enabled = true;
    }
Пример #4
0
 /// <summary>
 /// Forward = history.go(1)
 /// </summary>
 public static void GoForward()
 {
     if (canGoForward)
     {
         m_webViewObject.GoForward();
     }
 }
Пример #5
0
 private void OnSwipeRight()
 {
     if (webViewObject != null)
     {
         if (webViewObject.CanGoForward())
         {
             webViewObject.GoForward();
         }
     }
 }
Пример #6
0
    void OnGUI()
    {
        var x = 10;

        GUI.enabled = webViewObject.CanGoBack();
        if (GUI.Button(new Rect(x, 10, 80, 80), "<"))
        {
            webViewObject.GoBack();
        }
        GUI.enabled = true;
        x          += 90;

        GUI.enabled = webViewObject.CanGoForward();
        if (GUI.Button(new Rect(x, 10, 80, 80), ">"))
        {
            webViewObject.GoForward();
        }
        GUI.enabled = true;
        x          += 90;

        if (GUI.Button(new Rect(x, 10, 80, 80), "r"))
        {
            webViewObject.Reload();
        }
        x += 90;

        GUI.TextField(new Rect(x, 10, 180, 80), "" + webViewObject.Progress());
        x += 190;

        if (GUI.Button(new Rect(x, 10, 80, 80), "*"))
        {
            var g = GameObject.Find("WebViewObject");
            if (g != null)
            {
                Destroy(g);
            }
            else
            {
                StartCoroutine(Start());
            }
        }
        x += 90;

        if (GUI.Button(new Rect(x, 10, 80, 80), "c"))
        {
            Debug.Log(webViewObject.GetCookies(Url));
        }
        x += 90;

        if (GUI.Button(new Rect(x, 10, 80, 80), "x"))
        {
            webViewObject.ClearCookies();
        }
        x += 90;
    }
Пример #7
0
    void OnGUI()
    {
        //GUI.enabled = webViewObject.CanGoBack();
        //if (GUI.Button(new Rect(10, 10, 80, 80), "<"))
        //{
        //    webViewObject.GoBack();
        //}
        //GUI.enabled = true;

        //GUI.enabled = webViewObject.CanGoForward();
        //if (GUI.Button(new Rect(100, 10, 80, 80), ">"))
        //{
        //    webViewObject.GoForward();
        //}
        //GUI.enabled = true;

        //GUI.TextField(new Rect(200, 10, 300, 80), "" + webViewObject.Progress());
        GUI.enabled = webViewObject.CanGoBack();
        if (GUI.Button(new Rect(10, 20, 160, 160), "<"))
        {
            webViewObject.GoBack();
        }
        GUI.enabled = true;

        GUI.enabled = webViewObject.CanGoForward();
        if (GUI.Button(new Rect(200, 20, 160, 160), ">"))
        {
            webViewObject.GoForward();
        }
        GUI.enabled = true;

        GUI.TextField(new Rect(400, 10, 100, 80), "" + webViewObject.Progress());

        if (GUI.Button(new Rect(600, 10, 160, 160), "*"))
        {
            var g = GameObject.Find("WebViewObject");
            if (g != null)
            {
                Destroy(g);
            }
            else
            {
                StartCoroutine(Start());
            }
        }
        GUI.enabled = true;

        //if (GUI.Button(new Rect(700, 10, 80, 80), "c"))
        //{
        //    Debug.Log(webViewObject.GetCookies(Url));
        //}
        //GUI.enabled = true;
    }
 static int QPYX_GoForward_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         WebViewObject QPYX_obj_YXQP = (WebViewObject)ToLua.CheckObject <WebViewObject>(L_YXQP, 1);
         QPYX_obj_YXQP.GoForward();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Пример #9
0
    void OnGUI()
    {
        GUI.enabled = webViewObject.CanGoBack();
        if (GUI.Button(new Rect(10, 10, 80, 80), "<"))
        {
            webViewObject.GoBack();
        }
        GUI.enabled = true;

        GUI.enabled = webViewObject.CanGoForward();
        if (GUI.Button(new Rect(100, 10, 80, 80), ">"))
        {
            webViewObject.GoForward();
        }
        GUI.enabled = true;
    }
Пример #10
0
    void OnGUI()
    {
        GUI.enabled = webViewObject.CanGoBack();
        if (GUI.Button(new Rect(10, 10, 80, 80), "<"))
        {
            webViewObject.GoBack();
        }
        GUI.enabled = true;

        GUI.enabled = webViewObject.CanGoForward();
        if (GUI.Button(new Rect(100, 10, 80, 80), ">"))
        {
            webViewObject.GoForward();
        }
        GUI.enabled = true;

        GUI.TextField(new Rect(200, 10, 300, 80), "" + webViewObject.Progress());
    }
Пример #11
0
 public void GoForward()
 {
     webViewObject.GoForward();
 }