Exemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();

            font = Game.Content.Load<SpriteFont>("PixelFont" + Game.DefaultFontSize);

            // itembox
            itembox = new ItemBox(Game);
            components.Add(itembox);

            // splash
            var center = new Vector2(Game.ScreenWidth / 2, Game.ScreenHeight / 2);
            splash = new Splash(
                Game, center, Game.ScreenWidth,
                Color.Black, 0, 0.05, 0.3, 2);
            components.Add(splash);

            // box
            backgroundBox = new Image(Game)
            {
                Texture = Game.Content.Load<Texture2D>("white_pixel"),
                Color = Color.Black,
                Alpha = 0
            };
            components.Add(backgroundBox);

            // text
            text = new TextLabel(Game)
            {
                Text = SpecialName,
                Color = Color.White,
                Font = font,
                Alpha = 0,
            };
            components.Add(text);
        }
Exemplo n.º 2
0
 public static AnimChain.IChain Splash(this AnimChain.IChain chain, Splash target)
 {
     chain.Next(1000, (progress) =>
     {
         target.Progress = progress;
     });
     return chain;
 }