Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the window resizes, the buttonList is cleared beforehand.
()
| 31 | * window resizes, the buttonList is cleared beforehand. |
| 32 | */ |
| 33 | public void initGui() |
| 34 | { |
| 35 | this.buttonList.add(new GuiOptionButton(0, this.width / 2 - 74, this.height / 6 + 96, this.confirmButtonText)); |
| 36 | this.listLines2.clear(); |
| 37 | this.listLines2.addAll(this.fontRendererObj.listFormattedStringToWidth(this.messageLine2, this.width - 50)); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Called by the controls from the buttonList when activated. (Mouse pressed for buttons) |
nothing calls this directly
no test coverage detected