public void DrawRect(RectStylePainterParameters painterParams) { Rect layout = painterParams.layout; Color color = painterParams.color; Vector4 borderWidths = new Vector4(painterParams.borderLeftWidth, painterParams.borderTopWidth, painterParams.borderRightWidth, painterParams.borderBottomWidth); Vector4 borderRadiuses = new Vector4(painterParams.borderTopLeftRadius, painterParams.borderTopRightRadius, painterParams.borderBottomRightRadius, painterParams.borderBottomLeftRadius); this.DrawRect_Internal(layout, color * this.m_OpacityColor, borderWidths, borderRadiuses); }
public void DrawRect(RectStylePainterParameters painterParams) { Rect rect = painterParams.rect; Color color = painterParams.color; Vector4 widths = painterParams.border.GetWidths(); Vector4 radiuses = painterParams.border.GetRadiuses(); this.DrawRect_Internal(rect, color * this.m_OpacityColor, widths, radiuses); }
public void DrawRect(RectStylePainterParameters painterParams) { Rect screenRect = painterParams.rect; Color color = painterParams.color; var borderWidths = painterParams.border.GetWidths(); var borderRadiuses = painterParams.border.GetRadiuses(); DrawRect(screenRect, color * m_OpacityColor, borderWidths, borderRadiuses); }