public HUDShape(HUDShapeType type, float width, float height) { Type = type; Radius = width * 0.1f; Slices = 4; Width = width; Height = height; UseUVSubRegion = true; RoundRectSharpCorners = 0; }
//[System.Obsolete("HUDShape() is deprecated, will change to struct in future, use explicit constructor.")] //public HUDShape() //{ // Type = HUDShapeType.Disc; // Radius = 0.1f; // Slices = 32; // Width = 01f; // Height = 0.1f; // UseUVSubRegion = true; //} public HUDShape(HUDShapeType type, float radius) { Type = type; Radius = radius; Slices = 32; Width = Height = 2 * radius; UseUVSubRegion = true; RoundRectSharpCorners = 0; }
public HUDShape(HUDShapeType type, float width, float height, float radius, int slices, bool useUVSubRegion) { Type = type; Radius = radius; Slices = slices; Width = width; Height = height; UseUVSubRegion = useUVSubRegion; RoundRectSharpCorners = 0; }