Highly incomplete code. First work on porting to 1.12. Still need to rework a LOT of things.
This commit is contained in:
@@ -181,7 +181,7 @@ public class GuiImgButton extends GuiButton implements ITooltip
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton( final Minecraft par1Minecraft, final int par2, final int par3 )
|
||||
public void drawButton( final Minecraft par1Minecraft, final int par2, final int par3, float partial )
|
||||
{
|
||||
if( this.visible )
|
||||
{
|
||||
|
||||
@@ -59,7 +59,7 @@ public class GuiProgressBar extends GuiButton implements ITooltip
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton( final Minecraft par1Minecraft, final int par2, final int par3 )
|
||||
public void drawButton( final Minecraft par1Minecraft, final int par2, final int par3, final float partial )
|
||||
{
|
||||
if( this.visible )
|
||||
{
|
||||
|
||||
@@ -71,7 +71,7 @@ public class GuiTabButton extends GuiButton implements ITooltip
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton( final Minecraft minecraft, final int x, final int y )
|
||||
public void drawButton( final Minecraft minecraft, final int x, final int y, float partial )
|
||||
{
|
||||
if( this.visible )
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ public class GuiToggleButton extends GuiButton implements ITooltip
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton( final Minecraft par1Minecraft, final int par2, final int par3 )
|
||||
public void drawButton( final Minecraft par1Minecraft, final int par2, final int par3, final float partial )
|
||||
{
|
||||
if( this.visible )
|
||||
{
|
||||
|
||||
@@ -61,13 +61,14 @@ public class MEGuiTextField extends GuiTextField
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseClicked( final int xPos, final int yPos, final int button )
|
||||
public boolean mouseClicked( final int xPos, final int yPos, final int button )
|
||||
{
|
||||
super.mouseClicked( xPos, yPos, button );
|
||||
|
||||
final boolean requiresFocus = this.isMouseIn( xPos, yPos );
|
||||
|
||||
this.setFocused( requiresFocus );
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user