public override void Draw(GameTime gameTime) { GameRef.SpriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, GameRef.ScaleMatrix); GameRef.SpriteBatch.Draw(background, new Vector2(0, 0), Color.White); GameRef.SpriteBatch.End(); base.Draw(gameTime); GameRef.SpriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, GameRef.ScaleMatrix); switch (connectionState) { case ConnectionState.SERVER_SELECT: serverSelectionMenuComponent.Draw(gameTime, GameRef.SpriteBatch); break; case ConnectionState.LOGIN: loginComponent.Draw(gameTime, GameRef.SpriteBatch); break; } GameRef.SpriteBatch.End(); }
override public void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); menu.Draw(gameTime); spriteBatch.End(); }
public void Draw(SpriteBatch sb) { sb.Draw(gradientTexture, new Vector2(0, 0), new Color(backgroundAlpha, backgroundAlpha, backgroundAlpha)); DrawTitle(sb); menu.Draw(sb); }
public override void Draw(GameTime gameTime) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Primitives.Instance.drawBoxFilled(spriteBatch, targetRect, new Color(Color.Black, 0.5f)); Menu.Draw(); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { GameRef.SpriteBatch.Begin(); GameRef.SpriteBatch.Draw(background, Vector2.Zero, Color.White); GameRef.SpriteBatch.End(); base.Draw(gameTime); GameRef.SpriteBatch.Begin(); menuComponent.Draw(gameTime, GameRef.SpriteBatch); GameRef.SpriteBatch.End(); }
public override void Draw(GameTime gameTime) { penumbra.BeginDraw(); GameReference.SpriteBatch.Begin(rasterizerState: GameReference.RasterizerState); GameReference.SpriteBatch.Draw(background, Vector2.Zero, Color.White); GameReference.SpriteBatch.End(); penumbra.Draw(gameTime); base.Draw(gameTime); GameReference.SpriteBatch.Begin(rasterizerState: GameReference.RasterizerState); menuComponent.Draw(gameTime, GameReference.SpriteBatch); GameReference.SpriteBatch.End(); }
public override void Draw(GameTime gameTime) { GameRef.SpriteBatch.Begin(); GameRef.SpriteBatch.Draw( textureManager.GetTexture("title-screen"), new Rectangle(0, 0, 1280, 720), Color.White); menu.Draw(gameTime, GameRef.SpriteBatch); base.Draw(gameTime); GameRef.SpriteBatch.End(); }
public override void Draw(GameTime gameTime) { GameRef.SpriteBatch.Begin(); GameRef.SpriteBatch.Draw(background, Vector2.Zero, Color.White); GameRef.SpriteBatch.End(); base.Draw(gameTime); GameRef.SpriteBatch.Begin(); menuComponent.Draw(gameTime, GameRef.SpriteBatch); if (isSoundEnabled) { GameRef.SpriteBatch.Draw(unmute, new Vector2(970, 270), Color.White); } else { GameRef.SpriteBatch.Draw(mute, new Vector2(970, 270), Color.White); } GameRef.SpriteBatch.End(); }
public override void Draw(GameTime gameTime) { menus.Draw(gameTime); base.Draw(gameTime); }