Исходник Nursultan Alpha WaterMark | Expensive 3.1

Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2022
Сообщения
103
Реакции[?]
4
Поинты[?]
0
Алё если ты не можешь сделать элементарные вещи как изменить или добавить код что ты тут делаешь?
как исправить ошибку
Пожалуйста, авторизуйтесь для просмотра ссылки.
Попробуй еще один } поставить в зависимости открытых методов и других таких штук.
 
Начинающий
Статус
Оффлайн
Регистрация
26 Фев 2024
Сообщения
357
Реакции[?]
0
Поинты[?]
0
Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2022
Сообщения
103
Реакции[?]
4
Поинты[?]
0
Забаненный
Статус
Оффлайн
Регистрация
17 Мар 2024
Сообщения
161
Реакции[?]
2
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.

font -
Пожалуйста, авторизуйтесь для просмотра ссылки.

PingUtil -
Пожалуйста, авторизуйтесь для просмотра ссылки.



Код:
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {

    final Minecraft mc = Minecraft.getInstance();
    final ResourceLocation logo = new ResourceLocation("cosmohack/images/hud/rhomb1.png");
    final ResourceLocation fpsIcon = new ResourceLocation("cosmohack/images/hud/fps1.png");
    final ResourceLocation timeIcon = new ResourceLocation("cosmohack/images/hud/time1.png");
    final ResourceLocation compass = new ResourceLocation("cosmohack/images/compass.png");
    final ResourceLocation gps = new ResourceLocation("cosmohack/images/hud/gps1.png");

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 4;
        float padding = 5;
        float fontSize = 6.5f;
        float iconSize = 10;
        float posX1 = 65;
        float posY1 = 4;

        Style style = AlphaClass.getInstance().getStyleManager().getCurrentStyle();
        String fps1 = String.valueOf(mc.debugFPS);


        drawStyledRect(posX , posY , iconSize + padding * 9 , iconSize + padding * 1.3f , 4);
//        DisplayUtils.drawImage(logo, posX + padding, posY - 2.0f + padding, iconSize, iconSize , ColorUtils.rgb(255, 255, 255));
        DisplayUtils.drawRectVerticalW(posX + 17.5f , posY + 3.5f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(ms , "Release" , posX + 19.5f , posY + 3f , HUD.getColor(0) , fontSize + 1);
        Fonts.icon.drawText(ms , "B" , posX + 4.0f , posY + 1.0f , HUD.getColor(0) , fontSize + 4);

        int fps = mc.getDebugFPS();
        ITextComponent fpsText = GradientUtil.gradient(String.valueOf(fps));
        float fpsTextWidth = Fonts.msMedium.getWidth(fpsText , fontSize);
        float fpsPosX = posX + iconSize + padding * 3;
        if (fps >= 100 && fps <= 999) {
            posX1 += 5;
        }

        String bps = (int) mc.player.getPosX() + " " + (int) mc.player.getPosY() + " " + (int) mc.player.getPosZ();

        String tps = String.valueOf(ServerTPS.getTPS());

        String bpsget = String.valueOf(PingUtil.calculateBPS());

        String name = mc.player.getName().getString();

        float namewidht = Fonts.msMedium.getWidth(name , fontSize);


        float fpsTextWidth1 = Fonts.msMedium.getWidth(bps , fontSize);

        float fpsWidth = Fonts.msMedium.getWidth(String.valueOf(fps) , fontSize);

        drawStyledRect(posX + 0.1f , posY + 15 , iconSize + padding * 3.2f + fpsTextWidth1 , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 13.9f , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bps , posX + 18 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , "F" , posX + 4 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 23 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.5f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 37 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , tps + " Ticks" , posX + 40 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "Q" , posX + 27 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 78 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.2f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 93 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bpsget + " BPS" , posX + 97 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "S" , posX + 82 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        String timeString = sdf.format(new Date());
        String time = timeString;
        float timeTextWidth = Fonts.sfui.getWidth(time , fontSize);
        float wthidewidth = Fonts.sfui.getWidth("cosmohack" , fontSize);
        if (!HUD.wtname.get()) {
            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 50 + namewidht + fpsWidth + timeTextWidth , iconSize + padding * 1.3f , 4);
        }
//        DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        DisplayUtils.drawRectVerticalW(posX + 97.9f + +namewidht + fpsWidth , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
//            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 5 + namewidht , iconSize + padding * 1.3f , 4);
       else if (!HUD.wtname.get()){
           Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , name , posX + 64 , posY + 3.5f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        }
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "W" , posX + 55 , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , fps + " Fps" , posX + 80 + namewidht , posY + 3.5f , ColorUtils.rgba(210 , 210 , 210 , 255) , fontSize + 0 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "X" , posX + 70 + namewidht , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "V" , posX + 101 + namewidht + fpsWidth , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack(), time , posX + 113 + namewidht + fpsWidth , posY + 3.5f, ColorUtils.rgba(210, 210, 210, 255), fontSize + 0, 0.05f);
    }

    private void drawStyledRect(float x, float y, float width, float height, float radius) {
            KawaseBlur.blur.updateBlur(2 , 2);
            KawaseBlur.blur.render(() -> {
                DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 255));
            });
        DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 195));
    }
