public void Draw(SpriteBatch iSpriteBatch) { if (textBox != null) { textBox.Draw(iSpriteBatch); } if (leftClicked && InputManager.IsKeyDown(Keys.LeftControl)) { selectionRect.Draw(iSpriteBatch, 0.8f); } }
public override void Draw(SpriteBatch spriteBatch) { Texture2D tile = Resources.Menus.Title.Tile; int x; int y; for (x = 0; x < viewport.Width; x += 100) { for (y = 0; y < viewport.Height + 200; y += 100) { spriteBatch.Draw(tile, new Rectangle(x, y, 100, 100), Color.Gray); } } OptionsTitle.Draw(spriteBatch); ServerAddress.Draw(spriteBatch); Server.Draw(spriteBatch); Sensitivity.Draw(spriteBatch); MouseSettings.Draw(spriteBatch); Exit.Draw(spriteBatch); spriteBatch.Draw(pointerTex, pointerDim, Color.White); }