public override void Draw(SpriteBatch spriteBatch) { if (DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Background.draw(spriteBatch); FaceWindow.draw(spriteBatch); NameBanner.draw(spriteBatch); Name.draw(spriteBatch); spriteBatch.End(); Rectangle faceClip = new Rectangle( (int)Face.loc.X + 8 - (FaceWindow.width / 2), (int)Face.loc.Y - (120 + FACE_CLIP_BOTTOM), FaceWindow.width - 16, 120); Face.draw(spriteBatch, Vector2.Zero, faceClip); Window.draw(spriteBatch); if (FieldBaseButton != null && DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); FieldBaseButton.Draw(spriteBatch); spriteBatch.End(); } base.Draw(spriteBatch); } }
public override void Draw(SpriteBatch spriteBatch) { if (DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Background.draw(spriteBatch); FaceWindow.draw(spriteBatch); spriteBatch.End(); Rectangle faceClip = new Rectangle( (int)AuguryFace.loc.X + 8 - (FaceWindow.width / 2), (int)AuguryFace.loc.Y - (96 + FACE_CLIP_BOTTOM), FaceWindow.width - 16, 96); AuguryFace.draw(spriteBatch, Vector2.Zero, faceClip); TextBox.draw(spriteBatch); Window.draw(spriteBatch); } base.Draw(spriteBatch); }