Шрифты регать в utils/render/font/Fonts.java


Код:
import com.mojang.blaze3d.matrix.MatrixStack;
import main.cosmo.AlphaClass;
import main.cosmo.events.EventDisplay;
import main.cosmo.functions.impl.render.HUD;
import main.cosmo.ui.display.ElementRenderer;
import main.cosmo.ui.styles.Style;
import main.cosmo.utils.PingUtil;
import main.cosmo.utils.TPSCalc;
import main.cosmo.utils.client.ServerTPS;
import main.cosmo.utils.math.MathUtil;
import main.cosmo.utils.render.ColorUtils;
import main.cosmo.utils.render.DisplayUtils;
import main.cosmo.utils.render.KawaseBlur;
import main.cosmo.utils.render.font.Fonts;
import main.cosmo.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.Minecraft;
import net.minecraft.util.Hand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;
Фу блять что за блевотня я требую создать ПЕТИЦИЮ ЧТО БЫ ЛЮДИ ПРОХОДИЛИ 7 IQ тестов и если там меньше 100 iq то банить нахуй по железу такие как ты быстро будут забанены так же половина кубов ,aeghed molotok52
 
Начинающий
Статус
Оффлайн
Регистрация
11 Апр 2024
Сообщения
3
Реакции[?]
0
Поинты[?]
0
ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.

font -
Пожалуйста, авторизуйтесь для просмотра ссылки.

PingUtil -
Пожалуйста, авторизуйтесь для просмотра ссылки.



