示例#1
0
        static public void AddPanel(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreatePanel(GetStandardResources());

            PlaceUIElementRoot(go, menuCommand);

            // Panel is special, we need to ensure there's no padding after repositioning.
            RectTransform rect = go.GetComponent <RectTransform>();

            rect.anchoredPosition = Vector2.zero;
            rect.sizeDelta        = Vector2.zero;
        }
示例#2
0
        static public void AddScrollView(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateScrollView(GetStandardResources());

            PlaceUIElementRoot(go, menuCommand);
        }
示例#3
0
        static public void AddAnimProgressBar(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateAnimProgressBar(GetStandardResources());

            PlaceUIElementRoot(go, menuCommand);
        }
示例#4
0
        public static void AddInputField(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateInputField(GetStandardResources());

            PlaceUIElementRoot(go, menuCommand);
        }
示例#5
0
        static public void AddClickableItem(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateClickableNonDrawingGraphics(GetStandardResources());

            PlaceUIElementRoot(go, menuCommand);
        }