Package net.minecraft.client.gui

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


    int x = left + invRoot.x + 36 - fr.getStringWidth(sendTxt)/2;
    int y = top + invRoot.y - fr.FONT_HEIGHT - 3;
    fr.drawString(sendTxt, x, y, ColorUtil.getRGB(Color.BLACK));
    String recText = "Receive";
    x = left + invRoot.x + 72 + container.getItemBufferSpacing() + 36 - fr.getStringWidth(recText)/2;
    fr.drawString(recText, x, y, ColorUtil.getRGB(Color.BLACK));
   
    //Highlights
    parent.renderSlotHighlights();   
   
    //Power   
View Full Code Here


        shadow = false;
      }
    }
    FontRenderer fr = Minecraft.getMinecraft().fontRenderer;
    int strX  = x + length/2 - fr.getStringWidth(text) / 2;
    fr.drawString(text, strX, y-11, color, shadow);
   
    RenderUtil.bindTexture("enderio:textures/gui/widgets.png");
    GL11.glColor3f(1, 1, 1);
    int xpScaled = xpCont.getXpBarScaled(length -2);   
   
View Full Code Here

     
      FontRenderer fr = gui.getFontRenderer();
      int sw = fr.getStringWidth(filterStr);
      int x = (gui.width / 2) - sw / 2;
      int y = top + 20;
      fr.drawString(filterStr, x, y, ColorUtil.getRGB(Color.DARK_GRAY));

      x = gui.getGuiLeft() + filterX;
      y = gui.getGuiTop() + filterY;
      GL11.glColor3f(1, 1, 1);
      RenderUtil.bindTexture("enderio:textures/gui/externalConduitConnection.png");
View Full Code Here

    FontRenderer fr = gui.getFontRenderer();
    String heading = getHeading();
    int headingWidth = fr.getStringWidth(heading);
    int x = 0;
    int rgb = ColorUtil.getRGB(Color.darkGray);
    fr.drawString(heading, left + x, top, rgb);

    boolean outputActive = (mode == ConnectionMode.IN_OUT && !inOutShowIn) || (mode == ConnectionMode.OUTPUT);
    if(outputActive) {
      GL11.glColor3f(1, 1, 1);
      IconEIO.BUTTON_DOWN.renderIcon(left + priLeft, top - 5, priWidth, 16, 0, true);
View Full Code Here

    if(outputActive) {
      GL11.glColor3f(1, 1, 1);
      IconEIO.BUTTON_DOWN.renderIcon(left + priLeft, top - 5, priWidth, 16, 0, true);
      String str = itemConduit.getOutputPriority(gui.getDir()) + "";
      int sw = fr.getStringWidth(str);
      fr.drawString(str, left + priLeft + priWidth - sw - gap, top, ColorUtil.getRGB(Color.black));

    } else {
      //draw speed upgrade slot
      GL11.glColor3f(1, 1, 1);
      RenderUtil.bindTexture("enderio:textures/gui/itemFilter.png");
View Full Code Here

    FontRenderer fontRenderer = guiContainer.getFontRenderer();
    if(xMax > 0) {
      fontRenderer.drawSplitString(labelText, relativeX, relativeY, color, xMax);
    }
    else {
      fontRenderer.drawString(labelText, relativeX, relativeY, color, dropShadow);
    }
  }
  @Override
  public String[] getTooltip() {
    if(labelTooltip == null || labelTooltip.isEmpty()) { return null; }
View Full Code Here

      else if (isHovering)
      {
          renderColor = hoverColor;
      }

      fr.drawString(displayString, xPosition + (width - fr.getStringWidth(displayString)) / 2, yPosition + (height - 7) / 2, renderColor);
    }
    }
}
View Full Code Here

    if(drawLeft)
      drawTexturedModalRect(x - l / 2 - 9, y - 1, 61, 180, 6, 11);
    for(int i = 0; i < l + 6; i++)
      drawTexturedModalRect(x - l / 2 - 3 + i, y - 1, 60, 180, 1, 11);

    font.drawString(s, x - l / 2 + fontOff, y, 0x111111, false);
    font.setUnicodeFlag(unicode);
  }

  void drawHeader() {
    boolean unicode = fontRendererObj.getUnicodeFlag();
View Full Code Here

      if(title.equals(origTitle) && bevo)
        title = StatCollector.translateToLocal("item.botania:lexicon.bevo");
      if(title.equals(origTitle) && saice)
        title = StatCollector.translateToLocal("item.botania:lexicon.saice");

      font.drawString(font.trimStringToWidth(title, 80), 0, 0, 0xD69700);
      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);
View Full Code Here

        title = StatCollector.translateToLocal("item.botania:lexicon.saice");

      font.drawString(font.trimStringToWidth(title, 80), 0, 0, 0xD69700);
      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);
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.