Код:
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {

    final Minecraft mc = Minecraft.getInstance();
    final ResourceLocation logo = new ResourceLocation("cosmohack/images/hud/rhomb1.png");
    final ResourceLocation fpsIcon = new ResourceLocation("cosmohack/images/hud/fps1.png");
    final ResourceLocation timeIcon = new ResourceLocation("cosmohack/images/hud/time1.png");
    final ResourceLocation compass = new ResourceLocation("cosmohack/images/compass.png");
    final ResourceLocation gps = new ResourceLocation("cosmohack/images/hud/gps1.png");

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 4;
        float padding = 5;
        float fontSize = 6.5f;
        float iconSize = 10;
        float posX1 = 65;
        float posY1 = 4;

        Style style = AlphaClass.getInstance().getStyleManager().getCurrentStyle();
        String fps1 = String.valueOf(mc.debugFPS);


        drawStyledRect(posX , posY , iconSize + padding * 9 , iconSize + padding * 1.3f , 4);
//        DisplayUtils.drawImage(logo, posX + padding, posY - 2.0f + padding, iconSize, iconSize , ColorUtils.rgb(255, 255, 255));
        DisplayUtils.drawRectVerticalW(posX + 17.5f , posY + 3.5f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(ms , "Release" , posX + 19.5f , posY + 3f , HUD.getColor(0) , fontSize + 1);
        Fonts.icon.drawText(ms , "B" , posX + 4.0f , posY + 1.0f , HUD.getColor(0) , fontSize + 4);

        int fps = mc.getDebugFPS();
        ITextComponent fpsText = GradientUtil.gradient(String.valueOf(fps));
        float fpsTextWidth = Fonts.msMedium.getWidth(fpsText , fontSize);
        float fpsPosX = posX + iconSize + padding * 3;
        if (fps >= 100 && fps <= 999) {
            posX1 += 5;
        }

        String bps = (int) mc.player.getPosX() + " " + (int) mc.player.getPosY() + " " + (int) mc.player.getPosZ();

        String tps = String.valueOf(ServerTPS.getTPS());

        String bpsget = String.valueOf(PingUtil.calculateBPS());

        String name = mc.player.getName().getString();

        float namewidht = Fonts.msMedium.getWidth(name , fontSize);


        float fpsTextWidth1 = Fonts.msMedium.getWidth(bps , fontSize);

        float fpsWidth = Fonts.msMedium.getWidth(String.valueOf(fps) , fontSize);

        drawStyledRect(posX + 0.1f , posY + 15 , iconSize + padding * 3.2f + fpsTextWidth1 , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 13.9f , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bps , posX + 18 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , "F" , posX + 4 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 23 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.5f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 37 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , tps + " Ticks" , posX + 40 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "Q" , posX + 27 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 78 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.2f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 93 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bpsget + " BPS" , posX + 97 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "S" , posX + 82 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        String timeString = sdf.format(new Date());
        String time = timeString;
        float timeTextWidth = Fonts.sfui.getWidth(time , fontSize);
        float wthidewidth = Fonts.sfui.getWidth("cosmohack" , fontSize);
        if (!HUD.wtname.get()) {
            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 50 + namewidht + fpsWidth + timeTextWidth , iconSize + padding * 1.3f , 4);
        }
//        DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        DisplayUtils.drawRectVerticalW(posX + 97.9f + +namewidht + fpsWidth , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
//            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 5 + namewidht , iconSize + padding * 1.3f , 4);
       else if (!HUD.wtname.get()){
           Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , name , posX + 64 , posY + 3.5f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        }
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "W" , posX + 55 , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , fps + " Fps" , posX + 80 + namewidht , posY + 3.5f , ColorUtils.rgba(210 , 210 , 210 , 255) , fontSize + 0 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "X" , posX + 70 + namewidht , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "V" , posX + 101 + namewidht + fpsWidth , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack(), time , posX + 113 + namewidht + fpsWidth , posY + 3.5f, ColorUtils.rgba(210, 210, 210, 255), fontSize + 0, 0.05f);
    }

    private void drawStyledRect(float x, float y, float width, float height, float radius) {
            KawaseBlur.blur.updateBlur(2 , 2);
            KawaseBlur.blur.render(() -> {
                DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 255));
            });
        DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 195));
    }
Шрифты регать в utils/render/font/Fonts.java


Код:
import com.mojang.blaze3d.matrix.MatrixStack;
import main.cosmo.AlphaClass;
import main.cosmo.events.EventDisplay;
import main.cosmo.functions.impl.render.HUD;
import main.cosmo.ui.display.ElementRenderer;
import main.cosmo.ui.styles.Style;
import main.cosmo.utils.PingUtil;
import main.cosmo.utils.TPSCalc;
import main.cosmo.utils.client.ServerTPS;
import main.cosmo.utils.math.MathUtil;
import main.cosmo.utils.render.ColorUtils;
import main.cosmo.utils.render.DisplayUtils;
import main.cosmo.utils.render.KawaseBlur;
import main.cosmo.utils.render.font.Fonts;
import main.cosmo.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.Minecraft;
import net.minecraft.util.Hand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;
Пожалуйста, авторизуйтесь для просмотра ссылки.
че это за хуета
 
Начинающий
Статус
Оффлайн
Регистрация
5 Ноя 2023
Сообщения
147
Реакции[?]
0
Поинты[?]
1K
Фу блять что за блевотня я требую создать ПЕТИЦИЮ ЧТО БЫ ЛЮДИ ПРОХОДИЛИ 7 IQ тестов и если там меньше 100 iq то банить нахуй по железу такие как ты быстро будут забанены так же половина кубов ,aeghed molotok52
это ты мне написал или типам которых тегнул?
Пожалуйста, авторизуйтесь для просмотра ссылки.
че это за хуета
хз пастить может не надо чу чут мозги врубать
 
Забаненный
Статус
Оффлайн
Регистрация
17 Мар 2024
Сообщения
161
Реакции[?]
2
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Начинающий
Статус
Оффлайн
Регистрация
22 Май 2023
Сообщения
33
Реакции[?]
0
Поинты[?]
0
ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.

font -
Пожалуйста, авторизуйтесь для просмотра ссылки.

PingUtil -
Пожалуйста, авторизуйтесь для просмотра ссылки.



