Ejemplo n.º 1
0
  /** Draws the screen and all the components in it. */
  public void drawScreen(int par1, int par2, float par3) {
    bg.RenderBackground(par1, par2, par3);
    this.guiTexturePackSlot.drawScreen(par1, par2, par3);

    if (this.refreshTimer <= 0) {
      this.mc.texturePackList.updateAvaliableTexturePacks();
      this.refreshTimer += 20;
    }

    StringTranslate var4 = StringTranslate.getInstance();
    this.drawCenteredString(
        this.fontRenderer, var4.translateKey("texturePack.title"), this.width / 2, 16, 16777215);
    this.drawCenteredString(
        this.fontRenderer,
        var4.translateKey("texturePack.folderInfo"),
        this.width / 2 - 77,
        this.height - 26,
        8421504);
    super.drawScreen(par1, par2, par3);
  }
Ejemplo n.º 2
0
 /** Called from the main game loop to update the screen. */
 public void updateScreen() {
   bg.Update();
   super.updateScreen();
   --this.refreshTimer;
 }
Ejemplo n.º 3
0
 /**
  * Called when the mouse is moved or a mouse button is released. Signature: (mouseX, mouseY,
  * which) which==-1 is mouseMove, which==0 or which==1 is mouseUp
  */
 protected void mouseMovedOrUp(int par1, int par2, int par3) {
   super.mouseMovedOrUp(par1, par2, par3);
 }
Ejemplo n.º 4
0
 /** Called when the mouse is clicked. */
 protected void mouseClicked(int par1, int par2, int par3) {
   super.mouseClicked(par1, par2, par3);
 }