예제 #1
0
        public static void AddBarChartGraph(MenuCommand menuCommand)
        {
            GameObject barChart = SpringGUIDefaultControls.CreateBarChart(GetStandardResources());

            PlaceUIElementRoot(barChart, menuCommand);
            barChart.transform.localPosition = Vector3.zero;
            barChart.AddComponent <BarChart>();
        }
예제 #2
0
        public static void AddLineChartGraph(MenuCommand menuCommand)
        {
            GameObject lineGraph = SpringGUIDefaultControls.CreateLineChartGraph(GetStandardResources());

            PlaceUIElementRoot(lineGraph, menuCommand);
            lineGraph.transform.localPosition = Vector3.zero;
            lineGraph.AddComponent <LineChart>();
        }
예제 #3
0
        public static void AddRadarMap(MenuCommand menuCommand)
        {
            GameObject radarMap = SpringGUIDefaultControls.CreateRadarMap(GetStandardResources());

            PlaceUIElementRoot(radarMap, menuCommand);
            radarMap.transform.localPosition = Vector3.zero;
            radarMap.AddComponent <RadarMap>();
        }
예제 #4
0
        public static void AddPieGraph(MenuCommand menuCommand)
        {
            GameObject pieGraph = SpringGUIDefaultControls.CreatePieGraph(GetStandardResources());

            PlaceUIElementRoot(pieGraph, menuCommand);
            pieGraph.transform.localPosition = Vector3.zero;
            pieGraph.AddComponent <PieGraph>();
        }