コード例 #1
0
        /// <summary>
        /// Helper draws a translucent black sprite, used for fading specific areas
        /// </summary>
        public void DrawRect(Color color, Rectangle rect, IScreenTransition screen, ITransitionObject transition, Texture2D tex)
        {
            //set the transition location
            rect.Location = transition.Position(screen, rect);

            //draw the filled background
            DrawRect(screen.AlphaColor(color), rect, tex);
        }
コード例 #2
0
        public void DrawOutline(Color color, Rectangle rect, IScreenTransition screen, ITransitionObject transition, float lineWidth = 5f)
        {
            //set the transition location
            rect.Location = transition.Position(screen, rect);

            //draw the button outline
            DrawOutline(screen.AlphaColor(color), rect, lineWidth);
        }
コード例 #3
0
        /// <summary>
        /// Draw a
        /// </summary>
        public void DrawRect(Color color, Rectangle rect, IScreenTransition screen, ITransitionObject transition)
        {
            //get the color for the background & border
            color.A = (byte)(color.A * screen.Alpha);

            //set the transition location
            rect.Location = transition.Position(screen, rect);

            //draw the filled background
            DrawRect(screen.AlphaColor(color), rect);
        }