- Статус
- Оффлайн
- Регистрация
- 8 Июн 2023
- Сообщения
- 419
- Реакции
- 5
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Java:
public void waterMark() {
float x = wt.getX();
float y = wt.getY();
String dc = ClientUtil.me.getName();
String textus = mc.debugFPS + " fps";
float widthtextus = Fonts.SEMIBOLD[16].getWidth(textus) + 16.5f;
float wdc = Fonts.SEMIBOLD[16].getWidth(dc) + 23.0f;
RenderUtil.Render2D.drawShadow(5, y, wdc, 15, 20, ColorUtil.getColorStyle(0),ColorUtil.getColorStyle(90),ColorUtil.getColorStyle(180),ColorUtil.getColorStyle(270));
RenderUtil.Render2D.drawGradientRound(5, y, wdc, 15, 3, ColorUtil.getColorStyle(0),ColorUtil.getColorStyle(90),ColorUtil.getColorStyle(180),ColorUtil.getColorStyle(270));
RenderUtil.Render2D.drawRoundedCorner(5, y, wdc, 15, 4, new Color(0,0,0,150).getRGB());
if (ClientUtil.me != null) {
GlStateManager.color4f(0, 0, 0, 0);
GlStateManager.bindTexture(RenderUtil.Render2D.downloadImage(ClientUtil.me.getAvatarUrl()));
RenderUtil.Render2D.drawTexture(7, y +2, 12, 12, 5, 1);
} else {
mc.getTextureManager().bindTexture(new ResourceLocation("expensive/images/ui/profile/image.png"));
RenderUtil.Render2D.drawTexture(7, y +2, 12,12, 5, 1);
}
RenderUtil.Render2D.drawShadow(5, y + 18, widthtextus, 15, 20, ColorUtil.getColorStyle(0),ColorUtil.getColorStyle(90),ColorUtil.getColorStyle(180),ColorUtil.getColorStyle(270));
RenderUtil.Render2D.drawGradientRound(5, y + 18, widthtextus, 15, 3, ColorUtil.getColorStyle(0),ColorUtil.getColorStyle(90),ColorUtil.getColorStyle(180),ColorUtil.getColorStyle(270));
RenderUtil.Render2D.drawRoundedCorner(5, y + 18, widthtextus, 15, 4, new Color(0,0,0,150).getRGB());
Fonts.SEMIBOLD[16].drawString(new MatrixStack(), "- " + dc, 20, y + 5.3f, new Color(0xFFFFFF).getRGB());
Fonts.baraban[16].drawString(new MatrixStack(), "C", 7, y + 24f, ColorUtil.getColorStyle(90));
Fonts.SEMIBOLD[16].drawString(new MatrixStack(), textus, 17, y + 23.3f, new Color(0xFFFFFF).getRGB());
}