Пример #1
0
    public void ShowDetails(Data_Globe dataRef)
    {
        //get the data
        data = dataRef;

        //open the flag
        data.thePointScript.Maximize();

        //the fade out loads the details
        FadeOutDetails();

        //change the grid to 1 column
        //SetGridColumns(1);
        //Invoke("CentreOnCurrentData", 0.25f);
        CentreOnCurrentData();

        //move the window
        PlayTween(detailWindow, true);

        //move the filters
        if (filterPanel.GetComponent <TweenPosition>().to == filterPanel.transform.localPosition)
        {
            PlayTween(filterPanel, false);
            PlayTween(listButton, false);
            //PlayTween(filterButton, false);
            filterButton.GetComponent <UIPlayTween>().Play(false);
        }
    }
Пример #2
0
    protected override void LocalFilter()
    {
        if (currentFilters.Count > 0)
        {
            scrollView.ResetPosition();

            foreach (GameObject block in displayedBlocks)
            {
                Data_Globe project = block.GetComponent <Data_Globe>();
                if (!ContainsAllFilters(project.taxonomies, currentFilters))
                {
                    //hide it from the scene
                    block.SetActive(false);
                }
            }

            //empty the list
            downloadedStrings.Clear();
            scrollView.ResetPosition();
        }
    }