public Hud(Character player, int width, int height) : base(width, height) { this.player = player; var borderSurface = new SadConsole.Surfaces.Basic(width + 1, height, base.Font); borderSurface.DrawBox(new Rectangle(0, 0, borderSurface.Width, borderSurface.Height), new Cell(Color.White, Color.Black), null, SadConsole.Surfaces.SurfaceBase.ConnectedLineThick); this.Children.Add(borderSurface); this.Print(2, 2, "Name:"); this.Print(7, 2, player.Name); }
public MessageLog(Character player, Game game, int width, int height) : base(width, height) { this.player = player; this.game = game; logBox = new SadConsole.Surfaces.Basic(width + 1, height, base.Font); logBox.DrawBox(new Rectangle(0, height - 10, logBox.Width, 10), new Cell(Color.White, Color.Black), null, SadConsole.Surfaces.SurfaceBase.ConnectedLineThick); originX = 1; originY = height - 9; this.Children.Add(logBox); }