示例#1
0
        public static void AddCalendar(MenuCommand menuCommand)
        {
            GameObject calendar = SpringGUIDefaultControls.CreateCalendar(GetStandardResources());

            PlaceUIElementRoot(calendar, menuCommand);
            calendar.transform.localPosition = Vector3.zero;
        }
示例#2
0
        public static void AddDatePicker(MenuCommand menuCommand)
        {
            GameObject datePicker = SpringGUIDefaultControls.CreateDatePicker(GetStandardResources());

            PlaceUIElementRoot(datePicker, menuCommand);
            datePicker.transform.localPosition = Vector3.zero;
        }
示例#3
0
        public static void AddLineChartGraph(MenuCommand menuCommand)
        {
            GameObject lineGraph = SpringGUIDefaultControls.CreateLineChartGraph(GetStandardResources());

            PlaceUIElementRoot(lineGraph, menuCommand);
            lineGraph.transform.localPosition = Vector3.zero;
            lineGraph.AddComponent <LineChart>();
        }
示例#4
0
        public static void AddColorPicker(MenuCommand menuCommand)
        {
            GameObject colorPicker = SpringGUIDefaultControls.CreateColorPicker(GetStandardResources());

            PlaceUIElementRoot(colorPicker, menuCommand);
            colorPicker.transform.localPosition = Vector3.zero;
            colorPicker.AddComponent <ColorPicker>();
        }
示例#5
0
        public static void AddBarChartGraph(MenuCommand menuCommand)
        {
            GameObject barChart = SpringGUIDefaultControls.CreateBarChart(GetStandardResources());

            PlaceUIElementRoot(barChart, menuCommand);
            barChart.transform.localPosition = Vector3.zero;
            barChart.AddComponent <BarChart>();
        }
示例#6
0
        public static void AddRadarMap(MenuCommand menuCommand)
        {
            GameObject radarMap = SpringGUIDefaultControls.CreateRadarMap(GetStandardResources());

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

            PlaceUIElementRoot(pieGraph, menuCommand);
            pieGraph.transform.localPosition = Vector3.zero;
            pieGraph.AddComponent <PieGraph>();
        }
示例#8
0
        public static void AddHorizontalColoredTape(MenuCommand menuCommand)
        {
            GameObject coloredTape = SpringGUIDefaultControls.CreataHorizontalColoredTape(GetStandardResources());

            PlaceUIElementRoot(coloredTape, menuCommand);
            coloredTape.transform.localPosition = Vector3.zero;
            ColoredTape tape = coloredTape.GetComponent <ColoredTape>();

            tape.TapeDirection = ColoredTape.E_DrawDirection.Horizontal;
        }
示例#9
0
        public static void AddLongClickButton(MenuCommand menuCommand)
        {
            GameObject lcButton = SpringGUIDefaultControls.CreateLongClickButton(GetStandardResources());

            PlaceUIElementRoot(lcButton, menuCommand);
        }
示例#10
0
        public static void AddUITreeNode(MenuCommand menuCommand)
        {
            GameObject uiTreeNode = SpringGUIDefaultControls.CreateUITree(GetStandardResources());

            PlaceUIElementRoot(uiTreeNode, menuCommand);
        }