コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: StylePainter.cs プロジェクト: yaoya/UnityDecompiled
        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);
        }
コード例 #3
0
        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);
        }