Add tint to background for book-style GUIs
This commit is contained in:
@@ -46,6 +46,7 @@ public abstract class GuiSpellInfo extends GuiScreen {
|
|||||||
public void drawScreen(int mouseX, int mouseY, float partialTicks){
|
public void drawScreen(int mouseX, int mouseY, float partialTicks){
|
||||||
int left = this.width/2 - xSize/2;
|
int left = this.width/2 - xSize/2;
|
||||||
int top = this.height/2 - this.ySize/2;
|
int top = this.height/2 - this.ySize/2;
|
||||||
|
this.drawDefaultBackground();
|
||||||
this.drawBackgroundLayer(left, top, mouseX, mouseY);
|
this.drawBackgroundLayer(left, top, mouseX, mouseY);
|
||||||
super.drawScreen(mouseX, mouseY, partialTicks); // Just draws the buttons
|
super.drawScreen(mouseX, mouseY, partialTicks); // Just draws the buttons
|
||||||
this.drawForegroundLayer(left, top, mouseX, mouseY);
|
this.drawForegroundLayer(left, top, mouseX, mouseY);
|
||||||
|
|||||||
@@ -244,6 +244,8 @@ public class GuiWizardHandbook extends GuiScreen {
|
|||||||
@Override
|
@Override
|
||||||
public void drawScreen(int mouseX, int mouseY, float partialTicks){
|
public void drawScreen(int mouseX, int mouseY, float partialTicks){
|
||||||
|
|
||||||
|
this.drawDefaultBackground();
|
||||||
|
|
||||||
int left = this.width / 2 - GUI_WIDTH / 2;
|
int left = this.width / 2 - GUI_WIDTH / 2;
|
||||||
int top = this.height / 2 - GUI_HEIGHT / 2;
|
int top = this.height / 2 - GUI_HEIGHT / 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user