Esempio n. 1
0
            public override KeyPressReturn Action()
            {
                //Launch the showcase

                RenderUtils.Color(ConsoleColor.Black, ConsoleColor.Gray);
                Console.Clear();

                RenderUtils.Echo("Hello!", true);
                RenderUtils.Sleep(3000);

                RenderUtils.Type("...", 500);
                RenderUtils.Sleep(2000);

                RenderUtils.Type("Hello?\n", 30);
                RenderUtils.Sleep(1000);

                RenderUtils.Echo("It is cloudy: \n\n", true);
                new Cloud().Draw(Console.CursorLeft, Console.CursorTop);
                RenderUtils.Sleep(3000);

                RenderUtils.Type("\n\nCool I didn't care\n", 30);
                RenderUtils.Sleep(1000);

                Draw.Sprite("H o w   d a r e   y o u", ConsoleColor.Black, ConsoleColor.Red);
                RenderUtils.Sleep(5000);

                Console.Clear();
                RenderUtils.Sleep(3000);

                Graphic Landscape = BasicGraphic.LoadFromResource(Resources.Landscape);

                Landscape.Draw(0, 0);
                RenderUtils.Sleep(5000);

                Graphic TextBox = HiColorGraphic.LoadFromResource(Resources.Textbox);

                TextBox.Draw(Landscape.GetWidth() - TextBox.GetWidth() - 2, 2);

                RenderUtils.Color(ConsoleColor.Gray, ConsoleColor.Black);
                RenderUtils.SetPos(Landscape.GetWidth() - TextBox.GetWidth() - 2 + 6, 2);
                RenderUtils.Type("And so the man died.");
                RenderUtils.Sleep(3000);

                RenderUtils.SetPos(Landscape.GetWidth() - TextBox.GetWidth() - 2 + 6, 3);
                RenderUtils.Type("  t h e      e n d  ", 100);
                RenderUtils.Sleep(5000);

                RenderUtils.Color(ConsoleColor.DarkCyan, ConsoleColor.White);
                Console.Clear();
                Parent.Redraw();
                return(KeyPressReturn.NOTHING);
            }
Esempio n. 2
0
        /// <summary>Shows the BasicRender SplashScreen (which also shows the logo)</summary>
        static void BasicRenderSplash()
        {
            RenderUtils.Color(ConsoleColor.DarkGray, ConsoleColor.White);
            Console.Clear();

            Graphic Rainbow = HiColorGraphic.LoadFromResource(Resources.Rainbow);

            Draw.Box(ConsoleColor.Black, Rainbow.GetWidth(), Rainbow.GetHeight() - 1, 19, 11);

            Rainbow.Draw(17, 10);
            Draw.CenterText("BasicRender", 12, ConsoleColor.White, ConsoleColor.Black);

            Draw.CenterText("P r e s s     a     k e y", 20, ConsoleColor.DarkGray, ConsoleColor.White);
        }