Beispiel #1
0
        public DrawerContent GetColorfull()
        {
            DrawerContent Content = new DrawerContent();

            for (int j = 0; j < 30; j++)
            {
                DrawerLine Line = new DrawerLine();
                for (int i = 0; i < 69; i++)
                {
                    DrawerChar Char = new DrawerChar();
                    Char.Icon = Map[i, j].Icon;
                    Char.Color = Map[i, j].Color;
                    Char.Back = Map[i, j].Back;

                    Line.Add(Char);
                }
                Content.AppendLine(Line);
            }

            return Content;
        }
Beispiel #2
0
        public override void Draw()
        {
            Console.Clear();
            base.DrawTitle();

            DrawerOptions opt = new DrawerOptions();

            opt.Left = (Console.WindowWidth / 2) - (Text.Length / 2);
            opt.Top  = (Console.WindowHeight / 2);

            DrawerLine Line = new DrawerLine();

            Line.DefaultForegroundColor = ForegroundColor;
            Line.DefaultBackgroundColor = BackgroundColor;

            Line.Add(Text);
            DrawerContent con = new DrawerContent();

            con.AppendLine(Line);

            Drawer.Draw(con, opt);
        }