public void Draw(SpriteBatch spriteBatch) { if (charaSelector != null) charaSelector.Draw(spriteBatch); if (display) { map = (Map)game.Scene; int drawX = 0; int drawY = 0; spriteBatch.Draw(UIUpperLeft, new Rectangle(drawX, drawY, 200, 200), null, Color.White, 0.0f, Vector2.Zero, SpriteEffects.None, 0.1f); if (!game.gameFlags["bNight"]) spriteBatch.Draw(timeOfDayIcons[0], new Rectangle(drawX, drawY, 70, 70), null, Color.White, 0.0f, Vector2.Zero, SpriteEffects.None, 0.09f); else { spriteBatch.Draw(timeOfDayIcons[1], new Rectangle(drawX, drawY, 70, 70), null, Color.White, 0.0f, Vector2.Zero, SpriteEffects.None, 0.09f); } for (int i = 0; i < Buttons.Length; i++) Buttons[i].Draw(spriteBatch); drawX = game.GetScreenWidth() - 70; drawY = 48; spriteBatch.Draw(UIRight, new Rectangle(drawX, drawY, 70, 460), null, Color.White, 0.0f, Vector2.Zero, SpriteEffects.None, 0.1f); if (!game.gameFlags["bAccessPartyWindow"]) spriteBatch.Draw(UIGreyCircle, new Rectangle(drawX + 4, drawY + 294, 62, 62), null, Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0.05f); drawX = 0; drawY = game.GetScreenHeight() - 100; if (map.DisplayName != null) { spriteBatch.Draw(UIBottomLeft, new Rectangle(drawX, drawY, 212, 100), null, Color.White, 0.0f, Vector2.Zero, SpriteEffects.None, 0.12f); spriteBatch.DrawString(spriteFont, "~" + map.DisplayName + "~", new Vector2(drawX + 103, drawY + 74), Color.White, 0.0f, TextMethods.CenterText(spriteFont, "~" + map.DisplayName + "~"), 1, SpriteEffects.None, 0.11f); } } }