@@ -0,0 +1,1675 @@
+package info.u_team.u_team_core.gui.elements;%0A%0Aimport org.lwjgl.opengl.GL11;%0A%0Aimport net.minecraft.client.Minecraft;%0Aimport net.minecraft.client.gui.FontRenderer;%0Aimport net.minecraft.util.math.MathHelper;%0Aimport net.minecraftforge.fml.client.config.GuiUtils;%0A%0Apublic class BetterButton extends UButton %7B%0A%09%0A%09protected float scale;%0A%09%0A%09public BetterButton(int x, int y, int width, int height, float scale, String displayString) %7B%0A%09%09this(x, y, width, height, scale, displayString, EMTPY_PRESSABLE);%0A%09%7D%0A%09%0A%09public BetterButton(int x, int y, int width, int height, float scale, String displayString, IPressable pessable) %7B%0A%09%09super(x, y, width, height, displayString, pessable);%0A%09%09this.scale = scale;%0A%09%7D%0A%09%0A%09@Override%0A%09public void renderButton(int mouseX, int mouseY, float partialTicks) %7B%0A%09%09final Minecraft minecraft = Minecraft.getInstance();%0A%09%09final FontRenderer fontRenderer = minecraft.fontRenderer;%0A%09%09%0A%09%09String message = getMessage();%0A%09%09%0A%09%09GuiUtils.drawContinuousTexturedBox(WIDGETS_LOCATION, x, y, 0, 46 + getYImage(isHovered()) * 20, width, height, 200, 20, 2, 3, 2, 2, 0);%0A%09%09renderBg(minecraft, mouseX, mouseY);%0A%09%09%0A%09%09int messageWidth = MathHelper.ceil(scale * fontRenderer.getStringWidth(message));%0A%09%09int ellipsisWidth = MathHelper.ceil(scale * fontRenderer.getStringWidth(%22...%22));%0A%09%09%0A%09%09if (messageWidth %3E width - 6 && messageWidth %3E ellipsisWidth) %7B%0A%09%09%09message = fontRenderer.trimStringToWidth(message, width - 6 - ellipsisWidth).trim() + %22...%22;%0A%09%09%7D%0A%09%09%0A%09%09GL11.glPushMatrix();%0A%09%09GL11.glTranslatef(x + width / 2, y + (height - 8 * scale) / 2, 0);%0A%09%09GL11.glScalef(scale, scale, 0);%0A%09%09drawCenteredString(fontRenderer, message, 0, 0, getFGColor());%0A%09%09GL11.glPopMatrix();%0A%09%7D%0A%09%0A%7D%0A

Add better button