Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Визуальная часть Ватермарка катлавана | exp 3.1/ evaware

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
2 Ноя 2025
Сообщения
7
Реакции
0
Выберите загрузчик игры
  1. Прочие моды
Первая работа сильно не бейте пж
SS:
1776690210325.png


DW(картинки):
Пожалуйста, авторизуйтесь для просмотра ссылки.


Код:
Expand Collapse Copy
package ru.tabletka.ui.display.impl2;

import com.jhlabs.image.MarbleFilter;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TextFormatting;
import org.lwjgl.system.CallbackI;
import ru.tabletka.Tabletka;
import ru.tabletka.events.EventDisplay;
import ru.tabletka.ui.display.ElementRenderer;
import ru.tabletka.ui.themes.Theme;
import ru.tabletka.utils.drag.Dragging;
import ru.tabletka.utils.render.color.ColorUtils;
import ru.tabletka.utils.render.font.Fonts;
import ru.tabletka.utils.render.rect.DisplayUtils;
import ru.tabletka.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.util.text.ITextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer2 implements ElementRenderer {



    @Override
    public void render(EventDisplay eventDisplay) {
       Minecraft mc = Minecraft.getInstance();
       float widthFonts = Fonts.sfMedium.getWidth(mc.player.getScoreboardName(), 6.9f);
       float heightFonts = Fonts.sfMedium.getHeight(6.9f);
       float x = 35;
       float y = 5;


       final ResourceLocation logo = new ResourceLocation("eva/images/skidHudCatla/catlavanlogo.png");
       ResourceLocation fps = new ResourceLocation("eva/images/skidHudCatla/fps.png");
       final ResourceLocation user = new ResourceLocation("eva/images/skidHudCatla/user.png");


       DisplayUtils.drawRoundedRect(15, y, widthFonts + 130, 20, 3, ColorUtils.rgba(27, 27, 27, 230));
       Fonts.sfMedium.drawText(new MatrixStack(), "⋄" + mc.player.getScoreboardName(), 85, y + (20 - heightFonts) / 2, -1, 6.9f);



        float spacing = 0;
        float fpsX = x + 23 + widthFonts + 9 + spacing;

        DisplayUtils.drawImage(logo, 8, 2, 40, 25, -1);
        DisplayUtils.drawImage(user, 70, y + (15 - heightFonts) / 2, 15, 10, -1);
        DisplayUtils.drawImage(fps, fpsX + 30, (25   - heightFonts) / 2, 12, 10, -1);
        Fonts.sfMedium.drawText(new MatrixStack(), "Catlavan", 35, y + (20 - heightFonts) / 2, -1, 6.9f);


        Fonts.sfMedium.drawText(new MatrixStack(),  mc.getDebugFPS() + "Fps", fpsX + 45, y + (20 - heightFonts) / 2, -1, 6.9f);


    }

}
 

Вложения

  • Снимок экрана 2026-04-20 155813.png
    Снимок экрана 2026-04-20 155813.png
    7.4 KB · Просмотры: 208
  • 1776690207238.png
    1776690207238.png
    7.4 KB · Просмотры: 199
Первая работа сильно не бейте пж
SS: Посмотреть вложение 333706

DW(картинки):
Пожалуйста, авторизуйтесь для просмотра ссылки.


Код:
Expand Collapse Copy
package ru.tabletka.ui.display.impl2;

import com.jhlabs.image.MarbleFilter;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TextFormatting;
import org.lwjgl.system.CallbackI;
import ru.tabletka.Tabletka;
import ru.tabletka.events.EventDisplay;
import ru.tabletka.ui.display.ElementRenderer;
import ru.tabletka.ui.themes.Theme;
import ru.tabletka.utils.drag.Dragging;
import ru.tabletka.utils.render.color.ColorUtils;
import ru.tabletka.utils.render.font.Fonts;
import ru.tabletka.utils.render.rect.DisplayUtils;
import ru.tabletka.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.util.text.ITextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer2 implements ElementRenderer {



    @Override
    public void render(EventDisplay eventDisplay) {
       Minecraft mc = Minecraft.getInstance();
       float widthFonts = Fonts.sfMedium.getWidth(mc.player.getScoreboardName(), 6.9f);
       float heightFonts = Fonts.sfMedium.getHeight(6.9f);
       float x = 35;
       float y = 5;


       final ResourceLocation logo = new ResourceLocation("eva/images/skidHudCatla/catlavanlogo.png");
       ResourceLocation fps = new ResourceLocation("eva/images/skidHudCatla/fps.png");
       final ResourceLocation user = new ResourceLocation("eva/images/skidHudCatla/user.png");


       DisplayUtils.drawRoundedRect(15, y, widthFonts + 130, 20, 3, ColorUtils.rgba(27, 27, 27, 230));
       Fonts.sfMedium.drawText(new MatrixStack(), "⋄" + mc.player.getScoreboardName(), 85, y + (20 - heightFonts) / 2, -1, 6.9f);



        float spacing = 0;
        float fpsX = x + 23 + widthFonts + 9 + spacing;

        DisplayUtils.drawImage(logo, 8, 2, 40, 25, -1);
        DisplayUtils.drawImage(user, 70, y + (15 - heightFonts) / 2, 15, 10, -1);
        DisplayUtils.drawImage(fps, fpsX + 30, (25   - heightFonts) / 2, 12, 10, -1);
        Fonts.sfMedium.drawText(new MatrixStack(), "Catlavan", 35, y + (20 - heightFonts) / 2, -1, 6.9f);


        Fonts.sfMedium.drawText(new MatrixStack(),  mc.getDebugFPS() + "Fps", fpsX + 45, y + (20 - heightFonts) / 2, -1, 6.9f);


    }

}
/del Нахуй такое я и то лучше начинаю патить с 1.21.11 HUD
 
