public void draw(SpriteBatch spriteBatch) { int alpha = (int)(((screenSize.Y - Position.Y) / screenSize.Y) * 192); Color backColour = new Color(255, 255, 255, alpha); spriteBatch.Draw(blackout, new Rectangle(position.ToPoint().X, 0, screenSize.X, screenSize.Y), backColour); scoreboard.draw(spriteBatch); }
public override void draw(SpriteBatch spriteBatch) { base.draw(spriteBatch); joinedGrid.draw(spriteBatch); if (QRCode != null) { spriteBatch.Draw(QRCode, spacer.Position, null, Color.White, 0, Vector2.Zero, (float)ScaleManager.InterfaceScale, SpriteEffects.None, 0); } }
public void draw(SpriteBatch spriteBatch) { trayPatch.draw(spriteBatch, position.ToPoint() + patchPos, patchSize, ScaleManager.InterfaceScale); scoreboard.draw(spriteBatch); scoreTab.draw(spriteBatch); }