@@ 84-90 (lines=7) @@ | ||
81 | columnsDefinition, this, this.textRenderer)); |
|
82 | } |
|
83 | ||
84 | @Override |
|
85 | public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) { |
|
86 | this.drawBackground(matrices); |
|
87 | DrawableHelper.drawCenteredText(matrices, this.textRenderer, TITLE.getString(), this.width / 2, VERTICAL_PADDING + (this.textRenderer.fontHeight / 2), 0xFFFFFFFF); |
|
88 | drawExitButton(); |
|
89 | ||
90 | super.render(matrices, mouseX, mouseY, delta); |
|
91 | } |
|
92 | ||
93 | /** |
@@ 82-88 (lines=7) @@ | ||
79 | return super.keyPressed(keyCode, scanCode, modifiers); |
|
80 | } |
|
81 | ||
82 | @Override |
|
83 | public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) { |
|
84 | this.drawBackground(matrices); |
|
85 | DrawableHelper.drawCenteredText(matrices, this.textRenderer, TITLE.getString(), this.width / 2, VERTICAL_PADDING + (this.textRenderer.fontHeight / 2), 0xFFFFFFFF); |
|
86 | drawExitButton(); |
|
87 | ||
88 | super.render(matrices, mouseX, mouseY, delta); |
|
89 | } |
|
90 | ||
91 | private void drawBackground(MatrixStack matrices) { |