public override void Draw(SpriteBatch spriteBatch, GameTime gameTime) { cManager.Draw(spriteBatch, gameTime); if (cManager.CurrentContainerKey == "Option") { OptionMenuManager.Draw(spriteBatch, gameTime); } base.Draw(spriteBatch, gameTime); }
public override void Draw(SpriteBatch spriteBatch, GameTime gameTime) { BackgroundSB.Begin(); Background.Draw(BackgroundSB, gameTime); BackgroundSB.End(); spriteBatch.FillRectangle(new Rectangle(0, 0, Common.graphics.PreferredBackBufferWidth, Common.graphics.PreferredBackBufferHeight), new Color(0, 0, 0, 100)); spriteBatch.Draw(Logo, new Vector2(Common.graphics.PreferredBackBufferWidth / 2 - Logo.Width / 2, Common.graphics.PreferredBackBufferHeight / 2 - Logo.Height / 2 - 230)); MainMenuManager.Draw(spriteBatch, gameTime); if (MainMenuManager.CurrentContainerKey == "Option") { OptionMenuManager.Draw(spriteBatch, gameTime); } base.Draw(spriteBatch, gameTime); }