Example #1
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            var colour = Color.White;

            if (_isHovering)
            {
                colour = Color.Gray;
            }

            spriteBatch.Draw(Texture, Rectangle, colour);

            if (plantedSeed != null)
            {
                plantedSeed.Draw(gameTime, spriteBatch);
                spriteBatch.DrawString(font, ((int)plantedSeed.timeTillNextStage.TotalSeconds).ToString(), plantedSeed.Position, Color.White);
            }
        }