Package net.minecraft.src

Examples of net.minecraft.src.FontRenderer.drawStringWithShadow()


  }

  public void render(int x, int y, int width, int height) {
    MCRenderDelegate r = (MCRenderDelegate) SpoutClient.getInstance().getRenderDelegate();
    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("S", x + 2, y + 2, 0xff00ff00);
    int w = font.getStringWidth("S");
    String keyString = parent.getEditingItem() == this ? "> <" : shortcut.toString();
    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    String fitting = r.getFittingText(getName(), width - w - w2 - 4);
View Full Code Here


    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("S", x + 2, y + 2, 0xff00ff00);
    int w = font.getStringWidth("S");
    String keyString = parent.getEditingItem() == this ? "> <" : shortcut.toString();
    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    String fitting = r.getFittingText(getName(), width - w - w2 - 4);
    font.drawStringWithShadow(fitting, x + w + 4, y + 2, !isConflicting() ? 0xffffffff:0xffff0000);
  }

  @Override
View Full Code Here

    int w = font.getStringWidth("S");
    String keyString = parent.getEditingItem() == this ? "> <" : shortcut.toString();
    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    String fitting = r.getFittingText(getName(), width - w - w2 - 4);
    font.drawStringWithShadow(fitting, x + w + 4, y + 2, !isConflicting() ? 0xffffffff:0xffff0000);
  }

  @Override
  public void setKey(int id) {
    shortcut.setKey(id);
View Full Code Here

  }

  public void render(int x, int y, int width, int height) {
    MCRenderDelegate r = (MCRenderDelegate) SpoutClient.getInstance().getRenderDelegate();
    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("B", x + 2, y + 2, 0xff0000ff);
    int w = font.getStringWidth("B");
    String keyString = parent.getEditingItem() == this ? "> <" : binding.toString();
    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    font.drawStringWithShadow(binding.getAddonName(), x + w + 4, y + 11, 0xffffffff);
View Full Code Here

    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("B", x + 2, y + 2, 0xff0000ff);
    int w = font.getStringWidth("B");
    String keyString = parent.getEditingItem() == this ? "> <" : binding.toString();
    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    font.drawStringWithShadow(binding.getAddonName(), x + w + 4, y + 11, 0xffffffff);
    String fitting = r.getFittingText(getName(), width - w - w2 - 4);

    font.drawStringWithShadow(fitting, x + w + 4, y + 2, !isConflicting() ? 0xffffffff:0xffff0000);
  }
View Full Code Here

    font.drawStringWithShadow("B", x + 2, y + 2, 0xff0000ff);
    int w = font.getStringWidth("B");
    String keyString = parent.getEditingItem() == this ? "> <" : binding.toString();
    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    font.drawStringWithShadow(binding.getAddonName(), x + w + 4, y + 11, 0xffffffff);
    String fitting = r.getFittingText(getName(), width - w - w2 - 4);

    font.drawStringWithShadow(fitting, x + w + 4, y + 2, !isConflicting() ? 0xffffffff:0xffff0000);
  }
View Full Code Here

    int w2 = font.getStringWidth(keyString);
    font.drawStringWithShadow(keyString, width - w2, y + 2, 0xffcccccc);
    font.drawStringWithShadow(binding.getAddonName(), x + w + 4, y + 11, 0xffffffff);
    String fitting = r.getFittingText(getName(), width - w - w2 - 4);

    font.drawStringWithShadow(fitting, x + w + 4, y + 2, !isConflicting() ? 0xffffffff:0xffff0000);
  }

  @Override
  public void setModifiers(int m) {
    binding.setRawModifiers((byte) m);
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.