Example #1
0
 public void Regresar()
 {
     if (MotoContainer.gameObject.activeSelf)
     {
         regresarPanel.gameObject.SetActive(false);
         MotoContainer.gameObject.SetActive(false);
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(motoPage, options);
     }
     if (LaptopContainer.gameObject.activeSelf)
     {
         regresarPanel.gameObject.SetActive(false);
         LaptopContainer.gameObject.SetActive(false);
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(laptopPage, options);
     }
     if (RefriContainer.gameObject.activeSelf)
     {
         regresarPanel.gameObject.SetActive(false);
         RefriContainer.gameObject.SetActive(false);
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(refriPage, options);
     }
     if (TvContainer.gameObject.activeSelf)
     {
         regresarPanel.gameObject.SetActive(false);
         TvContainer.gameObject.SetActive(false);
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(tvPage, options);
     }
 }
Example #2
0
 void Btn1()
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.browserBackgroundColor = "blue";
     options.hidesTopBar            = true;
     InAppBrowser.OpenURL(pageToOpen, options);
 }
Example #3
0
    // check readme file to find out how to change title, colors etc.
    public void OpenBrowser()
    {
        InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
        options.displayURLAsPageTitle = false;

        InAppBrowser.OpenURL(Manager.Instance.controllerUrl, options);
    }
Example #4
0
 public void OpenBrowser(string url)
 {
     if (url.Equals("init"))
     {
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(initialPage, options);
     }
     if (url.Equals("moto"))
     {
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(motoPage, options);
     }
     if (url.Equals("laptop"))
     {
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(laptopPage, options);
     }
     if (url.Equals("refri"))
     {
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(refriPage, options);
     }
     if (url.Equals("tv"))
     {
         InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
         options.hidesTopBar = true;
         InAppBrowser.OpenURL(tvPage, options);
     }
 }
Example #5
0
 // check readme file to find out how to change title, colors etc.
 public void OnButtonClicked()
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "InAppBrowser example";
     InAppBrowser.OpenURL(pageToOpen, options);
 }
 // check readme file to find out how to change title, colors etc.
 public void Open()
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "";
     options.hidesTopBar           = true;
     InAppBrowser.OpenURL(pageToOpen, options);
 }
Example #7
0
 // check readme file to find out how to change title, colors etc.
 public void OnButtonClicked()
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "";
     options.textColor             = "00000000";
     InAppBrowser.OpenURL(pageToOpen, options);
 }
Example #8
0
    void Start()
    {
        InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
        options.displayURLAsPageTitle = false;
        options.pageTitle             = "Mise En Abyme";
        options.loadingIndicatorColor = "#FF0000";

        InAppBrowser.OpenURL(pageToOpen, options);
    }
 public void OpenWebView()
 {
     UnlockDialog_Panel.SetActive(false);
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.backButtonText        = "Close";
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "Xplorabox";
     InAppBrowser.OpenURL(Pagetopen, options);
 }
Example #10
0
    public void StartGame()
    {
        InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
        options.displayURLAsPageTitle = false;
        options.pageTitle             = "InAppBrowser example";
        options.loadingIndicatorColor = "#FF0000";
        options.hidesTopBar           = true;

        InAppBrowser.OpenURL("https://www.heraldic.cloud", options);
    }
Example #11
0
    //public string pageToOpen = "http://www.google.com";

    public void OnButtonClicked(string pageToOpen)
    {
        InAppBrowser.DisplayOptions displayOptions = new InAppBrowser.DisplayOptions();
        displayOptions.displayURLAsPageTitle = false;
        displayOptions.backButtonText        = "My back text"; // put your text for Back button here
        displayOptions.pageTitle             = "Your title";   // put your text for top bar here
        displayOptions.barBackgroundColor    = "#FF0000";      // this is #RRGGBB format so that represents red color
        displayOptions.textColor             = "#00FF00";      // this is green
        InAppBrowser.OpenURL(pageToOpen, displayOptions);
    }
Example #12
0
 // check readme file to find out how to change title, colors etc.
 public void OnButtonClicked()
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = pageTitle;
     options.pinchAndZoomEnabled   = true;
     options.hidesTopBar           = true;
     InAppBrowser.OpenURL(pageToOpen, options);
     Debug.Log("HERE ");
 }
    public void OpenWebView()
    {
        string Pagetopen = "https://www.xplorabox.com/mega-special-offer";

        print("Opening web view with link " + Pagetopen);
        InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
        options.backButtonText        = "Close";
        options.displayURLAsPageTitle = false;
        options.pageTitle             = "Xplorabox";
        InAppBrowser.OpenURL(Pagetopen, options);
    }
Example #14
0
    // check readme file to find out how to change title, colors etc.
    public void OnButtonClicked()
    {
        InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
        options.displayURLAsPageTitle = false;
        options.hidesHistoryButtons   = true;
        options.pageTitle             = "Eyelnd Browser";
        options.backButtonText        = "Exit";
        options.textColor             = "#ff8578";

        InAppBrowser.OpenURL(pageToOpen, options);
    }
