j’ai un probleme j’ai voulue modifier le GuiIngameMenu mais quand je lance le jeu la texture est bien présente mais il n’y a pas le texte dessus une idée
class du GuiCustomButton
package com.mod.valerium;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
public class GuiCustomButton extends GuiButton {
public GuiCustomButton(int par1, int par2, int par3, int par4, int par5, String str) {
super(par1, par2, par3, par4, par5, str);
}
public void drawButton(Minecraft par1Minecraft, int par2, int par3) {
par1Minecraft.renderEngine.bindTexture(new ResourceLocation("valerium:textures/gui/widgets.png"));
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
boolean flag = par2 >= xPosition && par3 >= yPosition && par2 < xPosition + width && par3 < yPosition + height;
int i = getHoverState(flag);
drawTexturedModalRect(xPosition, yPosition, 0, 0 + i * 20, width / 2, height);
drawTexturedModalRect(xPosition + width / 2, yPosition, 200 - width / 2, 0 + i * 20, width / 2, height);
mouseDragged(par1Minecraft, par2, par3);
FontRenderer fontrenderer = par1Minecraft.fontRenderer;
}
}