public SelectionScreen(MogwaiController mogwaiController, int width, int height) : base(width, height) { _borderSurface = new Basic(width + 2, height + 2, Font); _borderSurface.DrawBox(new Rectangle(0, 0, _borderSurface.Width, _borderSurface.Height), new Cell(Color.DarkCyan, Color.Black), null, ConnectedLineThick); _borderSurface.Position = new Point(-1, -1); Children.Add(_borderSurface); _controlsConsole = new ControlsConsole(110, 1) { Position = new Point(0, 24) }; _controlsConsole.Fill(Color.DarkCyan, Color.Black, null); Children.Add(_controlsConsole); _infoConsole = new MogwaiConsole("Info", "", 24, 38) { Position = new Point(113, -8) }; Children.Add(_infoConsole); _debugConsole = new Console(24, 38) { Position = new Point(113, 22) }; _debugConsole.Fill(Color.Beige, Color.TransparentBlack, null); _debugConsole.Print(1, 1, $"Debug Console [{Coloring.Gold(" ")}]:"); _debugConsole.Print(1, 2, $"..armors: {Armors.Instance.AllBuilders().Count}"); _debugConsole.Print(1, 3, $"..weapns: {Weapons.Instance.AllBuilders().Count}"); _debugConsole.Print(1, 4, $"..mnstrs: {Monsters.Instance.AllBuilders().Count}"); Children.Add(_debugConsole); _logConsole = new MogwaiConsole("Log", "", 110, 3) { Position = new Point(0, 27) }; Children.Add(_logConsole); HeaderPosition = 1; TrailerPosition = height - 2; CreateHeader(); CreateTrailer(); _controller = mogwaiController; _transferFunds = 2; Init(); }
public PlayScreen(MogwaiController mogwaiController, int width, int height) : base(width, height) { _controller = mogwaiController; var mogwaiKeys = _controller.CurrentMogwaiKeys ?? _controller.TestMogwaiKeys(); _mogwai = mogwaiKeys.Mogwai; _playScreenButtons = new Dictionary <string, MogwaiButton>(); var playStatsConsole = new PlayStatsConsole(_mogwai, 44, 22) { Position = new Point(0, 0) }; Children.Add(playStatsConsole); _welcome = new CustomWelcome(91, 22) { Position = new Point(46, 0) }; _adventureChoose = new CustomAdventureChoose(mogwaiController, 91, 22) { Position = new Point(46, 0) }; _shop = new CustomShop(_mogwai, 91, 22) { Position = new Point(46, 0) }; _adventure = new CustomAdventure(mogwaiController, mogwaiKeys, 91, 22) { Position = new Point(46, 0) }; _adventureStats = new CustomAdventureStats(_mogwai, 91, 22) { Position = new Point(46, 0) }; //var logFont = Global.LoadFont("Bakus8.font").GetFont(Font.FontSizes.One); _log = new ScrollingConsole(85, 13, 100, null) { Position = new Point(0, 25) }; Children.Add(_log); var playInfoConsole = new PlayInfoConsole(mogwaiController, mogwaiKeys, 49, 14) { Position = new Point(88, 24) }; Children.Add(playInfoConsole); _command1 = new TestControls(86, 1) { Position = new Point(0, 23) }; _command1.Fill(Color.Transparent, Color.Black, null); Children.Add(_command1); _command2 = new ControlsConsole(8, 2) { Position = new Point(40, 2) }; _command2.Fill(Color.Transparent, Color.DarkGray, null); playInfoConsole.Children.Add(_command2); State = SadGuiState.Play; SetCustomWindowState(PlayScreenState.Welcome); Init(); }