Fix buttons rendering incorrectly in wizard's handbook
This commit is contained in:
@@ -9,16 +9,12 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
|||||||
class GuiButtonInvisible extends GuiButton {
|
class GuiButtonInvisible extends GuiButton {
|
||||||
|
|
||||||
public GuiButtonInvisible(int id, int x, int y, int width, int height){
|
public GuiButtonInvisible(int id, int x, int y, int width, int height){
|
||||||
|
|
||||||
super(id, x, y, width, height, "");
|
super(id, x, y, width, height, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Override
|
||||||
* Draws this button to the screen.
|
public void drawButton(Minecraft minecraft, int mouseX, int mouseY, float partialTicks){
|
||||||
*/
|
this.hovered = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
|
||||||
public void drawButton(Minecraft par1Minecraft, int par2, int par3){
|
|
||||||
this.hovered = par2 >= this.x && par3 >= this.y && par2 < this.x + this.width
|
|
||||||
&& par3 < this.y + this.height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,15 +22,14 @@ class GuiButtonTurnPage extends GuiButton {
|
|||||||
this.nextPage = isNextPage;
|
this.nextPage = isNextPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Override
|
||||||
* Draws this button to the screen.
|
public void drawButton(Minecraft minecraft, int mouseX, int mouseY, float partialTicks){
|
||||||
*/
|
|
||||||
public void drawButton(Minecraft par1Minecraft, int par2, int par3){
|
|
||||||
if(this.visible){
|
if(this.visible){
|
||||||
boolean flag = par2 >= this.x && par3 >= this.y && par2 < this.x + this.width
|
|
||||||
&& par3 < this.y + this.height;
|
boolean flag = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
|
||||||
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
par1Minecraft.getTextureManager().bindTexture(texture);
|
minecraft.getTextureManager().bindTexture(texture);
|
||||||
int k = 0;
|
int k = 0;
|
||||||
int l = 192;
|
int l = 192;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user