Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import org.lwjgl.input.Keyboard;
- import org.lwjgl.input.Mouse;
- import org.lwjgl.opengl.GL11;
- public class GuiTest extends GuiScreen
- {
- // private int amount, page;
- public void initGui()
- {
- // page = 0;
- //addButtons(page);
- }
- public void keyTyped(char c, int i)
- {
- System.out.println(i);
- super.keyTyped(c, i);
- }
- public void updateScreen()
- {
- if(Keyboard.isKeyDown(Keyboard.KEY_0))
- {
- System.out.println("0");
- }
- }
- /*public void addButtons(int page)
- {
- controlList.clear();
- if(page == 0)
- {
- controlList.add(new GuiButton(0, width/2-100, height/2-10, 200, 20, "Change page"));
- controlList.add(new GuiButton(1, width/2-100, height/2+10, 200, 20, "Display page"));
- }
- if(page == 1)
- {
- controlList.add(new GuiButton(1, width/2-100, height/2-10, 200, 20, "Display Page 2"));
- }
- }
- public void actionPerformed(GuiButton gb)
- {
- if(gb.id == 0)
- {
- page++;
- addButtons(page);
- }
- if(gb.id == 1)
- {
- System.out.println(page);
- }
- }*/
- public void drawScreen(int i, int j, float f)
- {
- drawDefaultBackground();
- /*drawRect(width/2, height/2, width/2 + 100, height/2 + 100, 0xffffffff);
- drawCenteredString(fontRenderer, "Hello, World", width/2, height/2, 0xff0000);
- GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
- GL11.glEnable(3042);
- GL11.glBindTexture(3553, mc.renderEngine.getTexture("/circle.png"));
- drawTexturedModalRect(width/2, height/2, 10, 1, 7, 7);
- GL11.glDisable(3042);*/
- super.drawScreen(i, j, f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement