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);
     }
 }
Пример #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));
    }
Пример #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;
    }
Пример #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");
     }
 }
Пример #7
0
 private void OpenMarketUrl()
 {
     if (!string.IsNullOrEmpty(marketUrl))
     {
         WebInterface.OpenURL(marketUrl);
     }
     else
     {
         Hide();
     }
 }
Пример #8
0
 public void GoToMarketplace()
 {
     if (userProfile.hasConnectedWeb3)
     {
         WebInterface.OpenURL(URL_MARKET_PLACE);
     }
     else
     {
         WebInterface.OpenURL(URL_GET_A_WALLET);
     }
 }
Пример #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;
        }
    }
Пример #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);
        }
    }
Пример #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);
            });
        }
Пример #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/");
        });
    }
Пример #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));
 }
Пример #14
0
 public void SellCollectible(string collectibleId)
 {
     WebInterface.OpenURL(URL_SELL_COLLECTIBLE);
 }
Пример #15
0
 private void OpenMoreInfoUrl()
 {
     WebInterface.OpenURL(MORE_INFO_URL);
     Dismiss();
 }
 private void OpenUrl(string url)
 {
     WebInterface.OpenURL(url);
 }
Пример #17
0
 public void SellCollectible(string collectibleId)
 {
     WebInterface.OpenURL("https://market.decentraland.org/account");
 }
Пример #18
0
 void OnManaPurchasePressed()
 {
     WebInterface.OpenURL(URL_MANA_PURCHASE);
 }
Пример #19
0
 void OnManaInfoPressed()
 {
     WebInterface.OpenURL(URL_MANA_INFO);
 }