Examples of drawStringWithShadow()


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

    if (pollResult.getVersion() != null) {
      GL11.glPushMatrix();
      versionWidth = font.getStringWidth("1.0.0");
        if (isCompatible(SpoutClient.spoutcraftVersion)) {
          font.drawStringWithShadow(pollResult.getVersion(), x + width - versionWidth - 20, y + 21, 0x00FF00);
        } else {
          font.drawStringWithShadow(pollResult.getVersion(), x + width - versionWidth - 20, y + 21, 0xF44607);
        }
      GL11.glPopMatrix();
    } else {
View Full Code Here

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

      GL11.glPushMatrix();
      versionWidth = font.getStringWidth("1.0.0");
        if (isCompatible(SpoutClient.spoutcraftVersion)) {
          font.drawStringWithShadow(pollResult.getVersion(), x + width - versionWidth - 20, y + 21, 0x00FF00);
        } else {
          font.drawStringWithShadow(pollResult.getVersion(), x + width - versionWidth - 20, y + 21, 0xF44607);
        }
      GL11.glPopMatrix();
    } else {
      GL11.glPushMatrix();
      versionWidth = font.getStringWidth("Unknown");
View Full Code Here

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

        }
      GL11.glPopMatrix();
    } else {
      GL11.glPushMatrix();
      versionWidth = font.getStringWidth("Unknown");
      font.drawStringWithShadow("Unknown", x + width - versionWidth - 20, y + 21, 0xFF0000);
      GL11.glPopMatrix();
    }
  }

  public void onClick(int x, int y, boolean doubleClick) {
View Full Code Here

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

      }

      GL11.glPushMatrix();
      float scale = button.getScale();
      GL11.glScalef(scale, scale, scale);
      font.drawStringWithShadow(text, left, 6, color.toInt());
      GL11.glPopMatrix();
    }
  }

  protected boolean isHovering(Widget widget) {
View Full Code Here

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

      float scale = label.getScale();
      float reset = 1 / scale;
      GL11.glScalef(scale, scale, scale);
      if (label.hasShadow()) {
        font.drawStringWithShadow(lines[i], (int) left, i * 10, label.getTextColor().toInt());
      } else {
        font.drawString(lines[i], (int) left, i * 10, label.getTextColor().toInt());
      }
      GL11.glScalef(reset, reset, reset);
    }
View Full Code Here

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

      while (iter.hasNext()) {
        line = iter.next();
        if (lineNum == cursor[0]) {
          cursorOffset = font.getStringWidth(line.substring(0, cursor[1]));
        }
        font.drawStringWithShadow(line, x, y + (GenericTextField.LINE_HEIGHT + GenericTextField.LINE_SPACING) * lineNum++, color);
      }
    } else if (!textField.isFocus()) {
      font.drawStringWithShadow(textField.getPlaceholder(), x, y, color);
    }
    boolean showCursor = textField.isEnabled() && textField.isFocus() && shouldRenderCursor;
View Full Code Here

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

          cursorOffset = font.getStringWidth(line.substring(0, cursor[1]));
        }
        font.drawStringWithShadow(line, x, y + (GenericTextField.LINE_HEIGHT + GenericTextField.LINE_SPACING) * lineNum++, color);
      }
    } else if (!textField.isFocus()) {
      font.drawStringWithShadow(textField.getPlaceholder(), x, y, color);
    }
    boolean showCursor = textField.isEnabled() && textField.isFocus() && shouldRenderCursor;
    if (showCursor) {
      font.drawStringWithShadow("_", x + cursorOffset, y + (GenericTextField.LINE_HEIGHT + GenericTextField.LINE_SPACING) * cursor[0] + 1, color);
    }
View Full Code Here

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

    } else if (!textField.isFocus()) {
      font.drawStringWithShadow(textField.getPlaceholder(), x, y, color);
    }
    boolean showCursor = textField.isEnabled() && textField.isFocus() && shouldRenderCursor;
    if (showCursor) {
      font.drawStringWithShadow("_", x + cursorOffset, y + (GenericTextField.LINE_HEIGHT + GenericTextField.LINE_SPACING) * cursor[0] + 1, color);
    }

  }

  public void render(GenericTexture texture) {
View Full Code Here

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

    return 11;
  }

  public void render(int x, int y, int width, int height) {
    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("S", x + 2, y + 2, 0xffff0000);
    int w = font.getStringWidth("S");
    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

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

  public void render(int x, int y, int width, int height) {
    FontRenderer font = SpoutClient.getHandle().fontRenderer;
    font.drawStringWithShadow("S", x + 2, y + 2, 0xffff0000);
    int w = font.getStringWidth("S");
    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.