Пример #1
0
        protected override void Initialize()
        {
            #region -Initialisation des boutons-

            container               = new Rectangle();
            boutonBonus             = new Bouton();
            boutonBonusSelect       = new Bouton();
            boutonBonusSurvol       = new Bouton();
            boutonChargerPartie     = new Bouton();
            boutonChargerDONTDOTHIS = new Bouton();
            boutonChargerSelect     = new Bouton();
            boutonChargerSurvol     = new Bouton();
            boutonNouveauJeu        = new Bouton();
            boutonNouveauJeuSelect  = new Bouton();
            boutonNouveauJeuSurvol  = new Bouton();
            boutonOptions           = new Bouton();
            boutonOptionsSelect     = new Bouton();
            boutonOptionsSurvol     = new Bouton();
            boutonQuitter           = new Bouton();
            boutonQuitterSelect     = new Bouton();
            boutonQuitterSurvol     = new Bouton();

            boutonRetour        = new Bouton();
            boutonRetourSelect  = new Bouton();
            boutonRetourSurvol  = new Bouton();
            boutonFenetre       = new Bouton();
            boutonFenetreSurvol = new Bouton();

            #endregion

            this.graphics.IsFullScreen = true;
            sexyviolon = graphics.PreferredBackBufferWidth;
            sexysaxo   = graphics.PreferredBackBufferHeight;

            Window.Title = "Menu";


            this.IsMouseVisible = true;

            graphics.ApplyChanges();

            base.Initialize();
        }
Пример #2
0
        protected override void Initialize()
        {
            #region -Initialisation des boutons-

            container = new Rectangle();
            boutonBonus = new Bouton();
            boutonBonusSelect = new Bouton();
            boutonBonusSurvol = new Bouton();
            boutonChargerPartie = new Bouton();
            boutonChargerDONTDOTHIS = new Bouton();
            boutonChargerSelect = new Bouton();
            boutonChargerSurvol = new Bouton();
            boutonNouveauJeu = new Bouton();
            boutonNouveauJeuSelect = new Bouton();
            boutonNouveauJeuSurvol = new Bouton();
            boutonOptions = new Bouton();
            boutonOptionsSelect = new Bouton();
            boutonOptionsSurvol = new Bouton();
            boutonQuitter = new Bouton();
            boutonQuitterSelect = new Bouton();
            boutonQuitterSurvol = new Bouton();

            boutonRetour = new Bouton();
            boutonRetourSelect = new Bouton();
            boutonRetourSurvol = new Bouton();
            boutonFenetre = new Bouton();
            boutonFenetreSurvol = new Bouton();

            #endregion

            graphics.ToggleFullScreen();
            sexyviolon = graphics.PreferredBackBufferWidth = 1920;
            sexysaxo = graphics.PreferredBackBufferHeight = 1080;

            this.IsMouseVisible = true;

            graphics.ApplyChanges();

            base.Initialize();
        }