예제 #1
0
            public static void Draw()
            {
                DrawEngine.SplashScreen.MainScreen2();
                DrawEngine.SplashScreen.MainScreen();

                ConsoleWindows.Window w = new ConsoleWindows.Window();
                w.Animated         = true;
                w.Animation        = ConsoleWindows.Additional.StadartAnimation;
                w.Animation.Frames = 2;
                w.Speed            = 10;
                w.Border           = ConsoleWindows.Additional.BoldBorder;
                w.BorderColor      = ConsoleColor.DarkGray;
                //w.Border.HorizontalLine = '░';
                //w.Border.VerticalLine = '⌠';
                w.Border.LowerLeftCorner        = '@';
                w.Border.LowerRightCorner       = '@';
                w.Border.UpperLeftCorner        = '@';
                w.Border.UpperRightCorner       = '@';
                w.Border.PerpendicularRightward = '@';
                w.Border.PerpendicularLeftward  = '@';

                w.Header = true;
                w.Height = 27;
                w.Width  = 47;
                w.Left   = 25;
                w.Top    = 2;

                ConsoleWindows.Text t = new ConsoleWindows.Text(w);
                t.BackgroundColor = ConsoleColor.Black;
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.DarkCyan;
                t.Write("Dungeon");
                t.ForegroundColor = ConsoleColor.Red;
                t.Write(" 12");
                t.AppendLine();
                t.TextPosition    = ConsoleWindows.TextPosition.Right;
                t.ForegroundColor = ConsoleColor.Red;
                t.WriteLine("Альфа");
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.Magenta;
                t.Write("[You are not alone]");
                t.AppendLine();

                w.Text = t;

                //Controls
                ConsoleWindows.Button bng = new ConsoleWindows.Button(w);
                bng.Top           = 6;
                bng.Left          = 3;
                bng.Width         = 20;
                bng.Height        = 6;
                bng.ActiveColor   = ConsoleColor.Red;
                bng.InactiveColor = ConsoleColor.DarkRed;
                bng.CloseAfterUse = true;
                bng.Label         = "Маг крови";
                bng.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.BloodMage; };
                w.AddControl(bng);

                ConsoleWindows.Button bfg = new ConsoleWindows.Button(w);
                bfg.Top           = 9;
                bfg.Left          = 3;
                bfg.Width         = 20;
                bfg.Height        = 6;
                bfg.ActiveColor   = ConsoleColor.Red;
                bfg.InactiveColor = ConsoleColor.DarkRed;
                bfg.Label         = "Паладин";
                bfg.CloseAfterUse = true;
                bfg.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Paladin; };
                w.AddControl(bfg);

                ConsoleWindows.Button ba = new ConsoleWindows.Button(w);
                ba.Top           = 12;
                ba.Left          = 3;
                ba.Width         = 20;
                ba.Height        = 6;
                ba.ActiveColor   = ConsoleColor.Red;
                ba.InactiveColor = ConsoleColor.DarkRed;
                ba.Label         = "Алхимик";
                ba.CloseAfterUse = true;
                ba.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Alchemist; };
                w.AddControl(ba);

                ConsoleWindows.Button bex = new ConsoleWindows.Button(w);
                bex.Top           = 15;
                bex.Left          = 3;
                bex.Width         = 20;
                bex.Height        = 6;
                bex.ActiveColor   = ConsoleColor.Red;
                bex.InactiveColor = ConsoleColor.DarkRed;
                bex.Label         = "Разбойник";
                bex.CloseAfterUse = true;
                bex.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Assassin; };
                w.AddControl(bex);

                ConsoleWindows.Button bey = new ConsoleWindows.Button(w);
                bey.Top           = 18;
                bey.Left          = 3;
                bey.Width         = 20;
                bey.Height        = 6;
                bey.ActiveColor   = ConsoleColor.Red;
                bey.InactiveColor = ConsoleColor.DarkRed;
                bey.Label         = "Маг огня";
                bey.CloseAfterUse = true;
                bey.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.FireMage; };
                w.AddControl(bey);

                ConsoleWindows.Button ber = new ConsoleWindows.Button(w);
                ber.Top           = 6;
                ber.Left          = 24;
                ber.Width         = 20;
                ber.Height        = 6;
                ber.ActiveColor   = ConsoleColor.Red;
                ber.InactiveColor = ConsoleColor.DarkRed;
                ber.Label         = "Экзорцист";
                ber.CloseAfterUse = true;
                ber.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Inquisitor; };
                w.AddControl(ber);

                ConsoleWindows.Button bfgq = new ConsoleWindows.Button(w);
                bfgq.Top           = 9;
                bfgq.Left          = 24;
                bfgq.Width         = 20;
                bfgq.Height        = 6;
                bfgq.ActiveColor   = ConsoleColor.Red;
                bfgq.InactiveColor = ConsoleColor.DarkRed;
                bfgq.Label         = "Монах";
                bfgq.CloseAfterUse = true;
                bfgq.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Monk; };
                w.AddControl(bfgq);

                ConsoleWindows.Button baq = new ConsoleWindows.Button(w);
                baq.Top           = 12;
                baq.Left          = 24;
                baq.Width         = 20;
                baq.Height        = 6;
                baq.ActiveColor   = ConsoleColor.Red;
                baq.InactiveColor = ConsoleColor.DarkRed;
                baq.Label         = "Некромант";
                baq.CloseAfterUse = true;
                baq.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Necromant; };
                w.AddControl(baq);

                ConsoleWindows.Button bexq = new ConsoleWindows.Button(w);
                bexq.Top           = 15;
                bexq.Left          = 24;
                bexq.Width         = 20;
                bexq.Height        = 6;
                bexq.ActiveColor   = ConsoleColor.Red;
                bexq.InactiveColor = ConsoleColor.DarkRed;
                bexq.Label         = "Шаман";
                bexq.CloseAfterUse = true;
                bexq.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Shaman; };
                w.AddControl(bexq);

                ConsoleWindows.Button beyq = new ConsoleWindows.Button(w);
                beyq.Top           = 18;
                beyq.Left          = 24;
                beyq.Width         = 20;
                beyq.Height        = 6;
                beyq.ActiveColor   = ConsoleColor.Red;
                beyq.InactiveColor = ConsoleColor.DarkRed;
                beyq.Label         = "Воин";
                beyq.CloseAfterUse = true;
                beyq.OnClick       = () => { Rogue.RAM.Player.Class = MechEngine.BattleClass.Warrior; };
                w.AddControl(beyq);

                w.Draw();
            }
