MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / initGui

Method initGui

src/main/java/net/optifine/gui/GuiMessage.java:33–38  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

addAllMethod · 0.80
clearMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected