public override void Draw(GameTime gameTime)
 {
     GestionSprite.Begin();
     AfficherNiveauEtPrix();
     GestionSprite.End();
     base.Draw(gameTime);
 }
Esempio n. 2
0
 public override void Draw(GameTime gameTime)
 {
     GestionSprite.Begin();
     GestionSprite.Draw(Fond, DestinationImage, Color.White);
     GestionSprite.DrawString(Font, Entrée, Position, Color.Black, 0, OrigineChaîne, 1f, SpriteEffects.None, 0);
     GestionSprite.End();
 }
 public override void Draw(GameTime gameTime)
 {
     GestionSprite.Begin();
     GestionSprite.DrawString(Arial, "+" + NbCollectionRessource.ToString(), Position, Couleur);
     GestionSprite.End();
     Game.GraphicsDevice.BlendState        = BlendState.Opaque;
     Game.GraphicsDevice.DepthStencilState = DepthStencilState.Default;
     Game.GraphicsDevice.SamplerStates[0]  = SamplerState.LinearWrap;
 }
        public override void Draw(GameTime gameTime)
        {
            GestionSprite.Begin();
            DessinerIcon();
            GestionSprite.End();

            Game.GraphicsDevice.BlendState        = BlendState.Opaque;
            Game.GraphicsDevice.DepthStencilState = DepthStencilState.Default;
            Game.GraphicsDevice.SamplerStates[0]  = SamplerState.LinearWrap;
        }
Esempio n. 5
0
        public override void Draw(GameTime gameTime)
        {
            GestionSprite.Begin();
            GestionSprite.Draw(Textures[IndexI], DestinationI, SourceI, Color.White);
            GestionSprite.Draw(Textures[IndexF], DestinationF, SourceF, Color.White);

            GestionSprite.Draw(TextureFlècheD, RégionFlècheD, Color.White);
            GestionSprite.Draw(TextureFlècheG, RégionFlècheG, Color.White);
            GestionSprite.End();
        }
Esempio n. 6
0
        public override void Draw(GameTime gameTime)
        {
            GestionSprite.Begin();
            if (ChangerDeCouleurBoutton)
            {
                GestionSprite.Draw(ArrièreBouttonAvecSouris, RectangleAffichage, Color.White);
            }
            else
            {
                GestionSprite.Draw(ArrièreBouttonSansSouris, RectangleAffichage, Color.Gray);
            }
            if (ChangerCouleurTexte)
            {
                GestionSprite.DrawString(Font, Texte, Position, Color.Red);
            }
            else
            {
                GestionSprite.DrawString(Font, Texte, Position, Couleur);
            }

            GestionSprite.End();
            base.Draw(gameTime);
        }