예제 #2
0
            public static void Draw()
            {
                DrawEngine.SplashScreen.MainScreen2();
                DrawEngine.SplashScreen.MainScreen();

                ConsoleWindows.Window w = new ConsoleWindows.Window();
                w.Animated         = true;
                w.Animation        = ConsoleWindows.Additional.HorizontalAnimation;
                w.Animation.Frames = 2;
                w.Speed            = 10;
                w.Border           = ConsoleWindows.Additional.BoldBorder;
                w.BorderColor      = ConsoleColor.DarkGray;
                //w.Border.HorizontalLine = '░';
                //w.Border.VerticalLine = '⌠';
                w.Border.LowerLeftCorner        = '@';
                w.Border.LowerRightCorner       = '@';
                w.Border.UpperLeftCorner        = '@';
                w.Border.UpperRightCorner       = '@';
                w.Border.PerpendicularRightward = '@';
                w.Border.PerpendicularLeftward  = '@';

                w.Header = true;
                w.Height = 24;
                w.Width  = 26;
                w.Left   = 36;
                w.Top    = 5;

                ConsoleWindows.Text t = new ConsoleWindows.Text(w);
                t.BackgroundColor = ConsoleColor.Black;
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.DarkCyan;
                t.Write("Dungeon");
                t.ForegroundColor = ConsoleColor.Red;
                t.Write(" 12");
                t.AppendLine();
                t.TextPosition    = ConsoleWindows.TextPosition.Right;
                t.ForegroundColor = ConsoleColor.Red;
                t.WriteLine("Альфа");
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.Magenta;
                t.Write("[You are not alone]");
                t.AppendLine();

                w.Text = t;

                //Controls
                ConsoleWindows.Button bng = new ConsoleWindows.Button(w);
                bng.Top           = 6;
                bng.Left          = 3;
                bng.Width         = 20;
                bng.Height        = 6;
                bng.ActiveColor   = ConsoleColor.Red;
                bng.InactiveColor = ConsoleColor.DarkRed;
                bng.CloseAfterUse = true;
                bng.Label         = "Вернуться в игру";
                bng.OnClick       = () =>
                {
                    if (Rogue.RAM.Map.Name.IndexOf("Мраумир") != -1)
                    {
                        SoundEngine.Music.TownTheme();
                    }
                    else
                    {
                        SoundEngine.Music.DungeonTheme();
                    }
                    Console.Clear();
                    Console.BackgroundColor = ConsoleColor.Black;
                    DrawEngine.GUIDraw.DrawGUI();
                    DrawEngine.GUIDraw.drawstat();
                };
                w.AddControl(bng);

                ConsoleWindows.Button bfg = new ConsoleWindows.Button(w);
                bfg.Top           = 9;
                bfg.Left          = 3;
                bfg.Width         = 20;
                bfg.Height        = 6;
                bfg.ActiveColor   = ConsoleColor.Red;
                bfg.InactiveColor = ConsoleColor.DarkRed;
                bfg.Label         = "Главное меню";
                bfg.CloseAfterUse = true;
                bfg.OnClick       = () => { SoundEngine.Music.MainTheme(); Rogue.Main(new string[] { "no" }); };
                w.AddControl(bfg);

                ConsoleWindows.Button ba = new ConsoleWindows.Button(w);
                ba.Top           = 12;
                ba.Left          = 3;
                ba.Width         = 20;
                ba.Height        = 6;
                ba.ActiveColor   = ConsoleColor.Red;
                ba.InactiveColor = ConsoleColor.DarkRed;
                ba.Label         = "Глобальный лог";
                ba.CloseAfterUse = true;
                ba.OnClick       = () => { PlayEngine.InGameSettings.Keymap(); };
                w.AddControl(ba);

                ConsoleWindows.Button bex = new ConsoleWindows.Button(w);
                bex.Top           = 15;
                bex.Left          = 3;
                bex.Width         = 20;
                bex.Height        = 6;
                bex.ActiveColor   = ConsoleColor.Red;
                bex.InactiveColor = ConsoleColor.DarkRed;
                bex.Label         = "Выход";
                bex.CloseAfterUse = true;
                bex.OnClick       = () =>
                {
                    Environment.Exit(0);
                };
                w.AddControl(bex);

                w.Draw();
            }
