Esempio n. 1
0
 public Display(Vector2 position, string text, string tutorial, Vector2 tutorialOffset)
 {
     Position          = position;
     Info              = FancyText.Parse(text, 896, 8, 1f, new Color?(Color.Black * 0.6f), null);
     Tutorial          = new WallbouncePlayback(tutorial, tutorialOffset);
     Tutorial.OnRender = delegate()
     {
         Draw.Line(-64f, 20f, 64f, 20f, Color.Black);
         Draw.Line(-64f, 20f, -64f, -60f, Color.Black);
     };
     routine = new Coroutine(Routine(), true);
 }
Esempio n. 2
0
        public override void Added(WallbouncePresentation presentation)
        {
            base.Added(presentation);
            List <MTexture> textures = Presentation.Gfx.GetAtlasSubtextures(presentation.GraphicsKeyPrefix + "playback/platforms");

            tutorial          = new WallbouncePlayback(Presentation.GetTutorialPath("wallbounce"), new Vector2(-88f, 20f));
            tutorial.OnRender = delegate()
            {
                textures[(int)(time % textures.Count)].DrawCentered(Vector2.Zero);
            };
            tutorial.Playback.Visible = true;
        }