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