Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.FontRenderer.drawString()


      GL11.glTranslatef(0F, 10F, 0F);
      GL11.glScalef(0.6F, 0.6F, 0.6F);
      font.drawString(EnumChatFormatting.ITALIC + "" + EnumChatFormatting.BOLD + String.format(StatCollector.translateToLocal("botaniamisc.edition"), ItemLexicon.getEdition()), 0, 0, 0xA07100);

      GL11.glTranslatef(0F, 15F, 0F);
      font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover0"), 0, 0, 0x79ff92);

      GL11.glTranslatef(0F, 10F, 0F);
      font.drawString(EnumChatFormatting.UNDERLINE + StatCollector.translateToLocal("botaniamisc.lexiconcover1"), 0, 0, 0x79ff92);

      GL11.glTranslatef(0F, 25F, 0F);
View Full Code Here


      GL11.glTranslatef(0F, 15F, 0F);
      font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover0"), 0, 0, 0x79ff92);

      GL11.glTranslatef(0F, 10F, 0F);
      font.drawString(EnumChatFormatting.UNDERLINE + StatCollector.translateToLocal("botaniamisc.lexiconcover1"), 0, 0, 0x79ff92);

      GL11.glTranslatef(0F, 25F, 0F);
      GL11.glPushMatrix();
      GL11.glScalef(6F, 6F, 6F);
      GL11.glTranslatef(5F, -0.3F, 0F);
View Full Code Here

      GL11.glTranslatef(0F, 25F, 0F);
      GL11.glPushMatrix();
      GL11.glScalef(6F, 6F, 6F);
      GL11.glTranslatef(5F, -0.3F, 0F);
      font.drawString(EnumChatFormatting.BOLD + "~", 0, 0, 0x002206);
      GL11.glPopMatrix();

      GL11.glTranslatef(0F, 25F, 0F);
      font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover2"), 0, 0, 0x79ff92);
      GL11.glTranslatef(0F, 10F, 0F);
View Full Code Here

      GL11.glTranslatef(5F, -0.3F, 0F);
      font.drawString(EnumChatFormatting.BOLD + "~", 0, 0, 0x002206);
      GL11.glPopMatrix();

      GL11.glTranslatef(0F, 25F, 0F);
      font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover2"), 0, 0, 0x79ff92);
      GL11.glTranslatef(0F, 10F, 0F);
      font.drawString(EnumChatFormatting.ITALIC + StatCollector.translateToLocal("botaniamisc.lexiconcover3"), 0, 0, 0x79ff92);
      if(bevo || saice) {
        GL11.glTranslatef(0F, 10F, 0F);
        font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover" + (bevo ? 4 : 5)), 0, 0, 0x79ff92);
View Full Code Here

      GL11.glPopMatrix();

      GL11.glTranslatef(0F, 25F, 0F);
      font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover2"), 0, 0, 0x79ff92);
      GL11.glTranslatef(0F, 10F, 0F);
      font.drawString(EnumChatFormatting.ITALIC + StatCollector.translateToLocal("botaniamisc.lexiconcover3"), 0, 0, 0x79ff92);
      if(bevo || saice) {
        GL11.glTranslatef(0F, 10F, 0F);
        font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover" + (bevo ? 4 : 5)), 0, 0, 0x79ff92);
      }
    }
View Full Code Here

      font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover2"), 0, 0, 0x79ff92);
      GL11.glTranslatef(0F, 10F, 0F);
      font.drawString(EnumChatFormatting.ITALIC + StatCollector.translateToLocal("botaniamisc.lexiconcover3"), 0, 0, 0x79ff92);
      if(bevo || saice) {
        GL11.glTranslatef(0F, 10F, 0F);
        font.drawString(StatCollector.translateToLocal("botaniamisc.lexiconcover" + (bevo ? 4 : 5)), 0, 0, 0x79ff92);
      }
    }

    GL11.glPopMatrix();
  }
View Full Code Here

    GL11.glDepthMask(false);
    int var13 = (int) (this.settings.alpha * 255) * 0x1000000;

    for (int var14 = 0; var14 < par1TileEntitySign.signText.length; ++var14) {
      String var15 = par1TileEntitySign.signText[var14];
      var17.drawString(var15, -var17.getStringWidth(var15) / 2, var14 * 10 - par1TileEntitySign.signText.length * 5, var13);
    }

    GL11.glDepthMask(true);
    GL11.glColor4f(1.0f, 1.0f, 1.0f, this.settings.alpha);
    GL11.glPopMatrix();
View Full Code Here

      renderItemAtGridPos(gui, 1, 2, new ItemStack(ModBlocks.conjurationCatalyst), false);

    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    String manaUsage = StatCollector.translateToLocal("botaniamisc.manaUsage");
    font.drawString(manaUsage, gui.getLeft() + gui.getWidth() / 2 - font.getStringWidth(manaUsage) / 2, gui.getTop() + 105, 0x66000000);

    int ratio = 10;
    int x = gui.getLeft() + gui.getWidth() / 2 - 50;
    int y = gui.getTop() + 115;
View Full Code Here

    int dy = gui.getTop() + 30;

    if(mx > dx && mx <= dx + dw && my > dy && my <= dy + 10)
      hoveringOverDrop = true;

    font.drawString(dropString, dx, dy, 0x77000000);
    font.drawString(ratioString, x + 100 - font.getStringWidth(ratioString), y + 5, 0x99000000);
    font.setUnicodeFlag(unicode);

    GL11.glDisable(GL11.GL_BLEND);
View Full Code Here

    if(mx > dx && mx <= dx + dw && my > dy && my <= dy + 10)
      hoveringOverDrop = true;

    font.drawString(dropString, dx, dy, 0x77000000);
    font.drawString(ratioString, x + 100 - font.getStringWidth(ratioString), y + 5, 0x99000000);
    font.setUnicodeFlag(unicode);

    GL11.glDisable(GL11.GL_BLEND);

    render.bindTexture(manaInfusionOverlay);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.