Add tint to background for book-style GUIs

This commit is contained in:
Electroblob77
2020-04-13 15:41:59 +01:00
parent 16ad8543d8
commit b45c202ac5
2 changed files with 3 additions and 0 deletions
@@ -46,6 +46,7 @@ public abstract class GuiSpellInfo extends GuiScreen {
public void drawScreen(int mouseX, int mouseY, float partialTicks){
int left = this.width/2 - xSize/2;
int top = this.height/2 - this.ySize/2;
this.drawDefaultBackground();
this.drawBackgroundLayer(left, top, mouseX, mouseY);
super.drawScreen(mouseX, mouseY, partialTicks); // Just draws the buttons
this.drawForegroundLayer(left, top, mouseX, mouseY);