/// <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); }
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); }
/// <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); }