Код:
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {

    final Minecraft mc = Minecraft.getInstance();
    final ResourceLocation logo = new ResourceLocation("cosmohack/images/hud/rhomb1.png");
    final ResourceLocation fpsIcon = new ResourceLocation("cosmohack/images/hud/fps1.png");
    final ResourceLocation timeIcon = new ResourceLocation("cosmohack/images/hud/time1.png");
    final ResourceLocation compass = new ResourceLocation("cosmohack/images/compass.png");
    final ResourceLocation gps = new ResourceLocation("cosmohack/images/hud/gps1.png");

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 4;
        float padding = 5;
        float fontSize = 6.5f;
        float iconSize = 10;
        float posX1 = 65;
        float posY1 = 4;

        Style style = AlphaClass.getInstance().getStyleManager().getCurrentStyle();
        String fps1 = String.valueOf(mc.debugFPS);


        drawStyledRect(posX , posY , iconSize + padding * 9 , iconSize + padding * 1.3f , 4);
//        DisplayUtils.drawImage(logo, posX + padding, posY - 2.0f + padding, iconSize, iconSize , ColorUtils.rgb(255, 255, 255));
        DisplayUtils.drawRectVerticalW(posX + 17.5f , posY + 3.5f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(ms , "Release" , posX + 19.5f , posY + 3f , HUD.getColor(0) , fontSize + 1);
        Fonts.icon.drawText(ms , "B" , posX + 4.0f , posY + 1.0f , HUD.getColor(0) , fontSize + 4);

        int fps = mc.getDebugFPS();
        ITextComponent fpsText = GradientUtil.gradient(String.valueOf(fps));
        float fpsTextWidth = Fonts.msMedium.getWidth(fpsText , fontSize);
        float fpsPosX = posX + iconSize + padding * 3;
        if (fps >= 100 && fps <= 999) {
            posX1 += 5;
        }

        String bps = (int) mc.player.getPosX() + " " + (int) mc.player.getPosY() + " " + (int) mc.player.getPosZ();

        String tps = String.valueOf(ServerTPS.getTPS());

        String bpsget = String.valueOf(PingUtil.calculateBPS());

        String name = mc.player.getName().getString();

        float namewidht = Fonts.msMedium.getWidth(name , fontSize);


        float fpsTextWidth1 = Fonts.msMedium.getWidth(bps , fontSize);

        float fpsWidth = Fonts.msMedium.getWidth(String.valueOf(fps) , fontSize);

        drawStyledRect(posX + 0.1f , posY + 15 , iconSize + padding * 3.2f + fpsTextWidth1 , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 13.9f , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bps , posX + 18 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , "F" , posX + 4 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 23 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.5f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 37 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , tps + " Ticks" , posX + 40 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "Q" , posX + 27 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 78 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.2f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 93 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bpsget + " BPS" , posX + 97 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "S" , posX + 82 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        String timeString = sdf.format(new Date());
        String time = timeString;
        float timeTextWidth = Fonts.sfui.getWidth(time , fontSize);
        float wthidewidth = Fonts.sfui.getWidth("cosmohack" , fontSize);
        if (!HUD.wtname.get()) {
            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 50 + namewidht + fpsWidth + timeTextWidth , iconSize + padding * 1.3f , 4);
        }
//        DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        DisplayUtils.drawRectVerticalW(posX + 97.9f + +namewidht + fpsWidth , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
//            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 5 + namewidht , iconSize + padding * 1.3f , 4);
       else if (!HUD.wtname.get()){
           Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , name , posX + 64 , posY + 3.5f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        }
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "W" , posX + 55 , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , fps + " Fps" , posX + 80 + namewidht , posY + 3.5f , ColorUtils.rgba(210 , 210 , 210 , 255) , fontSize + 0 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "X" , posX + 70 + namewidht , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "V" , posX + 101 + namewidht + fpsWidth , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack(), time , posX + 113 + namewidht + fpsWidth , posY + 3.5f, ColorUtils.rgba(210, 210, 210, 255), fontSize + 0, 0.05f);
    }

    private void drawStyledRect(float x, float y, float width, float height, float radius) {
            KawaseBlur.blur.updateBlur(2 , 2);
            KawaseBlur.blur.render(() -> {
                DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 255));
            });
        DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 195));
    }
Шрифты регать в utils/render/font/Fonts.java


