Ejemplo n.º 1
0
        public string ReadLineOnWithColors(Can2 Canvas)
        {
            string Result = Canvas.DrawColorsAndReadLine(this.TextColor, this.CursorPosition);

            this.WriteLine(Result);
            return(Result);
        }
Ejemplo n.º 2
0
        public string ReadLineOn(Can2 Canvas)
        {
            string Result = Canvas.DrawAndReadLine(this.CursorPosition);

            this.WriteLine(Result);
            return(Result);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Can2 can = Can2.CreateCanvasSingleton("Example", 96, 32);

            LayoutCon2 lay = new LayoutCon2(can, 64, 24, 3, 3);

            lay.AddConnection(new Ent2(20, 3));
            lay.AddConnection(new Ent2(10, 2));
            lay.AddConnection(new Ent2(7, 3));
            lay.AddConnection(new Ent2(10, 5));

            lay.LayoutDirection      = LayoutCon2.LayDir.TopToBottom;
            lay.ContentInitialOffset = new Vec2i(2, 1);

            for (int i = 0; i < lay.ConnectedCount; ++i)
            {
                lay.GetConnectedDetails(i).Clear((char)('0' + i));
            }

            can.Draw();

            Console.ReadKey();
        }