public void CopyDataFrom(RageSvgStyle style) { OutlineType = style.OutlineType; OutlineColor1 = style.OutlineColor1; OutlineColor2 = style.OutlineColor2; OutlineAlpha = style.OutlineAlpha; OutlineWidth = style.OutlineWidth; CornersType = style.CornersType; FillType = style.FillType; RageSvgGradient = style.RageSvgGradient; RageSvgTexture = style.RageSvgTexture; FillColor1 = style.FillColor1; FillColor2 = style.FillColor2; FillColor1Alpha = style.FillColor1Alpha; FillColor2Alpha = style.FillColor2Alpha; HasFill = style.HasFill; HasOutline = style.HasOutline; HasGradient = style.HasGradient; HasTexture = style.HasTexture; }
public RageSvgStyle() { OutlineType = Spline.OutlineType.None; OutlineColor1 = Color.black; OutlineColor2 = Color.black; OutlineAlpha = 1f; OutlineWidth = 1f; CornersType = Spline.CornerType.Beak; //Was: Default FillType = Spline.FillType.Solid; RageSvgGradient = null; RageSvgTexture = null; FillColor1 = Color.black; FillColor2 = Color.black; FillColor1Alpha = 1f; FillColor2Alpha = 1f; HasFill = true; HasOutline = false; HasGradient = false; HasTexture = false; }