예제 #3
0
            public static void Draw()
            {
                DrawEngine.SplashScreen.MainScreen2();
                DrawEngine.SplashScreen.MainScreen();

                ConsoleWindows.Window w = new ConsoleWindows.Window();
                w.Animated         = true;
                w.Animation        = ConsoleWindows.Additional.StadartAnimation;
                w.Animation.Frames = 2;
                w.Speed            = 10;
                w.Border           = ConsoleWindows.Additional.BoldBorder;
                w.BorderColor      = ConsoleColor.DarkGray;
                //w.Border.HorizontalLine = '░';
                //w.Border.VerticalLine = '⌠';
                w.Border.LowerLeftCorner        = '@';
                w.Border.LowerRightCorner       = '@';
                w.Border.UpperLeftCorner        = '@';
                w.Border.UpperRightCorner       = '@';
                w.Border.PerpendicularRightward = '@';
                w.Border.PerpendicularLeftward  = '@';

                w.Header = true;
                w.Height = 27;
                w.Width  = 47;
                w.Left   = 25;
                w.Top    = 2;

                ConsoleWindows.Text t = new ConsoleWindows.Text(w);
                t.BackgroundColor = ConsoleColor.Black;
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.DarkCyan;
                t.Write("Dungeon");
                t.ForegroundColor = ConsoleColor.Red;
                t.Write(" 12");
                t.AppendLine();
                t.TextPosition    = ConsoleWindows.TextPosition.Right;
                t.ForegroundColor = ConsoleColor.Red;
                t.WriteLine("Альфа");
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.Magenta;
                t.Write("[You are not alone]");
                t.AppendLine();

                w.Text = t;

                //Controls
                ConsoleWindows.Button bng = new ConsoleWindows.Button(w);
                bng.Top           = 6;
                bng.Left          = 3;
                bng.Width         = 20;
                bng.Height        = 6;
                bng.ActiveColor   = ConsoleColor.Red;
                bng.InactiveColor = ConsoleColor.DarkRed;
                bng.CloseAfterUse = true;
                bng.Label         = "Человек";
                bng.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Human; };
                w.AddControl(bng);

                ConsoleWindows.Button bfg = new ConsoleWindows.Button(w);
                bfg.Top           = 9;
                bfg.Left          = 3;
                bfg.Width         = 20;
                bfg.Height        = 6;
                bfg.ActiveColor   = ConsoleColor.Red;
                bfg.InactiveColor = ConsoleColor.DarkRed;
                bfg.Label         = "Азрай";
                bfg.CloseAfterUse = true;
                bfg.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Elf; };
                w.AddControl(bfg);

                ConsoleWindows.Button ba = new ConsoleWindows.Button(w);
                ba.Top           = 12;
                ba.Left          = 3;
                ba.Width         = 20;
                ba.Height        = 6;
                ba.ActiveColor   = ConsoleColor.Red;
                ba.InactiveColor = ConsoleColor.DarkRed;
                ba.Label         = "Дроу";
                ba.CloseAfterUse = true;
                ba.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.DarkElf; };
                w.AddControl(ba);

                ConsoleWindows.Button bex = new ConsoleWindows.Button(w);
                bex.Top           = 15;
                bex.Left          = 3;
                bex.Width         = 20;
                bex.Height        = 6;
                bex.ActiveColor   = ConsoleColor.Red;
                bex.InactiveColor = ConsoleColor.DarkRed;
                bex.Label         = "Дварф";
                bex.CloseAfterUse = true;
                bex.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Dwarf; };
                w.AddControl(bex);

                ConsoleWindows.Button bey = new ConsoleWindows.Button(w);
                bey.Top           = 18;
                bey.Left          = 3;
                bey.Width         = 20;
                bey.Height        = 6;
                bey.ActiveColor   = ConsoleColor.Red;
                bey.InactiveColor = ConsoleColor.DarkRed;
                bey.Label         = "Гном";
                bey.CloseAfterUse = true;
                bey.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Gnome; };
                w.AddControl(bey);

                ConsoleWindows.Button ber = new ConsoleWindows.Button(w);
                ber.Top           = 6;
                ber.Left          = 24;
                ber.Width         = 20;
                ber.Height        = 6;
                ber.ActiveColor   = ConsoleColor.Red;
                ber.InactiveColor = ConsoleColor.DarkRed;
                ber.Label         = "Калдорай";
                ber.CloseAfterUse = true;
                ber.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.MoonElf; };
                w.AddControl(ber);

                ConsoleWindows.Button bfgq = new ConsoleWindows.Button(w);
                bfgq.Top           = 9;
                bfgq.Left          = 24;
                bfgq.Width         = 20;
                bfgq.Height        = 6;
                bfgq.ActiveColor   = ConsoleColor.Red;
                bfgq.InactiveColor = ConsoleColor.DarkRed;
                bfgq.Label         = "Орк";
                bfgq.CloseAfterUse = true;
                bfgq.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Orc; };
                w.AddControl(bfgq);

                ConsoleWindows.Button baq = new ConsoleWindows.Button(w);
                baq.Top           = 12;
                baq.Left          = 24;
                baq.Width         = 20;
                baq.Height        = 6;
                baq.ActiveColor   = ConsoleColor.Red;
                baq.InactiveColor = ConsoleColor.DarkRed;
                baq.Label         = "Тролль";
                baq.CloseAfterUse = true;
                baq.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Troll; };
                w.AddControl(baq);

                ConsoleWindows.Button bexq = new ConsoleWindows.Button(w);
                bexq.Top           = 15;
                bexq.Left          = 24;
                bexq.Width         = 20;
                bexq.Height        = 6;
                bexq.ActiveColor   = ConsoleColor.Red;
                bexq.InactiveColor = ConsoleColor.DarkRed;
                bexq.Label         = "Нежить";
                bexq.CloseAfterUse = true;
                bexq.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.Undead; };
                w.AddControl(bexq);

                ConsoleWindows.Button beyq = new ConsoleWindows.Button(w);
                beyq.Top           = 18;
                beyq.Left          = 24;
                beyq.Width         = 20;
                beyq.Height        = 6;
                beyq.ActiveColor   = ConsoleColor.Red;
                beyq.InactiveColor = ConsoleColor.DarkRed;
                beyq.Label         = "Падший";
                beyq.CloseAfterUse = true;
                beyq.OnClick       = () => { Rogue.RAM.Player.Race = MechEngine.Race.FallenAngel; };
                w.AddControl(beyq);

                w.Draw();
            }
