public ErrorGuiButton(Rect buttonRectangle, string buttonText, ErrorGuiButtonDelegate ButtonFunction)
 {
     this.buttonRectangle = buttonRectangle;
     this.buttonText = buttonText;
     this.ButtonFunction = ButtonFunction;
 }
 public void AddButton(string buttonText, ErrorGuiButtonDelegate ButtonFunction)
 {
     int xPos = this.consoleWidth - 100;
     int yPos = this.consoleHeight - 30 - (this.buttonList.Count * 30);
     ErrorGuiButton guiButton = new ErrorGuiButton(new Rect(xPos, yPos, 100, 25), buttonText, null);
     guiButton.ButtonFunction += this.Hide;
     guiButton.ButtonFunction += ButtonFunction;
     this.buttonList.Add(guiButton);
 }