Example #15
0
    public void OnButtonClicked(string pageToOpen)
    {
        InAppBrowser.DisplayOptions displayOptions = new InAppBrowser.DisplayOptions();
        displayOptions.displayURLAsPageTitle = false;
        displayOptions.backButtonText        = "Back";
        displayOptions.pageTitle             = "Lime Crime";
        displayOptions.barBackgroundColor    = "#FF479A";
        displayOptions.textColor             = "#FFFFFF";

        InAppBrowser.OpenURL(pageToOpen, displayOptions);
    }
Example #16
0
 void OpenGame(string gameName)
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "👾 ~spaces~ 👾";
     options.hidesHistoryButtons   = true;
     options.backButtonText        = "Quit";
     options.pinchAndZoomEnabled   = true;
     // ios: left, bottom, top, right
     InAppBrowser.EdgeInsets insets = new InAppBrowser.EdgeInsets(0, 50, 50, 0);
     options.insets = insets;
     InAppBrowser.OpenURL("https://playingcards.io/game/" + gameName, options);
 }
Example #17
0
 public void JoinGame()
 {
     stepInGame++;
     Debug.Log("zzzz potential code to join : " + potentialGameCode);
     character.JoinedGame();
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "👾 ~spaces~ 👾";
     options.hidesHistoryButtons   = true;
     options.backButtonText        = "Quit";
     options.pinchAndZoomEnabled   = true;
     InAppBrowser.EdgeInsets insets = new InAppBrowser.EdgeInsets(0, 50, 50, 0);
     options.insets = insets;
     InAppBrowser.OpenURL("https://playingcards.io/" + potentialGameCode, options);
 }
Example #18
0
    // check readme file to find out how to change title, colors etc.
    public void OnButtonClicked(string pageToOpen)
    {
        this.pageToOpen = pageToOpen;
        InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
        options.displayURLAsPageTitle = false;
        options.pageTitle             = "PAGE TITLE";
        options.backButtonText        = "<";
        options.backButtonFontSize    = "30";
        options.barBackgroundColor    = "#B10034";
        options.textColor             = "#FFFFFF";

        /*
         * int paddingTop = 100;
         * int paddingBottom = 100;
         * int paddingLeft = 100;
         * int paddingRight = 100;
         * InAppBrowser.EdgeInsets insets = new InAppBrowser.EdgeInsets(paddingTop,
         * paddingBottom, paddingLeft, paddingRight);
         * options.insets = insets;
         */
        InAppBrowser.OpenURL(pageToOpen, options);
        print("Opened browser in: " + pageToOpen);
    }
Example #19
0
 // Use this for initialization
 void Start()
 {
     InAppBrowser.OpenURL("https://llk.github.io/scratch-gui/");
 }
Example #20
0
 public void startEleet()
 {
     InAppBrowser.OpenURL("https://www.heraldic.cloud/MEA/eleet/");
 }
Example #21
0
 public void OpenChannel()
 {
     InAppBrowser.OpenURL("http://www.google.com");
 }
Example #22
0
        void OnButtonPressed()
        {
            bool shouldDeActivatePage = true;
            bool resetUAP             = false;

            switch (Button_Opens)
            {
            case UIB_Button_Activates.Page:
                //if the new page is a template, we want to keep the current page on screen (this way the object pool won't be cleaned up)
                shouldDeActivatePage = true;
                try
                {
                    shouldDeActivatePage = !newScreen.GetComponent <UIB_Page>().isTemplate;
                }
                catch (Exception e)
                {
                    Debug.LogError("Problem " + e);
                }
                UIB_PageManager.CurrentPage = newScreen;
                newScreen.GetComponent <UIB_Page>().StartCoroutine("MoveScreenIn", false);
                resetUAP = true;
                break;

            case UIB_Button_Activates.SpecificPage:
                shouldDeActivatePage = !newScreen.GetComponent <UIB_Page>().isTemplate;
                newScreen.GetComponent <UIB_Page>().StartCoroutine("MoveScreenIn", false);
                resetUAP = true;
                break;

            case UIB_Button_Activates.Video:
                newScreen.GetComponent <UIB_Page>().StartCoroutine("MoveScreenIn", false);
                resetUAP = true;
                break;

            case UIB_Button_Activates.Website:
                shouldDeActivatePage = false;
                if (s_link != null)
                {
                    Application.OpenURL(s_link);
                }
                else
                {
                    Debug.LogWarning("Button not assigned a url");
                }
                break;

            case UIB_Button_Activates.InAppUrl:
                shouldDeActivatePage = false;
                if (s_link != null)
                {
                    options.pageTitle = Title;
                    InAppBrowser.OpenURL(s_link, options);
                }
                else
                {
                    Debug.LogWarning("Button not assigned a url");
                }
                break;

            case UIB_Button_Activates.Accessibletext:
                shouldDeActivatePage = false;
                UAP_AccessibilityManager.SaySkippable(s_link);
                break;

            case UIB_Button_Activates.Scene:
                SceneManager.LoadScene(s_link);
                break;

            default:
                Debug.Log("No Activity for this button");
                break;
            }

            if (shouldDeActivatePage)
            {
                UIB_PageManager.LastPage = GetComponentInParent <UIB_Page>().gameObject;
                GetComponentInParent <UIB_Page>().DeActivate();
            }
            if (resetUAP)
            {
                StartCoroutine(GetComponentInParent <UIB_Page>().ResetUAP(false));
            }

            if (VO_Select != null)
            {
                UAP_AccessibilityManager.SelectElement(VO_Select);
            }
        }