private void OpenContactEmail()
 {
     if (!string.IsNullOrEmpty(model.emailContactURL))
     {
         WebInterface.OpenURL($"mailto:{model.emailContactURL}");
     }
 }
 private void OpenPrivacyPolicy()
 {
     if (!string.IsNullOrEmpty(model.privacyPolicyURL))
     {
         WebInterface.OpenURL(model.privacyPolicyURL);
     }
 }
 private void OpenToS()
 {
     if (!string.IsNullOrEmpty(model.tosURL))
     {
         WebInterface.OpenURL(model.tosURL);
     }
 }
Ejemplo n.º 4
0
    private void Awake()
    {
        buttonSettings.onClick.AddListener(() => OnSettingsPressed?.Invoke(landId));
        buttonJumpIn.onClick.AddListener(() => OnJumpInPressed?.Invoke(landId));
        buttonEditor.onClick.AddListener(() => OnEditorPressed?.Invoke(landId));

        //NOTE: for MVP we are redirecting user to Builder's page
        OnSettingsPressed += (id) => WebInterface.OpenURL(string.Format(BUILDER_LAND_URL_FORMAT, isEstate ? landId : landCoordinates));
    }
Ejemplo n.º 5
0
    public ProfileHUDController()
    {
        view      = UnityEngine.Object.Instantiate(Resources.Load <GameObject>("ProfileHUD")).GetComponent <ProfileHUDView>();
        view.name = "_ProfileHUD";

        view.buttonLogOut.onClick.AddListener(WebInterface.LogOut);
        view.buttonClaimName.onClick.AddListener(() => WebInterface.OpenURL(URL_CLAIM_NAME));

        ownUserProfile.OnUpdate += OnProfileUpdated;
    }
Ejemplo n.º 6
0
 public void GoToMarketplace()
 {
     if (userProfile.hasConnectedWeb3)
     {
         WebInterface.OpenURL("https://market.decentraland.org/browse?section=wearables");
     }
     else
     {
         WebInterface.OpenURL("https://docs.decentraland.org/get-a-wallet");
     }
 }
Ejemplo n.º 7
0
 private void OpenMarketUrl()
 {
     if (!string.IsNullOrEmpty(marketUrl))
     {
         WebInterface.OpenURL(marketUrl);
     }
     else
     {
         Hide();
     }
 }
Ejemplo n.º 8
0
 public void GoToMarketplace()
 {
     if (userProfile.hasConnectedWeb3)
     {
         WebInterface.OpenURL(URL_MARKET_PLACE);
     }
     else
     {
         WebInterface.OpenURL(URL_GET_A_WALLET);
     }
 }
Ejemplo n.º 9
0
    public ProfileHUDController()
    {
        mouseCatcher = InitialSceneReferences.i?.mouseCatcher;

        view      = UnityEngine.Object.Instantiate(Resources.Load <GameObject>("ProfileHUD")).GetComponent <ProfileHUDView>();
        view.name = "_ProfileHUD";

        view.buttonLogOut.onClick.AddListener(WebInterface.LogOut);
        view.buttonClaimName.onClick.AddListener(() => WebInterface.OpenURL(URL_CLAIM_NAME));

        ownUserProfile.OnUpdate += OnProfileUpdated;
        if (mouseCatcher != null)
        {
            mouseCatcher.OnMouseLock += OnMouseLocked;
        }
    }
Ejemplo n.º 10
0
    public void SellCollectible(string collectibleId)
    {
        var ownedCollectible = ownedNftCollectionsL1.FirstOrDefault(nft => nft.urn == collectibleId);

        if (ownedCollectible == null)
        {
            ownedCollectible = ownedNftCollectionsL2.FirstOrDefault(nft => nft.urn == collectibleId);
        }

        if (ownedCollectible != null)
        {
            WebInterface.OpenURL(URL_SELL_SPECIFIC_COLLECTIBLE.Replace("{collectionId}", ownedCollectible.collectionId).Replace("{tokenId}", ownedCollectible.tokenId));
        }
        else
        {
            WebInterface.OpenURL(URL_SELL_COLLECTIBLE_GENERIC);
        }
    }
Ejemplo n.º 11
0
        private void Initialize()
        {
            gameObject.name = VIEW_OBJECT_NAME;

            joinDiscordButton.onClick.AddListener(() =>
            {
                WebInterface.OpenURL(JOIN_DISCORD_URL);
            });

            visitFAQButton.onClick.AddListener(() =>
            {
                WebInterface.OpenURL(FAQ_URL);
            });

            closeButton.onClick.AddListener(() =>
            {
                SetVisibility(false);
            });
        }
Ejemplo n.º 12
0
    private void Initialize(AvatarHUDController controller)
    {
        gameObject.name = VIEW_OBJECT_NAME;

        toggleExpandButton.onClick.AddListener(controller.ToggleExpanded);

        editAvatarButton.onClick.AddListener(controller.EditAvatar);
        editAvatarButton.onClick.AddListener(controller.ToggleExpanded);

        signOutButton.onClick.AddListener(controller.SignOut);
        signOutButton.onClick.AddListener(controller.ToggleExpanded);

        settingsButton.onClick.AddListener(controller.ShowSettings);
        settingsButton.onClick.AddListener(controller.ToggleExpanded);

        faqButton.onClick.AddListener(() =>
        {
            WebInterface.OpenURL("https://docs.decentraland.org/decentraland/faq/");
        });
    }
Ejemplo n.º 13
0
 private void OnSettingsPressed(string landId)
 {
     //NOTE: for MVP we are redirecting user to Builder's page
     WebInterface.OpenURL(string.Format(BUILDER_LAND_URL_FORMAT, landId));
 }
Ejemplo n.º 14
0
 public void SellCollectible(string collectibleId)
 {
     WebInterface.OpenURL(URL_SELL_COLLECTIBLE);
 }
Ejemplo n.º 15
0
 private void OpenMoreInfoUrl()
 {
     WebInterface.OpenURL(MORE_INFO_URL);
     Dismiss();
 }
 private void OpenUrl(string url)
 {
     WebInterface.OpenURL(url);
 }
Ejemplo n.º 17
0
 public void SellCollectible(string collectibleId)
 {
     WebInterface.OpenURL("https://market.decentraland.org/account");
 }
Ejemplo n.º 18
0
 void OnManaPurchasePressed()
 {
     WebInterface.OpenURL(URL_MANA_PURCHASE);
 }
Ejemplo n.º 19
0
 void OnManaInfoPressed()
 {
     WebInterface.OpenURL(URL_MANA_INFO);
 }