public T CreateWidget <T>(string _skin, IntCoord _coord, Align _align) where T : class { T type = System.Activator.CreateInstance <T>(); BaseWidget widget = type as BaseWidget; widget.CreateWidget(this, WidgetStyle.Child, _skin, _coord, _align, "", ""); return(type); }
public T CreateWidget <T>(WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name) where T : class { T type = System.Activator.CreateInstance <T>(); BaseWidget widget = type as BaseWidget; widget.CreateWidget(this, _style, _skin, _coord, _align, _layer, _name); return(type); }
public T CreateWidget <T>(string _skin, IntCoord _coord, Align _align, string _layer) where T : class { T type = System.Activator.CreateInstance <T>(); BaseWidget widget = type as BaseWidget; widget.CreateWidget(null, WidgetStyle.Overlapped, _skin, _coord, _align, _layer, ""); return(type); }