Код:
import com.mojang.blaze3d.matrix.MatrixStack;
import main.cosmo.AlphaClass;
import main.cosmo.events.EventDisplay;
import main.cosmo.functions.impl.render.HUD;
import main.cosmo.ui.display.ElementRenderer;
import main.cosmo.ui.styles.Style;
import main.cosmo.utils.PingUtil;
import main.cosmo.utils.TPSCalc;
import main.cosmo.utils.client.ServerTPS;
import main.cosmo.utils.math.MathUtil;
import main.cosmo.utils.render.ColorUtils;
import main.cosmo.utils.render.DisplayUtils;
import main.cosmo.utils.render.KawaseBlur;
import main.cosmo.utils.render.font.Fonts;
import main.cosmo.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.Minecraft;
import net.minecraft.util.Hand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;
жду фул худ
 
Начинающий
Статус
Оффлайн
Регистрация
6 Апр 2024
Сообщения
190
Реакции[?]
5
Поинты[?]
4K
ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.

font -
Пожалуйста, авторизуйтесь для просмотра ссылки.

PingUtil -
Пожалуйста, авторизуйтесь для просмотра ссылки.



Код:
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {

    final Minecraft mc = Minecraft.getInstance();
    final ResourceLocation logo = new ResourceLocation("cosmohack/images/hud/rhomb1.png");
    final ResourceLocation fpsIcon = new ResourceLocation("cosmohack/images/hud/fps1.png");
    final ResourceLocation timeIcon = new ResourceLocation("cosmohack/images/hud/time1.png");
    final ResourceLocation compass = new ResourceLocation("cosmohack/images/compass.png");
    final ResourceLocation gps = new ResourceLocation("cosmohack/images/hud/gps1.png");

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 4;
        float padding = 5;
        float fontSize = 6.5f;
        float iconSize = 10;
        float posX1 = 65;
        float posY1 = 4;

        Style style = AlphaClass.getInstance().getStyleManager().getCurrentStyle();
        String fps1 = String.valueOf(mc.debugFPS);


        drawStyledRect(posX , posY , iconSize + padding * 9 , iconSize + padding * 1.3f , 4);
//        DisplayUtils.drawImage(logo, posX + padding, posY - 2.0f + padding, iconSize, iconSize , ColorUtils.rgb(255, 255, 255));
        DisplayUtils.drawRectVerticalW(posX + 17.5f , posY + 3.5f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(ms , "Release" , posX + 19.5f , posY + 3f , HUD.getColor(0) , fontSize + 1);
        Fonts.icon.drawText(ms , "B" , posX + 4.0f , posY + 1.0f , HUD.getColor(0) , fontSize + 4);

        int fps = mc.getDebugFPS();
        ITextComponent fpsText = GradientUtil.gradient(String.valueOf(fps));
        float fpsTextWidth = Fonts.msMedium.getWidth(fpsText , fontSize);
        float fpsPosX = posX + iconSize + padding * 3;
        if (fps >= 100 && fps <= 999) {
            posX1 += 5;
        }

        String bps = (int) mc.player.getPosX() + " " + (int) mc.player.getPosY() + " " + (int) mc.player.getPosZ();

        String tps = String.valueOf(ServerTPS.getTPS());

        String bpsget = String.valueOf(PingUtil.calculateBPS());

        String name = mc.player.getName().getString();

        float namewidht = Fonts.msMedium.getWidth(name , fontSize);


        float fpsTextWidth1 = Fonts.msMedium.getWidth(bps , fontSize);

        float fpsWidth = Fonts.msMedium.getWidth(String.valueOf(fps) , fontSize);

        drawStyledRect(posX + 0.1f , posY + 15 , iconSize + padding * 3.2f + fpsTextWidth1 , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 13.9f , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bps , posX + 18 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , "F" , posX + 4 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 23 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.5f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 37 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , tps + " Ticks" , posX + 40 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "Q" , posX + 27 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 78 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.2f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 93 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bpsget + " BPS" , posX + 97 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "S" , posX + 82 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        String timeString = sdf.format(new Date());
        String time = timeString;
        float timeTextWidth = Fonts.sfui.getWidth(time , fontSize);
        float wthidewidth = Fonts.sfui.getWidth("cosmohack" , fontSize);
        if (!HUD.wtname.get()) {
            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 50 + namewidht + fpsWidth + timeTextWidth , iconSize + padding * 1.3f , 4);
        }
//        DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        DisplayUtils.drawRectVerticalW(posX + 97.9f + +namewidht + fpsWidth , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
//            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 5 + namewidht , iconSize + padding * 1.3f , 4);
       else if (!HUD.wtname.get()){
           Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , name , posX + 64 , posY + 3.5f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        }
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "W" , posX + 55 , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , fps + " Fps" , posX + 80 + namewidht , posY + 3.5f , ColorUtils.rgba(210 , 210 , 210 , 255) , fontSize + 0 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "X" , posX + 70 + namewidht , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "V" , posX + 101 + namewidht + fpsWidth , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack(), time , posX + 113 + namewidht + fpsWidth , posY + 3.5f, ColorUtils.rgba(210, 210, 210, 255), fontSize + 0, 0.05f);
    }

    private void drawStyledRect(float x, float y, float width, float height, float radius) {
            KawaseBlur.blur.updateBlur(2 , 2);
            KawaseBlur.blur.render(() -> {
                DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 255));
            });
        DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 195));
    }
