public void SetVisible(bool state) { isVisible = state; if (targetResolution.Width != width || targetResolution.Height != height) { targetResolution = new TargetResolution(width, height); } if (textDisplay.BufferWidth != columns || textDisplay.BufferWidth != lines) { textDisplay = new TextDisplay(columns, lines); } textDisplay.IsVisible = isVisible; textDisplay.IsTextVisible = isTextVisible; textDisplay.IsBackgroundVisible = isBackgroundVisible; textDisplay.IsCursorVisible = isCursorVisible; }
void Start() { targetResolution = new TargetResolution(width, height); textDisplay = new TextDisplay(columns, lines); textDisplay.WriteLine("Display " + name); }