- Статус
- Оффлайн
- Регистрация
- 12 Ноя 2022
- Сообщения
- 153
- Реакции
- 40
Сливаю свой тхудик , подарок вам на нг 
SS:

Java:
float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
float height = 30;
posX = // начальная позиция таргетхуда по x;
posY = // начальная позиция таргетхуда по y;
hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
GlStateManager.pushMatrix();
Expensive.getInstance().scaleMath.pushScale();
// анимация
GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
GlStateManager.scale(scale, scale, 1);
GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
//ректы
GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
// текст
Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);
Expensive.getInstance().scaleMath.popScale();
GlStateManager.popMatrix();
SS:

Последнее редактирование: