Визуальная часть Nursultan TargetHud.

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Давно не было тем.Сделал нормальный скид Tx нурика.Самый адекватный из всех как по мне.
Пожалуйста, авторизуйтесь для просмотра ссылки.



были бы.. крылья подобным ангелам:
Expand Collapse Copy
} else if (type.get("Nursultan")) {
                float oldWidth = width;
                width = 165 / 1.5f;
                height = 60 / 1.5f;
                headSize = 32;

                float diff = width - oldWidth;
                if (diff > 0) {
                    dragHandler.setXClient(dragHandler.getX() - diff / 2f);
                } else if (diff < 0) {
                    dragHandler.setXClient(dragHandler.getX() - diff / 2f);
                }

                DisplayUtils.drawRoundedRect(posX, posY, width, height, 5, ColorUtils.setAlpha(handlerClient().getThemeManager().getCurrent().getColor(),100));
                DisplayUtils.drawRoundedRect(posX, posY, width, height, 5, ColorUtils.rgba(0,0,0,150));

                float headCenterX = posX + 4 + headSize / 2f;
                float headCenterY = posY + height / 2f;
                RoundHeadUtils.drawHead(entity, headCenterX, headCenterY, headSize, headSize, 4, 1, hurtAnimation);

                float lineX = posX + headSize + spacing * 1.5f;
                float animationValue = animation.getOutput().floatValue();
                float halfAnimationValueRest = (1 - animationValue) / 2f;
                float testX = lineX + (width * halfAnimationValueRest);
                float testY = (posY - 0.5f) + (height * halfAnimationValueRest);
                float testW = width * animationValue;
                float testH = Fonts.nursultan_medium[17].getFontHeight() * animationValue;
                ScissorUtil.enable();
                ScissorUtil.setFromComponentCoordinates(testX, testY + 6, testW - 50, testH);
                Fonts.nursultan_medium[17].drawString(event.getMatrixStack(), getDisplayName(entity), lineX, (posY - 0.5f) + spacing + 3, handlerClient().getThemeManager().getCurrent().getColor());
                ScissorUtil.unset();
                ScissorUtil.disable();

                float healthY = posY + height - spacing - 16;
                String healthText = (entity.isInvisible() && isFT()) ? "HP: Неизвестно" : String.format("HP: %.1f", healthTextAnimation).replace(',', '.');

                Fonts.nursultan_medium[15].drawString(event.getMatrixStack(), healthText, lineX, healthY, handlerClient().getThemeManager().getCurrent().getColor());

                float barWidth = width - (headSize + spacing * 2);
                float barY = posY + height - spacing * 2 - 2.5f;
                DisplayUtils.drawRoundedRect(lineX - 1, barY, barWidth, 8, 2, ColorUtils.setAlpha(handlerClient().getThemeManager().getCurrent().getColor(),50));
                DisplayUtils.drawRoundedRect(lineX - 1, barY, barWidth * healthBarAnimation, 7.5f, 2, ColorUtils.setAlpha(handlerClient().getThemeManager().getCurrent().getColor(),200));
            }

Вам лишь доделать туда блюр ну и считай готово)
а как этим пользоваться ну вот мне например нужно написать мод на targethud на fabric 1.20.1 как это можно сделать
 
Назад
Сверху Снизу