public static void AddBarChartGraph(MenuCommand menuCommand) { GameObject barChart = SpringGUIDefaultControls.CreateBarChart(GetStandardResources()); PlaceUIElementRoot(barChart, menuCommand); barChart.transform.localPosition = Vector3.zero; barChart.AddComponent <BarChart>(); }
public static void AddLineChartGraph(MenuCommand menuCommand) { GameObject lineGraph = SpringGUIDefaultControls.CreateLineChartGraph(GetStandardResources()); PlaceUIElementRoot(lineGraph, menuCommand); lineGraph.transform.localPosition = Vector3.zero; lineGraph.AddComponent <LineChart>(); }
public static void AddRadarMap(MenuCommand menuCommand) { GameObject radarMap = SpringGUIDefaultControls.CreateRadarMap(GetStandardResources()); PlaceUIElementRoot(radarMap, menuCommand); radarMap.transform.localPosition = Vector3.zero; radarMap.AddComponent <RadarMap>(); }
public static void AddPieGraph(MenuCommand menuCommand) { GameObject pieGraph = SpringGUIDefaultControls.CreatePieGraph(GetStandardResources()); PlaceUIElementRoot(pieGraph, menuCommand); pieGraph.transform.localPosition = Vector3.zero; pieGraph.AddComponent <PieGraph>(); }