예제 #1
0
 public ErrorGuiButton(Rect buttonRectangle, string buttonText, ErrorGuiButtonDelegate ButtonFunction)
 {
     this.buttonRectangle = buttonRectangle;
     this.buttonText = buttonText;
     this.ButtonFunction = ButtonFunction;
 }
예제 #2
0
 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);
 }