예제 #4
0
            public static void Draw()
            {
                DrawEngine.SplashScreen.MainScreen2();
                DrawEngine.SplashScreen.MainScreen();

                ConsoleWindows.Window w = new ConsoleWindows.Window();
                w.Animated         = true;
                w.Animation        = ConsoleWindows.Additional.HorizontalAnimation;
                w.Animation.Frames = 2;
                w.Speed            = 10;
                w.Border           = ConsoleWindows.Additional.BoldBorder;
                w.BorderColor      = ConsoleColor.DarkGray;
                //w.Border.HorizontalLine = '░';
                //w.Border.VerticalLine = '⌠';
                w.Border.LowerLeftCorner        = '@';
                w.Border.LowerRightCorner       = '@';
                w.Border.UpperLeftCorner        = '@';
                w.Border.UpperRightCorner       = '@';
                w.Border.PerpendicularRightward = '@';
                w.Border.PerpendicularLeftward  = '@';

                w.Header = true;
                w.Height = 24;
                w.Width  = 26;
                w.Left   = 36;
                w.Top    = 5;

                ConsoleWindows.Text t = new ConsoleWindows.Text(w);
                t.BackgroundColor = ConsoleColor.Black;
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.DarkCyan;
                t.Write("Dungeon");
                t.ForegroundColor = ConsoleColor.Red;
                t.Write(" 12");
                t.AppendLine();
                t.TextPosition    = ConsoleWindows.TextPosition.Right;
                t.ForegroundColor = ConsoleColor.Red;
                t.WriteLine("Альфа");
                t.TextPosition    = ConsoleWindows.TextPosition.Center;
                t.ForegroundColor = ConsoleColor.Magenta;
                t.Write("[You are not alone]");
                t.AppendLine();

                w.Text = t;

                //Controls
                ConsoleWindows.Button bng = new ConsoleWindows.Button(w);
                bng.Top           = 6;
                bng.Left          = 3;
                bng.Width         = 20;
                bng.Height        = 6;
                bng.ActiveColor   = ConsoleColor.Red;
                bng.InactiveColor = ConsoleColor.DarkRed;
                bng.CloseAfterUse = true;
                bng.Label         = "Новая игра";
                bng.OnClick       = () =>
                {
                    DrawEngine.ConsoleDraw.WriteTitle("Начало новой игры...\n \n Нажмите любую клавишу для продолжения...");
                    PlayEngine.GamePlay.NewGame.CharacterCreation();
                };
                w.AddControl(bng);

                ConsoleWindows.Button bfg = new ConsoleWindows.Button(w);
                bfg.Top           = 9;
                bfg.Left          = 3;
                bfg.Width         = 20;
                bfg.Height        = 6;
                bfg.ActiveColor   = ConsoleColor.Red;
                bfg.InactiveColor = ConsoleColor.DarkRed;
                bfg.Label         = "Быстрая игра";
                bfg.CloseAfterUse = true;
                bfg.OnClick       = () => { PlayEngine.GamePlay.NewGame.CharacterCreation(true); };
                w.AddControl(bfg);

                ConsoleWindows.Button ba = new ConsoleWindows.Button(w);
                ba.Top           = 12;
                ba.Left          = 3;
                ba.Width         = 20;
                ba.Height        = 6;
                ba.ActiveColor   = ConsoleColor.Red;
                ba.InactiveColor = ConsoleColor.DarkRed;
                ba.Label         = "Создатели";
                ba.CloseAfterUse = true;
                ba.OnClick       = () => { MenuEngine.CreditsWindow.Draw(); MenuEngine.MainMenu.Draw(); };
                w.AddControl(ba);

                ConsoleWindows.Button bex = new ConsoleWindows.Button(w);
                bex.Top           = 15;
                bex.Left          = 3;
                bex.Width         = 20;
                bex.Height        = 6;
                bex.ActiveColor   = ConsoleColor.Red;
                bex.InactiveColor = ConsoleColor.DarkRed;
                bex.Label         = "Выход";
                bex.CloseAfterUse = true;
                bex.OnClick       = () =>
                {
                    Environment.Exit(0);
                };
                w.AddControl(bex);

                w.Draw();
            }