mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 22:02:17 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,45 @@
|
||||
package noppes.npcs.client.gui.util;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.GuiScreenBook;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GuiButtonNextPage extends GuiNpcButton{
|
||||
private final boolean field_146151_o;
|
||||
private static final String __OBFID = "CL_00000745";
|
||||
private static final ResourceLocation field_110405_a = new ResourceLocation("textures/gui/book.png");
|
||||
|
||||
public GuiButtonNextPage(int par1, int par2, int par3, boolean par4)
|
||||
{
|
||||
super(par1, par2, par3, 23, 13, "");
|
||||
this.field_146151_o = par4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)
|
||||
{
|
||||
if (this.visible)
|
||||
{
|
||||
boolean flag = p_146112_2_ >= this.xPosition && p_146112_3_ >= this.yPosition && p_146112_2_ < this.xPosition + this.width && p_146112_3_ < this.yPosition + this.height;
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
p_146112_1_.getTextureManager().bindTexture(field_110405_a);
|
||||
int k = 0;
|
||||
int l = 192;
|
||||
|
||||
if (flag)
|
||||
{
|
||||
k += 23;
|
||||
}
|
||||
|
||||
if (!this.field_146151_o)
|
||||
{
|
||||
l += 13;
|
||||
}
|
||||
|
||||
this.drawTexturedModalRect(this.xPosition, this.yPosition, k, l, 23, 13);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user