MavenZip

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Setting window insets ?? #1591
    MavenZip
    Participant

    I added coding per your instructions and get errors. I have included the errors, plus the file with they code.

    Here are errors:
    Assets\JuiceFresh\Scripts\PrivacyPolicy.cs(15,1): error CS0118: ‘InAppBrowser.DisplayOptions’ is a type but is used like a variable

    Assets\JuiceFresh\Scripts\PrivacyPolicy.cs(21,117): error CS0103: The name ‘options’ does not exist in the current context

    Here is the file with code:

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;

    public class

    PrivacyPolicy : MonoBehaviour {

    public void PolicyButton()
    {

    /* */
    /* 14 June 2019 P Nisenbaum – using In-App Web Browser to open URL in game */
    /* https://www.kokosoft.pl/in-app-web-browser */
    /* */
    /* InAppBrowser EdgeInsets adding extra space between browser and game screen */
    InAppBrowser.DisplayOptions = new
    InAppBrowser.DisplayOptions();
    int paddingTop = 50;
    int paddingBottom = 50;
    int paddingLeft = 32;
    int paddingRight = 32;
    InAppBrowser.EdgeInsets insets = new InAppBrowser.EdgeInsets(paddingTop, paddingBottom,

    paddingLeft, paddingRight); options.insets = insets;

    /* */
    /* replace default Application.OpenURL with InAppBrowser.OpenURL */
    /* Application.OpenURL( */
    InAppBrowser.OpenURL(
    https://www.hopemaven.com/privacy-terms”,options);

    }
    }

    in reply to: Setting window insets ?? #1586
    MavenZip
    Participant

    Piotr,
    I am just a beginner and am not a programmer so I need exact example, please.

    I want to do two things:

    Setting Windows Insets AND displayOptions.backButtonText

    I am looking at your PDF instructions for In_app Web Browser, but I need full example, please, including declaring variables for DisplayOptions and Setting Window Insets.

    Thanks,
    Paul

    in reply to: Setting window insets ?? #1584
    MavenZip
    Participant

    Unity 2018.4.0f1 Personal

    Assets\JuiceFresh\Scripts\DonateIDF.cs(24,63): error CS0103: The name ‘options’ does not exist in the current context

    in reply to: Setting window insets ?? #1577
    MavenZip
    Participant

    Actually, I want to use Setting Windows Insets AND displayOptions.backButtonText

    Please show example of using both.
    Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)