@@ -0,0 +1,2206 @@
+package eco;%0A%0Aimport org.lwjgl.opengl.GL11;%0Aimport java.awt.Rectangle;%0A%0Apublic class TextButton extends Button%7B%0A%0A  public float width;%0A  public float height;%0A%0A  public String text;%0A%0A  public TextButton(float x, float y, float width, float height, int tex, int tey, int texselected, int teyselected, String text)%7B%0A    super(x, y, width, tex, tey, texselected, teyselected);%0A    this.width = width;%0A    this.height = height;%0A    this.text = text;%0A  %7D%0A%0A  public void click(float mousex, float mousey)%7B%0A    Rectangle rect = new Rectangle((int) x, (int)y, (int)width, (int)height);%0A    if (rect.contains(mousex, mousey))%7B%0A      clickFlag = true;%0A    %7D%0A  %7D%0A%0A  public void render(float mousex, float mousey)%7B%0A    TextureAtlas atlas = Render.atlas;%0A    Rectangle rect = new Rectangle((int) x, (int)y, (int)width, (int)height);%0A    if (rect.contains(mousex, mousey))%7B%0A      GL11.glBegin(GL11.GL_QUADS);%0A      GL11.glTexCoord2f(atlas.getCoord(texselected, false), atlas.getCoord(teyselected, false));%0A      GL11.glVertex2f(x, y);%0A      GL11.glTexCoord2f(atlas.getCoord(texselected, true), atlas.getCoord(teyselected, false));%0A      GL11.glVertex2f(x + width, y);%0A      GL11.glTexCoord2f(atlas.getCoord(texselected, true), atlas.getCoord(teyselected, true));%0A      GL11.glVertex2f(x + width, y + height);%0A      GL11.glTexCoord2f(atlas.getCoord(texselected, false), atlas.getCoord(teyselected, true));%0A      GL11.glVertex2f(x, y + height);%0A      GL11.glEnd();%0A    %7D%0A    else%7B%0A      GL11.glBegin(GL11.GL_QUADS);%0A      GL11.glTexCoord2f(atlas.getCoord(tex, false), atlas.getCoord(tey, false));%0A      GL11.glVertex2f(x, y);%0A      GL11.glTexCoord2f(atlas.getCoord(tex, true), atlas.getCoord(tey, false));%0A      GL11.glVertex2f(x + width, y);%0A      GL11.glTexCoord2f(atlas.getCoord(tex, true), atlas.getCoord(tey, true));%0A      GL11.glVertex2f(x + width, y + height);%0A      GL11.glTexCoord2f(atlas.getCoord(tex, false), atlas.getCoord(tey, true));%0A      GL11.glVertex2f(x, y + height);%0A      GL11.glEnd();%0A    %7D%0A%0A%0A  %7D%0A%0A  public void render2()%7B%0A    int centX = (int) x;%0A    centX += (width - Render.font.getWidth(text)) / 2;%0A    Render.drawString(text, centX, (int) y + ((height - Render.font.getHeight(text)) / 2));%0A  %7D%0A%0A%7D%0A

Create TextButton.java