Beispiel #1
0
 private void construirTitulo()
 {
     pacientes = new List <paciente>();
     title     = new Titulo("Test Raven", 100, 500, @"Fuentes\fuenteTitulo", Content);
     datosPers = new Titulo("Datos Personales", Content, @"Fuentes\fuenteMenu", 230, 140);
     menu      = new Menu(800, 100, 10, rutaFuente, opcMenu);
     menu.LoadContent(Content);//1
     hand      = new mano(12, 3, 5, 5, @"Imagenes\mano");
     fondoTest = new fondo(@"Imagenes\fondo");
     albertIMG = new albert(269, 413, 830, 300, @"Imagenes\albert");
     //logoUM = new logos(210, 75, 10, 620, @"Imagenes\logos");
     logoUM      = new imagenStatic(210, 75, 10, 620, @"Imagenes\logos");
     tableResult = new tablaResultados(@"Fuentes\fuenteLb");
     sonidoFondo = new generaSonido(@"Sonido\house", Content, true);
 }
Beispiel #2
0
        public Menu(int x, int y, int separacion, string ruta, string[] opcsMenu)
            : base(x, y, ruta)
        {
            this.elementos              = new string[opcsMenu.Length];
            this.numeroElementos        = opcsMenu.Length;
            this.elementoSeleccionado   = Color.Red;
            this.elementonoSeleccionado = Color.Blue;
            this.elementos              = new string[this.numeroElementos];
            this.separacion             = separacion;
            this.rectangulosOpciones    = new Rectangle[numeroElementos];

            for (int i = 0; i < numeroElementos; i++)
            {
                rectangulosOpciones[i] = new Rectangle();
                this.elementos[i]      = opcsMenu[i];
            }

            sonido = new generaSonido("Content\\Sonido\\gameAudio.xgs", "Content\\Sonido\\");
        }