Шрифты регать в utils/render/font/Fonts.java


Код:
import com.mojang.blaze3d.matrix.MatrixStack;
import main.cosmo.AlphaClass;
import main.cosmo.events.EventDisplay;
import main.cosmo.functions.impl.render.HUD;
import main.cosmo.ui.display.ElementRenderer;
import main.cosmo.ui.styles.Style;
import main.cosmo.utils.PingUtil;
import main.cosmo.utils.TPSCalc;
import main.cosmo.utils.client.ServerTPS;
import main.cosmo.utils.math.MathUtil;
import main.cosmo.utils.render.ColorUtils;
import main.cosmo.utils.render.DisplayUtils;
import main.cosmo.utils.render.KawaseBlur;
import main.cosmo.utils.render.font.Fonts;
import main.cosmo.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.Minecraft;
import net.minecraft.util.Hand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;
Первая нормальная ватермарка на 3.1, на 2.0 такую делать минут 10
 
Начинающий
Статус
Оффлайн
Регистрация
25 Фев 2024
Сообщения
235
Реакции[?]
0
Поинты[?]
0
ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.

font -
Пожалуйста, авторизуйтесь для просмотра ссылки.

PingUtil -
Пожалуйста, авторизуйтесь для просмотра ссылки.



Код:
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {

    final Minecraft mc = Minecraft.getInstance();
    final ResourceLocation logo = new ResourceLocation("cosmohack/images/hud/rhomb1.png");
    final ResourceLocation fpsIcon = new ResourceLocation("cosmohack/images/hud/fps1.png");
    final ResourceLocation timeIcon = new ResourceLocation("cosmohack/images/hud/time1.png");
    final ResourceLocation compass = new ResourceLocation("cosmohack/images/compass.png");
    final ResourceLocation gps = new ResourceLocation("cosmohack/images/hud/gps1.png");

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 4;
        float padding = 5;
        float fontSize = 6.5f;
        float iconSize = 10;
        float posX1 = 65;
        float posY1 = 4;

        Style style = AlphaClass.getInstance().getStyleManager().getCurrentStyle();
        String fps1 = String.valueOf(mc.debugFPS);


        drawStyledRect(posX , posY , iconSize + padding * 9 , iconSize + padding * 1.3f , 4);
//        DisplayUtils.drawImage(logo, posX + padding, posY - 2.0f + padding, iconSize, iconSize , ColorUtils.rgb(255, 255, 255));
        DisplayUtils.drawRectVerticalW(posX + 17.5f , posY + 3.5f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(ms , "Release" , posX + 19.5f , posY + 3f , HUD.getColor(0) , fontSize + 1);
        Fonts.icon.drawText(ms , "B" , posX + 4.0f , posY + 1.0f , HUD.getColor(0) , fontSize + 4);

        int fps = mc.getDebugFPS();
        ITextComponent fpsText = GradientUtil.gradient(String.valueOf(fps));
        float fpsTextWidth = Fonts.msMedium.getWidth(fpsText , fontSize);
        float fpsPosX = posX + iconSize + padding * 3;
        if (fps >= 100 && fps <= 999) {
            posX1 += 5;
        }

        String bps = (int) mc.player.getPosX() + " " + (int) mc.player.getPosY() + " " + (int) mc.player.getPosZ();

        String tps = String.valueOf(ServerTPS.getTPS());

        String bpsget = String.valueOf(PingUtil.calculateBPS());

        String name = mc.player.getName().getString();

        float namewidht = Fonts.msMedium.getWidth(name , fontSize);


        float fpsTextWidth1 = Fonts.msMedium.getWidth(bps , fontSize);

        float fpsWidth = Fonts.msMedium.getWidth(String.valueOf(fps) , fontSize);

        drawStyledRect(posX + 0.1f , posY + 15 , iconSize + padding * 3.2f + fpsTextWidth1 , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 13.9f , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bps , posX + 18 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , "F" , posX + 4 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 23 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.5f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 37 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , tps + " Ticks" , posX + 40 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
            Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "Q" , posX + 27 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        drawStyledRect(posX + 78 + fpsTextWidth1 , posY + 15 , iconSize + padding * 9.2f , iconSize + padding * 1.3f , 4);
        DisplayUtils.drawRectVerticalW(posX + 93 + fpsTextWidth1 , posY + 18.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , bpsget + " BPS" , posX + 97 + fpsTextWidth1 , posY + 18.8f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "S" , posX + 82 + fpsTextWidth1 , posY + 18.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);

        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        String timeString = sdf.format(new Date());
        String time = timeString;
        float timeTextWidth = Fonts.sfui.getWidth(time , fontSize);
        float wthidewidth = Fonts.sfui.getWidth("cosmohack" , fontSize);
        if (!HUD.wtname.get()) {
            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 50 + namewidht + fpsWidth + timeTextWidth , iconSize + padding * 1.3f , 4);
        }
//        DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
        DisplayUtils.drawRectVerticalW(posX + 97.9f + +namewidht + fpsWidth , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
            DisplayUtils.drawRectVerticalW(posX + 66.9f + +namewidht , posY + 3.0f , 0.5f , 7 , ColorUtils.rgba(70 , 70 , 70 , 255) , ColorUtils.rgba(70 , 70 , 70 , 255));
//            drawStyledRect(posX + 52.1f , posY + 0 , iconSize + padding + 5 + namewidht , iconSize + padding * 1.3f , 4);
       else if (!HUD.wtname.get()){
           Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , name , posX + 64 , posY + 3.5f , ColorUtils.rgb(210 , 210 , 210) , fontSize , 0.05f);
        }
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "W" , posX + 55 , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack() , fps + " Fps" , posX + 80 + namewidht , posY + 3.5f , ColorUtils.rgba(210 , 210 , 210 , 255) , fontSize + 0 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "X" , posX + 70 + namewidht , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.icon.drawText(eventDisplay.getMatrixStack() , tps + "V" , posX + 101 + namewidht + fpsWidth , posY + 3.1f , HUD.getColor(0) , fontSize + 1 , 0.05f);
        Fonts.msMedium.drawText(eventDisplay.getMatrixStack(), time , posX + 113 + namewidht + fpsWidth , posY + 3.5f, ColorUtils.rgba(210, 210, 210, 255), fontSize + 0, 0.05f);
    }

    private void drawStyledRect(float x, float y, float width, float height, float radius) {
            KawaseBlur.blur.updateBlur(2 , 2);
            KawaseBlur.blur.render(() -> {
                DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 255));
            });
        DisplayUtils.drawRoundedRect(x , y , width + -4 , height + -3 , radius , ColorUtils.rgba(0 , 0 , 0 , 195));
    }
Шрифты регать в utils/render/font/Fonts.java


Код:
import com.mojang.blaze3d.matrix.MatrixStack;
import main.cosmo.AlphaClass;
import main.cosmo.events.EventDisplay;
import main.cosmo.functions.impl.render.HUD;
import main.cosmo.ui.display.ElementRenderer;
import main.cosmo.ui.styles.Style;
import main.cosmo.utils.PingUtil;
import main.cosmo.utils.TPSCalc;
import main.cosmo.utils.client.ServerTPS;
import main.cosmo.utils.math.MathUtil;
import main.cosmo.utils.render.ColorUtils;
import main.cosmo.utils.render.DisplayUtils;
import main.cosmo.utils.render.KawaseBlur;
import main.cosmo.utils.render.font.Fonts;
import main.cosmo.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.Minecraft;
import net.minecraft.util.Hand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;
1720913532433.pngты помоему что-то забыл
 
Начинающий
Статус
Оффлайн
Регистрация
16 Май 2024
Сообщения
137
Реакции[?]
1
Поинты[?]
1K
Сверху Снизу