Ejemplo n.º 1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            try
            {
                if (isVisible)
                {
                    backPanel.Draw(spriteBatch);

                    upgradeList.Draw(spriteBatch);

                    mainButton.Draw(spriteBatch);
                    closeButton.Draw(spriteBatch);
                    lockButton.Draw(spriteBatch);

                    if (hoverPanel != null)
                    {
                        hoverPanel.Draw(spriteBatch);
                    }
                }
            }
            catch (Exception e)
            {
                Main.NewTextMultiline(e.ToString());
            }
        }