Watermark aka arbuziki

Начинающий
Статус
Оффлайн
Регистрация
11 Янв 2025
Сообщения
56
Реакции[?]
0
Поинты[?]
0
сделал вт знаю что говно, но 2 работа
1737304698733.png
PON?:
package wtf.season.ui.display.impl;

import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.util.ResourceLocation;
import wtf.season.Expensive;
import wtf.season.events.EventDisplay;
import wtf.season.ui.display.ElementRenderer;
import wtf.season.ui.styles.Style;
import wtf.season.utils.client.Gradient;
import wtf.season.utils.render.ColorUtils;
import wtf.season.utils.render.DisplayUtils;
import wtf.season.utils.render.font.Fonts;
import wtf.season.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.util.math.vector.Vector4f;
import net.minecraft.util.text.ITextComponent;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {
    private final ResourceLocation icon = new ResourceLocation("expensive/images/hud/melon.png");
    public void render(EventDisplay eventDisplay) {

        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 5;
        float padding = 2;
        float fontSize = 8;
        Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();

        ITextComponent fps = GradientUtil.gradient(" "+mc.debugFPS+ "fps");
        ITextComponent uid = GradientUtil.gradient("uid: 0");

        float w = 85;
        float h = fontSize + padding * 3;
        drawStyledRect(posX, posY, w+padding, h + 4, 3);
        DisplayUtils.drawImage(icon, posX , posY, 17,17,  ColorUtils.rgb(255, 255, 255));
        Fonts.sfbold.drawText(ms, "arbuz.cc", posX + 20, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, mc.debugFPS+ "fps", posX + 73, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, "uid: 0", posX + 18, posY+30, ColorUtils.rgba(255, 255, 255,120), 7);

    }


    private void drawStyledRect(float x,
                                float y,
                                float width,
                                float height,
                                float radius) {

        DisplayUtils.drawRoundedRect(x - 2, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x - 2, y + 22, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y + 23, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x + 56, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x + 57, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
    }
}
 

Вложения

Начинающий
Статус
Оффлайн
Регистрация
29 Окт 2024
Сообщения
111
Реакции[?]
1
Поинты[?]
1K
сделал вт знаю что говно, но 2 работа
Посмотреть вложение 296450
PON?:
package wtf.season.ui.display.impl;

import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.util.ResourceLocation;
import wtf.season.Expensive;
import wtf.season.events.EventDisplay;
import wtf.season.ui.display.ElementRenderer;
import wtf.season.ui.styles.Style;
import wtf.season.utils.client.Gradient;
import wtf.season.utils.render.ColorUtils;
import wtf.season.utils.render.DisplayUtils;
import wtf.season.utils.render.font.Fonts;
import wtf.season.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.util.math.vector.Vector4f;
import net.minecraft.util.text.ITextComponent;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {
    private final ResourceLocation icon = new ResourceLocation("expensive/images/hud/melon.png");
    public void render(EventDisplay eventDisplay) {

        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 5;
        float padding = 2;
        float fontSize = 8;
        Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();

        ITextComponent fps = GradientUtil.gradient(" "+mc.debugFPS+ "fps");
        ITextComponent uid = GradientUtil.gradient("uid: 0");

        float w = 85;
        float h = fontSize + padding * 3;
        drawStyledRect(posX, posY, w+padding, h + 4, 3);
        DisplayUtils.drawImage(icon, posX , posY, 17,17,  ColorUtils.rgb(255, 255, 255));
        Fonts.sfbold.drawText(ms, "arbuz.cc", posX + 20, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, mc.debugFPS+ "fps", posX + 73, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, "uid: 0", posX + 18, posY+30, ColorUtils.rgba(255, 255, 255,120), 7);

    }


    private void drawStyledRect(float x,
                                float y,
                                float width,
                                float height,
                                float radius) {

        DisplayUtils.drawRoundedRect(x - 2, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x - 2, y + 22, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y + 23, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x + 56, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x + 57, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
    }
}
ХАЪХАХАХАХААХА ЭТО ПИЗДЕЦ
 
Забаненный
Статус
Оффлайн
Регистрация
8 Авг 2024
Сообщения
905
Реакции[?]
6
Поинты[?]
5K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
сделал вт знаю что говно, но 2 работа
Посмотреть вложение 296450
PON?:
package wtf.season.ui.display.impl;

import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.util.ResourceLocation;
import wtf.season.Expensive;
import wtf.season.events.EventDisplay;
import wtf.season.ui.display.ElementRenderer;
import wtf.season.ui.styles.Style;
import wtf.season.utils.client.Gradient;
import wtf.season.utils.render.ColorUtils;
import wtf.season.utils.render.DisplayUtils;
import wtf.season.utils.render.font.Fonts;
import wtf.season.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.util.math.vector.Vector4f;
import net.minecraft.util.text.ITextComponent;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {
    private final ResourceLocation icon = new ResourceLocation("expensive/images/hud/melon.png");
    public void render(EventDisplay eventDisplay) {

        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 5;
        float padding = 2;
        float fontSize = 8;
        Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();

        ITextComponent fps = GradientUtil.gradient(" "+mc.debugFPS+ "fps");
        ITextComponent uid = GradientUtil.gradient("uid: 0");

        float w = 85;
        float h = fontSize + padding * 3;
        drawStyledRect(posX, posY, w+padding, h + 4, 3);
        DisplayUtils.drawImage(icon, posX , posY, 17,17,  ColorUtils.rgb(255, 255, 255));
        Fonts.sfbold.drawText(ms, "arbuz.cc", posX + 20, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, mc.debugFPS+ "fps", posX + 73, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, "uid: 0", posX + 18, posY+30, ColorUtils.rgba(255, 255, 255,120), 7);

    }


    private void drawStyledRect(float x,
                                float y,
                                float width,
                                float height,
                                float radius) {

        DisplayUtils.drawRoundedRect(x - 2, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x - 2, y + 22, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y + 23, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x + 56, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x + 57, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
    }
}
Ждём в VenusWare (no ad)
 
Начинающий
Статус
Оффлайн
Регистрация
26 Дек 2023
Сообщения
1,173
Реакции[?]
15
Поинты[?]
6K
сделал вт знаю что говно, но 2 работа
Посмотреть вложение 296450
PON?:
package wtf.season.ui.display.impl;

import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.util.ResourceLocation;
import wtf.season.Expensive;
import wtf.season.events.EventDisplay;
import wtf.season.ui.display.ElementRenderer;
import wtf.season.ui.styles.Style;
import wtf.season.utils.client.Gradient;
import wtf.season.utils.render.ColorUtils;
import wtf.season.utils.render.DisplayUtils;
import wtf.season.utils.render.font.Fonts;
import wtf.season.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.util.math.vector.Vector4f;
import net.minecraft.util.text.ITextComponent;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {
    private final ResourceLocation icon = new ResourceLocation("expensive/images/hud/melon.png");
    public void render(EventDisplay eventDisplay) {

        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 5;
        float padding = 2;
        float fontSize = 8;
        Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();

        ITextComponent fps = GradientUtil.gradient(" "+mc.debugFPS+ "fps");
        ITextComponent uid = GradientUtil.gradient("uid: 0");

        float w = 85;
        float h = fontSize + padding * 3;
        drawStyledRect(posX, posY, w+padding, h + 4, 3);
        DisplayUtils.drawImage(icon, posX , posY, 17,17,  ColorUtils.rgb(255, 255, 255));
        Fonts.sfbold.drawText(ms, "arbuz.cc", posX + 20, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, mc.debugFPS+ "fps", posX + 73, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, "uid: 0", posX + 18, posY+30, ColorUtils.rgba(255, 255, 255,120), 7);

    }


    private void drawStyledRect(float x,
                                float y,
                                float width,
                                float height,
                                float radius) {

        DisplayUtils.drawRoundedRect(x - 2, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x - 2, y + 22, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y + 23, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x + 56, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x + 57, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
    }
}
говнише кривое
нахуя щитпостить своими ватермарками кривыми
 
Начинающий
Статус
Оффлайн
Регистрация
18 Сен 2022
Сообщения
166
Реакции[?]
0
Поинты[?]
0
сделал вт знаю что говно, но 2 работа
Посмотреть вложение 296450
PON?:
package wtf.season.ui.display.impl;

import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.util.ResourceLocation;
import wtf.season.Expensive;
import wtf.season.events.EventDisplay;
import wtf.season.ui.display.ElementRenderer;
import wtf.season.ui.styles.Style;
import wtf.season.utils.client.Gradient;
import wtf.season.utils.render.ColorUtils;
import wtf.season.utils.render.DisplayUtils;
import wtf.season.utils.render.font.Fonts;
import wtf.season.utils.text.GradientUtil;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.util.math.vector.Vector4f;
import net.minecraft.util.text.ITextComponent;

@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {
    private final ResourceLocation icon = new ResourceLocation("expensive/images/hud/melon.png");
    public void render(EventDisplay eventDisplay) {

        MatrixStack ms = eventDisplay.getMatrixStack();
        float posX = 5;
        float posY = 5;
        float padding = 2;
        float fontSize = 8;
        Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();

        ITextComponent fps = GradientUtil.gradient(" "+mc.debugFPS+ "fps");
        ITextComponent uid = GradientUtil.gradient("uid: 0");

        float w = 85;
        float h = fontSize + padding * 3;
        drawStyledRect(posX, posY, w+padding, h + 4, 3);
        DisplayUtils.drawImage(icon, posX , posY, 17,17,  ColorUtils.rgb(255, 255, 255));
        Fonts.sfbold.drawText(ms, "arbuz.cc", posX + 20, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, mc.debugFPS+ "fps", posX + 73, posY+6, ColorUtils.rgba(255, 255, 255,120), 7);
        Fonts.sfbold.drawText(ms, "uid: 0", posX + 18, posY+30, ColorUtils.rgba(255, 255, 255,120), 7);

    }


    private void drawStyledRect(float x,
                                float y,
                                float width,
                                float height,
                                float radius) {

        DisplayUtils.drawRoundedRect(x - 2, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x - 2, y + 22, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x - 1, y + 23, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
        DisplayUtils.drawRoundedRect(x + 56, y - 2, width - 30, height + 4, new Vector4f(4,4,4,4), Gradient.ClientGradient());
        DisplayUtils.drawRoundedRect(x + 57, y - 1, width - 32, height + 2, new Vector4f(4,4,4,4), ColorUtils.rgba(0,0,0,160));
    }
}
шрифт хуйня
 
Сверху Снизу