Ejemplo n.º 1
0
 public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
 {
     if (colorBar.scale.Y > 0)
     {
         spriteBatch.Draw(backBar.texture, backBar.position + invencibleButton.position, Color.White);
         colorBar.position = new Vector2(invencibleButton.position.X + 10, invencibleButton.position.Y + 165);
         colorBar.draw(spriteBatch);
         invencibleButton.draw(spriteBatch);
     }
 }
Ejemplo n.º 2
0
        public override void draw(SpriteBatch spriteBatch)
        {
            if (isActive)
            {
                backShape.draw(spriteBatch);

                base.draw(spriteBatch);

                backButton.draw(spriteBatch);
            }
        }
Ejemplo n.º 3
0
        public override void draw()
        {
            screenBatch.Begin();
            if (outt && ready)
            {
                loadScreen.draw(screenBatch);
            }
            else
            {
                drawChilds(screenBatch);
            }

            screenBatch.End();
        }
Ejemplo n.º 4
0
 public override void draw(SpriteBatch spriteBatch)
 {
     if (isActive)
     {
         backShape.draw(spriteBatch);
         base.draw(spriteBatch);
         spriteBatch.DrawString(ButtonFactory.spriteFont, info, position + new Vector2(42, 42), new Color(63, 53, 127), 0, new Vector2(), 0.45f, SpriteEffects.None, 0f);
         spriteBatch.DrawString(ButtonFactory.spriteFont, info, position + new Vector2(40, 40), Color.White, 0, new Vector2(), 0.45f, SpriteEffects.None, 0f);
         if (ButtonFactory.spriteFont != null && position != null)
         {
             backButton.draw(spriteBatch);
             //cheatButton.draw(spriteBatch);
         }
     }
 }
Ejemplo n.º 5
0
 public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
 {
     base.draw(spriteBatch);
     image.draw(spriteBatch);
     if (itemModel.rufusModel != null)
     {
         if (itemModel.rufusModel.title != "COMMING")
         {
             if (!itemModel.rufusModel.isActive)
             {
                 star.draw(spriteBatch);
                 spriteBatch.DrawString(ButtonFactory.spriteFont, itemModel.value.ToString(), position + labelPos, color, 0, new Vector2(), scalee, Microsoft.Xna.Framework.Graphics.SpriteEffects.None, 0f);
             }
         }
     }
     else if (!itemModel.isActive)
     {
         if (itemModel.rufusModel.title != "COMMING")
         {
             star.draw(spriteBatch);
             spriteBatch.DrawString(ButtonFactory.spriteFont, itemModel.value.ToString(), position + labelPos, color, 0, new Vector2(), scalee, Microsoft.Xna.Framework.Graphics.SpriteEffects.None, 0f);
         }
     }
 }
Ejemplo n.º 6
0
        public override void draw(SpriteBatch spriteBatch)
        {
            if (currentModel != null)
            {
                backShape.draw(spriteBatch);
                base.draw(spriteBatch);
                if (ButtonFactory.spriteFont != null && position != null)
                {
                    spriteBatch.DrawString(ButtonFactory.spriteFont, firstAtt, position + new Vector2(220, 74), Color.White, 0f, new Vector2(), .7f, SpriteEffects.None, 0f);
                    spriteBatch.DrawString(ButtonFactory.spriteFont, secAtt, position + new Vector2(220, 104), Color.White, 0f, new Vector2(), .7f, SpriteEffects.None, 0f);
                    spriteBatch.DrawString(ButtonFactory.spriteFont, thrAtt, position + new Vector2(220, 134), Color.White, 0f, new Vector2(), .7f, SpriteEffects.None, 0f);
                    spriteBatch.DrawString(ButtonFactory.spriteFont, titleLabel, position + new Vector2(texture.Width / 2 - (titleLabel.Length * 12) / 2, 6), Color.White, 0f, new Vector2(), .8f, SpriteEffects.None, 0f);

                    spriteBatch.DrawString(ButtonFactory.spriteFont, descLabel, position + new Vector2(44, 247), Color.White, 0f, new Vector2(), .5f, SpriteEffects.None, 0f);

                    if (!currentModel.isActive)
                    {
                        spriteBatch.DrawString(ButtonFactory.spriteFont, currentModel.price.ToString(), position + new Vector2(78, 45), color, 0, new Vector2(), 0.8f, Microsoft.Xna.Framework.Graphics.SpriteEffects.None, 0f);
                    }
                }
                for (int i = 0; i < cardImages.Count; i++)
                {
                    if (currentModel.isActive)
                    {
                        mainImage.color = Color.White;
                        if (cardImages.ElementAt(i) != buyButton && cardImages.ElementAt(i) != star)
                        {
                            cardImages.ElementAt(i).draw(spriteBatch);
                        }
                    }
                    else
                    {
                        mainImage.color = new Color(0, 0, 0);
                        cardImages.ElementAt(i).draw(spriteBatch);
                    }
                }
            }
        }