Exemplo n.º 1
0
 protected Ecran(String _titre, Ecran _ecranPrecedent)
 {
     titre          = _titre;
     ecranPrecedent = _ecranPrecedent;
     arrierePlan    = IntPtr.Zero;
     boutonSel      = -1;
     boutons        = new List <Bouton>();
 }
Exemplo n.º 2
0
        public Ecran_Instructions(Ecran precedent) : base("Instructions", precedent)
        {
            Size resolution       = Gfx.getResolution();
            Size taille_rect_page = Gfx.getTailleRectangleTexte(18, "{0}", page + 1);

            arrierePlan = Gfx.images["fond_ecran"];

            boutons.Add(new Bouton(0, (resolution.Width / 2 - taille_rect_page.Width / 2) - 36, resolution.Height - 60, 28, 28, 18, "<"));
            boutons.Add(new Bouton(1, (resolution.Width / 2 - taille_rect_page.Width / 2) + 18, resolution.Height - 60, 28, 28, 18, ">"));

            boutons.Add(new Bouton(100, resolution.Width / 3, resolution.Height - 30, 18, "Retour"));
        }
Exemplo n.º 3
0
        public Ecran_ConfigPartie(Ecran _ecranPrecedent) : base("Configuration de la partie", _ecranPrecedent)
        {
            Size resolution = Gfx.getResolution();
            Size taille_rect_nb_joueurs_val   = Gfx.getTailleRectangleTexte(20, "{0}", nb_joueurs);
            Size taille_rect_nb_manches_val   = Gfx.getTailleRectangleTexte(20, "{0}", nb_manches);
            Size taille_rect_temps_manche_val = Gfx.getTailleRectangleTexte(20, "{0}:{1:00}", temps_manche / 60, temps_manche % 60);

            arrierePlan = Gfx.images["fond_ecran"];

            boutons.Add(new Bouton(0, (resolution.Width / 2 - taille_rect_nb_joueurs_val.Width / 2) - 40, 150, 30, 30, 20, "<"));
            boutons.Add(new Bouton(1, (resolution.Width / 2 - taille_rect_nb_joueurs_val.Width / 2) + 20, 150, 30, 30, 20, ">"));

            boutons.Add(new Bouton(2, (resolution.Width / 2 - taille_rect_nb_manches_val.Width / 2) - 40, 220, 30, 30, 20, "<"));
            boutons.Add(new Bouton(3, (resolution.Width / 2 - taille_rect_nb_manches_val.Width / 2) + 20, 220, 30, 30, 20, ">"));

            boutons.Add(new Bouton(4, (resolution.Width / 2 - taille_rect_temps_manche_val.Width / 2) - 40, 290, 30, 30, 20, "<"));
            boutons.Add(new Bouton(5, (resolution.Width / 2 - taille_rect_temps_manche_val.Width / 2) + 50, 290, 30, 30, 20, ">"));

            boutons.Add(new Bouton(6, resolution.Width / 3, resolution.Height - 60, 20, "Jouer"));
            boutons.Add(new Bouton(100, resolution.Width / 3, resolution.Height - 30, 20, "Retour"));
        }