Examples of FontRenderer


Examples of net.minecraft.src.FontRenderer

      }
      Texture direction = CustomTextureManager.getTextureFromPath(FileUtil.getAssetsDir().getPath() + texture);
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      GL11.glTranslatef((float) getScreenX(), (float) getScreenY(), 0);
      r.renderBaseBox(this, true);
      FontRenderer font = SpoutClient.getHandle().fontRenderer;
      Color color = r.getColor(this);
      if (!isSelected()) {
        color.setAlpha(0.2F);
      }
      r.drawTexture(direction, 20, 20, color, true);
      font.drawString(getText(), 22, 7, r.getColor(this).toInt());
    }
  }
View Full Code Here

Examples of net.minecraft.src.FontRenderer

  public int getHeight() {
    return 11;
  }

  public void render(int x, int y, int width, int height) {
    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("V", x + 2, y + 2, 0xffffff00);
    int w = font.getStringWidth("V");
    font.drawStringWithShadow(getName(), x + w + 4, y + 2, !isConflicting() ? 0xffffffff:0xffff0000);
    String keyString = parent.getEditingItem() == this ? "> <" : getDisplayKey();;
    w = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w, y + 2, 0xffcccccc);
  }
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.