Первая работа сильно не бейте пж
SS: Посмотреть вложение 333706

DW(картинки):
Пожалуйста, авторизуйтесь для просмотра ссылки.


Код:
Expand Collapse Copy
package ru.tabletka.ui.display.impl2;

import com.jhlabs.image.MarbleFilter;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TextFormatting;
import org.lwjgl.system.CallbackI;
import ru.tabletka.Tabletka;
import ru.tabletka.events.EventDisplay;
import ru.tabletka.ui.display.ElementRenderer;
import ru.tabletka.ui.themes.Theme;
import ru.tabletka.utils.drag.Dragging;
import ru.tabletka.utils.render.color.ColorUtils;
import ru.tabletka.utils.render.font.Fonts;
import ru.tabletka.utils.render.rect.DisplayUtils;
import ru.tabletka.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.util.text.ITextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer2 implements ElementRenderer {



    @Override
    public void render(EventDisplay eventDisplay) {
       Minecraft mc = Minecraft.getInstance();
       float widthFonts = Fonts.sfMedium.getWidth(mc.player.getScoreboardName(), 6.9f);
       float heightFonts = Fonts.sfMedium.getHeight(6.9f);
       float x = 35;
       float y = 5;


       final ResourceLocation logo = new ResourceLocation("eva/images/skidHudCatla/catlavanlogo.png");
       ResourceLocation fps = new ResourceLocation("eva/images/skidHudCatla/fps.png");
       final ResourceLocation user = new ResourceLocation("eva/images/skidHudCatla/user.png");


       DisplayUtils.drawRoundedRect(15, y, widthFonts + 130, 20, 3, ColorUtils.rgba(27, 27, 27, 230));
       Fonts.sfMedium.drawText(new MatrixStack(), "⋄" + mc.player.getScoreboardName(), 85, y + (20 - heightFonts) / 2, -1, 6.9f);



        float spacing = 0;
        float fpsX = x + 23 + widthFonts + 9 + spacing;

        DisplayUtils.drawImage(logo, 8, 2, 40, 25, -1);
        DisplayUtils.drawImage(user, 70, y + (15 - heightFonts) / 2, 15, 10, -1);
        DisplayUtils.drawImage(fps, fpsX + 30, (25   - heightFonts) / 2, 12, 10, -1);
        Fonts.sfMedium.drawText(new MatrixStack(), "Catlavan", 35, y + (20 - heightFonts) / 2, -1, 6.9f);


        Fonts.sfMedium.drawText(new MatrixStack(),  mc.getDebugFPS() + "Fps", fpsX + 45, y + (20 - heightFonts) / 2, -1, 6.9f);


    }

}
Для первой работы не слишком плохо если писал сам, а так на публику это хуйня, вообще не лей сюда ничего тут сидят ну не самые умные типы, а так реально хуйня
 
Первая работа сильно не бейте пж
SS: Посмотреть вложение 333706

DW(картинки):
Пожалуйста, авторизуйтесь для просмотра ссылки.


Код:
Expand Collapse Copy
package ru.tabletka.ui.display.impl2;

