public VirtualConsole( Action<String> processCommand, GraphicsDevice graphicsDevice, ContentManager contentManager) { commandHandler = processCommand; this.graphicsDevice = graphicsDevice; this.contentManager = contentManager; display = new TextDisplay(80, 25, graphicsDevice, contentManager); dynamicConsole = new DynamicConsoleBuffer(2048, display); }
public DynamicConsoleBuffer(int scrollbackSize, TextDisplay display) { this.scrollbackSize = scrollbackSize; Reset(display); }
public void Reset(TextDisplay display) { output = ""; outputScrollPoint = 0; this.display = display; inputs = new Input[2] { new Input(), new Input() }; activeInput = inputs[0]; maxInputLines = 8; }