Ejemplo n.º 1
0
 void changePage(IPage pageto, BasicFadeStyle fsto)
 {
     toChangePage  = pageto;
     toChangeStyle = fsto;
     nowPage.PausePage();
     fadeManager.FadeOut(nowGameTime, fsto);
     changePageState = 1;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     testStyle = new BasicFadeStyle(
         Content.Load <Texture2D>(@"fade"),
         new TimeSpan(0, 0, 0, 0, 499),
         new TimeSpan(0, 0, 0, 0, 500));
     testTexture = Content.Load <Texture2D>(@"blackvideo");
     KeyConfig.Init();
     hiscorestorage.Init();
     // TODO: use this.Content to load your game content here
 }
Ejemplo n.º 3
0
 public void FadeIn(GameTime gameTime, BasicFadeStyle styleto)
 {
     gameLink.Components.Remove(this);
     gameLink.Components.Add(this);
     StartTime        = gameTime.TotalGameTime;
     nowFrame         = TimeSpan.Zero;
     operatingStyle   = styleto;
     MState           = MediaState.Playing;
     FState           = FadeState.FadeIn;
     loadSafeSign     = false;
     fadeOpacityColor = Color.White;
 }