Beispiel #1
0
        public void OnUseCurrentPressed()
        {
            HelperMethods.AddInteractionBlocker();
            ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                                 .SetEventCategory("Location - Location Screen")
                                                                 .SetEventAction("Click - Current Location Button")
                                                                 .SetEventLabel("The user has pressed on the current location button in location screen."));

            model.mainAppViewModel.DynamicScrollView.ClearCarousel();
            model.mainAppViewModel.NoActivitiesCard.SetActive(false);

            StartCoroutine(HelperMethods.Instance.RetrieveAndRefreshLocationData(OnFailGeoData));

            if (!_toolTipComplete)
            {
                ToolTipViewController.FlagViewedTooltip();
            }
        }
Beispiel #2
0
        public void OnSearch(string searchString)
        {
            if (string.IsNullOrEmpty(searchString))
            {
                return;
            }

            const string _loadingScreenPrefabPath = "Prefabs/Production/LoadingPanel";
            var          go = NGUITools.AddChild(gameObject, (GameObject)Resources.Load(_loadingScreenPrefabPath));

            _loadingScreen = go.GetComponent <LoadingScreenController> ();
            _loadingScreen._loadingLabel.text = "Searching...";
            _searchString = searchString;

            HelperMethods.AddInteractionBlocker();

            ITTDataCache.Instance.Data.GetDataEntry((int)DataCacheIndices.USER_FLAGS, HelperMethods.Instance.UnFlagCurrentLocation);
            ITTDataCache.Instance.GetGeoLocationData(searchString, OnUpdateGeoLocation, OnFailGeoData);
            model.inputBox.value = null;
        }
Beispiel #3
0
 public void OnCurrentLocationPressed()
 {
     HelperMethods.AddInteractionBlocker();
     StartCoroutine(RetrieveLocation());
 }