import com.jhlabs.image.MarbleFilter;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TextFormatting;
import org.lwjgl.system.CallbackI;
import ru.tabletka.Tabletka;
import ru.tabletka.events.EventDisplay;
import ru.tabletka.ui.display.ElementRenderer;
import ru.tabletka.ui.themes.Theme;
import ru.tabletka.utils.drag.Dragging;
import ru.tabletka.utils.render.color.ColorUtils;
import ru.tabletka.utils.render.font.Fonts;
import ru.tabletka.utils.render.rect.DisplayUtils;
import ru.tabletka.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.util.text.ITextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer2 implements ElementRenderer {



    @Override
    public void render(EventDisplay eventDisplay) {
       Minecraft mc = Minecraft.getInstance();
       float widthFonts = Fonts.sfMedium.getWidth(mc.player.getScoreboardName(), 6.9f);
       float heightFonts = Fonts.sfMedium.getHeight(6.9f);
       float x = 35;
       float y = 5;


       final ResourceLocation logo = new ResourceLocation("eva/images/skidHudCatla/catlavanlogo.png");
       ResourceLocation fps = new ResourceLocation("eva/images/skidHudCatla/fps.png");
       final ResourceLocation user = new ResourceLocation("eva/images/skidHudCatla/user.png");


       DisplayUtils.drawRoundedRect(15, y, widthFonts + 130, 20, 3, ColorUtils.rgba(27, 27, 27, 230));
       Fonts.sfMedium.drawText(new MatrixStack(), "⋄" + mc.player.getScoreboardName(), 85, y + (20 - heightFonts) / 2, -1, 6.9f);



        float spacing = 0;
        float fpsX = x + 23 + widthFonts + 9 + spacing;

        DisplayUtils.drawImage(logo, 8, 2, 40, 25, -1);
        DisplayUtils.drawImage(user, 70, y + (15 - heightFonts) / 2, 15, 10, -1);
        DisplayUtils.drawImage(fps, fpsX + 30, (25   - heightFonts) / 2, 12, 10, -1);
        Fonts.sfMedium.drawText(new MatrixStack(), "Catlavan", 35, y + (20 - heightFonts) / 2, -1, 6.9f);


        Fonts.sfMedium.drawText(new MatrixStack(),  mc.getDebugFPS() + "Fps", fpsX + 45, y + (20 - heightFonts) / 2, -1, 6.9f);


    }

}
/del
 
Первая работа сильно не бейте пж
SS: Посмотреть вложение 333706

DW(картинки):
Пожалуйста, авторизуйтесь для просмотра ссылки.


Код:
Expand Collapse Copy
package ru.tabletka.ui.display.impl2;

import com.jhlabs.image.MarbleFilter;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TextFormatting;
import org.lwjgl.system.CallbackI;
import ru.tabletka.Tabletka;
import ru.tabletka.events.EventDisplay;
import ru.tabletka.ui.display.ElementRenderer;
import ru.tabletka.ui.themes.Theme;
import ru.tabletka.utils.drag.Dragging;
import ru.tabletka.utils.render.color.ColorUtils;
import ru.tabletka.utils.render.font.Fonts;
import ru.tabletka.utils.render.rect.DisplayUtils;
import ru.tabletka.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.util.text.ITextComponent;

import java.text.SimpleDateFormat;
import java.util.Date;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer2 implements ElementRenderer {



    @Override
    public void render(EventDisplay eventDisplay) {
       Minecraft mc = Minecraft.getInstance();
       float widthFonts = Fonts.sfMedium.getWidth(mc.player.getScoreboardName(), 6.9f);
       float heightFonts = Fonts.sfMedium.getHeight(6.9f);
       float x = 35;
       float y = 5;


       final ResourceLocation logo = new ResourceLocation("eva/images/skidHudCatla/catlavanlogo.png");
       ResourceLocation fps = new ResourceLocation("eva/images/skidHudCatla/fps.png");
       final ResourceLocation user = new ResourceLocation("eva/images/skidHudCatla/user.png");


       DisplayUtils.drawRoundedRect(15, y, widthFonts + 130, 20, 3, ColorUtils.rgba(27, 27, 27, 230));
       Fonts.sfMedium.drawText(new MatrixStack(), "⋄" + mc.player.getScoreboardName(), 85, y + (20 - heightFonts) / 2, -1, 6.9f);



        float spacing = 0;
        float fpsX = x + 23 + widthFonts + 9 + spacing;

        DisplayUtils.drawImage(logo, 8, 2, 40, 25, -1);
        DisplayUtils.drawImage(user, 70, y + (15 - heightFonts) / 2, 15, 10, -1);
        DisplayUtils.drawImage(fps, fpsX + 30, (25   - heightFonts) / 2, 12, 10, -1);
        Fonts.sfMedium.drawText(new MatrixStack(), "Catlavan", 35, y + (20 - heightFonts) / 2, -1, 6.9f);


        Fonts.sfMedium.drawText(new MatrixStack(),  mc.getDebugFPS() + "Fps", fpsX + 45, y + (20 - heightFonts) / 2, -1, 6.9f);


    }

}
спасибо
 
Назад
Сверху Снизу