示例#1
0
        /*public static UIVerticalSlider VerticalSlider(this IUIObject obj, UISliderSettings settings)
         * {
         *  return obj.Component<UIVerticalSlider>(settings);
         * }
         *
         * public static UIHorizontalSlider HorizontalSlider(this IUIObject obj, UISliderSettings settings)
         * {
         *  return obj.Component<UIHorizontalSlider>(settings);
         * }*/

        public static UISprite Sprite(this IUIObject obj, Sprite sprite)
        {
            return(obj.Component <UISprite>(new UISpriteProps
            {
                Sprite = sprite
            }));
        }
示例#2
0
 public static UIToggle Toggle(this IUIObject obj, UIToggleProps props)
 {
     return(obj.Component <UIToggle>(props));
 }
示例#3
0
 public static UIContainer Container(this IUIObject obj, UIContainerProps props)
 {
     return(obj.Component <UIContainer>(props));
 }
示例#4
0
 public static UISprite Sprite(this IUIObject obj, UISpriteProps props)
 {
     return(obj.Component <UISprite>(props));
 }
示例#5
0
 public static UIRadioGroup RadioGroup(this IUIObject obj, UIRadioGroupProps props)
 {
     return(obj.Component <UIRadioGroup>(props));
 }
示例#6
0
 public static UILabel Label(this IUIObject obj, UILabelProps props)
 {
     return(obj.Component <UILabel>(props));
 }
示例#7
0
 public static UIButton Button(this IUIObject obj, UIButtonProps props)
 {
     return(obj.Component <UIButton>(props));
 }
示例#8
0
        /*public static UITextBox TextBox(this IUIObject obj, UITextBoxSettings settings)
         * {
         *  return obj.Component<UITextBox>(settings);
         * }*/

        public static UIMesh Mesh(this IUIObject obj, UIMeshProps props)
        {
            return(obj.Component <UIMesh>(props));
        }