Ejemplo n.º 1
0
        public ChartValuePopup InstantiateChartPopup(Transform parent, ChartValuePopup popupPrefab)
        {
            ChartValuePopup popup = InstantiateWithPrefab(popupPrefab ??
                                                          Resources.Load <ChartValuePopup> ("prefabs/ChartValuePopup"),
                                                          parent);

            popup.GetComponent <RectTransform> ().pivot = PivotValue.BOTTOM_MIDDLE;

            return(popup);
        }
Ejemplo n.º 2
0
        private void ShowHideValuePopup(LineEntryIdicator indicator)
        {
            if (currentValuePopup == null)
            {
                currentValuePopup = viewCreator.InstantiateChartPopup(contentView.transform, Config.PopupPrefab);
            }

            if (indicator.entry != currentValuePopupEntry)
            {
                UpdateValuePopup(indicator);
                currentValuePopupEntry = indicator.entry;
            }
            else
            {
                HideCurrentValuePopup();
            }
        }
Ejemplo n.º 3
0
        private void ShowHideValuePopup(BarEntry entry, int dataSetIndex)
        {
            if (currentValuePopup == null)
            {
                currentValuePopup = viewCreator.InstantiateChartPopup(contentView.transform, Config.PopupPrefab);
            }

            if (entry != currentValuePopupEntry)
            {
                UpdateValuePopup(entry, dataSetIndex);
                currentValuePopupEntry = entry;
            }
            else
            {
                HideCurrentValuePopup();
            }
        }