Exemplo n.º 1
0
  @Override
  public void func_175180_a(float p_175180_1_) {

    super.func_175180_a(p_175180_1_);

    if (!hideClientMod.isEnabled()) {
      Client.getClient()
          .getFontRenderer()
          .drawStringWithShadow(
              "Yawk"
                  + EnumChatFormatting.GREEN
                  + " v2.5"
                  + EnumChatFormatting.LIGHT_PURPLE
                  + " ("
                  + (Client.getClient().getSession().isPremium() ? "Premium" : "Beta")
                  + ")",
              3,
              2,
              0xFFFFFFFF,
              true);
    }

    if (Client.getClient().getMinecraft().currentScreen == null) {
      for (Window win : Client.getClient().gui.windows) {
        if (win.pinned) {
          win.renderWindow(0, 0);
        }
      }
    }

    EventManager.call(eventGuiRender);

    // map.draw();
  }
  @Override
  public void func_175180_a(float p_175180_1_) {
    super.func_175180_a(p_175180_1_);

    Wrapper.fu_default.drawString(
        Cryton.getClient_Name() + " Version:" + Cryton.getClient_Vesion(), 1, 1, 0xffffffff);
    renderArrayList();
    Cryton.theClient.getGuiManager().renderPinned();
  }
Exemplo n.º 3
0
  @Override
  protected void renderTooltip(ScaledResolution res, float partialTicks) {
    if (pre(HOTBAR)) return;

    if (mc.playerController.isSpectator()) {
      this.spectatorGui.renderTooltip(res, partialTicks);
    } else {
      super.renderTooltip(res, partialTicks);
    }

    post(HOTBAR);
  }
Exemplo n.º 4
0
 /** Renders dragon's (boss) health on the HUD */
 @Override
 protected void renderBossHealth() {
   if (pre(BOSSHEALTH)) return;
   bind(Gui.icons);
   GlStateManager.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, 1, 0);
   mc.mcProfiler.startSection("bossHealth");
   GlStateManager.enableBlend();
   super.renderBossHealth();
   GlStateManager.disableBlend();
   mc.mcProfiler.endSection();
   post(BOSSHEALTH);
 }
  @Override
  public void renderGameOverlay(float par1, boolean par2, int par3, int par4) {
    boolean wasExtended = false;
    ticks++;
    if (ticks == 5) {
      wasExtended = Resilience.getInstance().getClickGui().values.isExtended();
      Resilience.getInstance().getClickGui().values.setExtended(true);
      Resilience.getInstance().getModuleManager().setModuleState("GUI", true);
    }
    if (ticks == 20) {
      Resilience.getInstance().getClickGui().values.setExtended(wasExtended);
    }
    if (once && !Resilience.getInstance().isFirstTime()) {
      once = false;
      Resilience.getInstance()
          .getLogger()
          .infoChat("Want to know how to chat in the IRC? Put the \"@\" sign before your message!");
    }
    if (display) {
      invoker.displayScreen(new GuiInventory(toView));
      display = false;
    }
    ;
    if (go) {
      if (Resilience.getInstance().isFirstTime()) {
        Resilience.getInstance()
            .getLogger()
            .infoChat("Welcome to " + Resilience.getInstance().getName() + "!");
        Resilience.getInstance()
            .getLogger()
            .infoChat(
                "To open the GUI hit the \"Right Shift\" key, and to open the console hit the \"Minus\" key (\"-\").");
        Resilience.getInstance()
            .getLogger()
            .infoChat("Remember to right click a button to get tons of great options :D");
        Resilience.getInstance()
            .getLogger()
            .infoChat("To chat in the IRC, type \"@\" before the message.");
        Resilience.getInstance().getLogger().infoChat("Enjoy! - Krisp");
      }
      go = false;
    }
    int prevArrayListCount = arrayListCount;
    arrayListCount = 0;
    ScaledResolution var5 =
        new ScaledResolution(
            wrapper.getGameSettings(), invoker.getDisplayWidth(), invoker.getDisplayHeight());
    int var6 = invoker.getScaledWidth(var5);
    int var7 = invoker.getScaledHeight(var5);
    FontRenderer var8 = wrapper.getFontRenderer();
    invoker.setupOverlayRendering();
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_LIGHTING);
    if (Resilience.getInstance().isEnabled()) {
      for (DefaultPanel panel : ClickGui.windows) {
        if (panel.isPinned() && !(invoker.getCurrentScreen() instanceof ClickGui)) {
          GL11.glPushMatrix();
          GL11.glDisable(GL11.GL_LIGHTING);
          panel.draw(-1, -1);
          GL11.glPopMatrix();
        }
      }
      int width = 0;

      if (Resilience.getInstance().getValues().enabledModsEnabled) {
        for (DefaultModule mod : Resilience.getInstance().getModuleManager().moduleList) {
          if (mod.isEnabled() && mod.getCategory() != ModuleCategory.GUI && mod.isVisible()) {
            int realWidth =
                (int) Resilience.getInstance().getModListFont().getWidth(mod.getDisplayName());
            if (realWidth > width) {
              width = realWidth + 8;
            }
          }
        }
      }

      if (Resilience.getInstance().getValues().enabledModsEnabled) {
        GL11.glPushMatrix();
        GL11.glDisable(GL11.GL_LIGHTING);
        if (prevArrayListCount > 0) {
          drawRect(0, 0, 75, prevArrayListCount * 12 + 4, 0x88000000);
        }
        GL11.glPopMatrix();
      }
      if (Resilience.getInstance().getValues().enabledModsEnabled) {
        for (DefaultModule mod : Resilience.getInstance().getModuleManager().moduleList) {
          if (mod.isEnabled() && mod.getCategory() != ModuleCategory.GUI && mod.isVisible()) {
            GL11.glPushMatrix();
            GL11.glDisable(GL11.GL_LIGHTING);
            Resilience.getInstance()
                .getModListFont()
                .drawString(mod.getDisplayName(), 2, arrayListCount * 12 + 2, 0xff9ab3ff);
            GL11.glPopMatrix();
            arrayListCount++;
          }
        }
      }

      if (Resilience.getInstance().getValues().noFireEffectEnabled && invoker.isBurning()) {
        Resilience.getInstance()
            .getWrapper()
            .getFontRenderer()
            .drawStringWithShadow(
                "You're on fire",
                invoker.getDisplayWidth() / 2
                    - Resilience.getInstance()
                        .getWrapper()
                        .getFontRenderer()
                        .getStringWidth("You're on fire")
                    - 4,
                invoker.getDisplayHeight() / 2
                    - Resilience.getInstance().getWrapper().getFontRenderer().FONT_HEIGHT
                    - 4,
                0xffff0000);
      }

      if (Resilience.getInstance().getValues().potionEffectsEnabled) {
        renderPotions();
      }

      if (notifyTicks >= 0) {
        notifyTicks--;
        Resilience.getInstance()
            .getStandardFont()
            .drawCenteredString("\247b" + notifyString, invoker.getWidth() / 2, 4, 0xffffffff);
      }
    }

    super.renderGameOverlay(par1, par2, par3, par4);
  }