Ejemplo n.º 1
0
 public Psyche(ContentManager Content, Neuroleptic.Items.Psyche.Type t_Type)
     : base(Content, "Objects/PsycheOrbs")
 {
     eType = t_Type;
     UFrameMax = 18;
     VFrameMax = 3;
     FrameWidth = Texture.Width / UFrameMax;
     FrameHeight = Texture.Height / VFrameMax;
     UFrameIndex = Neuroleptic.Control.Rand.Next(0, UFrameMax);
     iAnimationSpeed = Neuroleptic.Control.Rand.Next(50, 150); //MAGIC NUMBERS
     UpdateIndex();
     Origin = new Vector2(FrameWidth / 2, FrameHeight / 2);
 }
Ejemplo n.º 2
0
        //!---CONSTRUCTORS---!
        public PopQuestion(ContentManager Content, Neuroleptic.Control.Questions.PopQuestion pq_Question)
            : base()
        {
            pQuestion = pq_Question;
            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = new Color(Color.Black, 1.0f);
            sPixel.FrameHeight = 544;
            sPixel.FrameWidth = 960;
            sPixel.Alpha = 0.7f;

            bNo = new Neuroleptic.States.GUIItems.Button(Content, new Vector2(128, 544 - 256), "No", "Menus/Button");
            bYes = new Neuroleptic.States.GUIItems.Button(Content, new Vector2(960 - 128 - 256, 544 - 256), "Yes", "Menus/Button");
        }