Artifact when closing the console

Feb 12, 2010 at 9:14 AM

It's a minor artifact, and I've only tested it on 2 computers so far, but the console is rendered in its full size a few (one?) frame after it's recently been closed. It's still completely awesome, but I've been trying to find the error and having some serious trouble. Anyone else experience this and / or have a fix?


It's a really great project otherwise <3

Apr 1, 2010 at 11:43 PM

It's a very simple fix. The problem is that once the console state is set to Closed, the XnaConsole's Visible property is only set to false inside the Draw method. This doesn't work: XNA checks the Visible property before calling Draw - so the console is drawn at full size exactly one frame. So either add a "return;" to the Draw method, or make sure you set this.Visible to false every time you set ConsoleState to Closed.