Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package TwixCore.gui;
- import java.awt.image.BufferedImage;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.GuiButton;
- import net.minecraft.client.gui.GuiScreen;
- import net.minecraft.util.StatCollector;
- import org.lwjgl.opengl.GL11;
- public class GuiChangelogDownload extends GuiScreen {
- private GuiButton download;
- public GuiChangelogDownload()
- {
- }
- @Override
- public void initGui() {
- this.buttonList.add(new GuiButton(200, (this.width / 2) - 50, this.height - 45, 100, 20, "Close"));
- }
- public boolean doesGuiPauseGame()
- {
- return false;
- }
- protected void actionPerformed(GuiButton guibutton)
- {
- if(guibutton.id == 1)
- {
- //close gui code here
- }
- }
- public void onGuiClosed()
- {
- }
- public void drawScreen(int i, int j, float f)
- {
- drawDefaultBackground();
- drawGradientRect(150, 20, width - 150, height - 20, 0x60500000, 0xa0803030);
- drawCenteredString(fontRenderer, " \u00A7lMy Mods", width / 2, 45, 0xffffff);
- drawCenteredString(fontRenderer, "\u00A7l1." + "\u00A7fTwixCore", width / 2, 55, 0xffffff);
- drawCenteredString(fontRenderer, "\u00A7l2." + "\u00A7fTwixMod", width / 2, 65, 0xffffff);
- super.drawScreen(i, j, f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment