Исходник KEYBINDS | expensive 2.0 ready

Начинающий
Статус
Оффлайн
Регистрация
13 Ноя 2022
Сообщения
5
Реакции[?]
0
Поинты[?]
0

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Снимок экрана 2024-03-10 193827.pngСнимок экрана 2024-03-10 193836.png

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
 
Начинающий
Статус
Оффлайн
Регистрация
8 Мар 2024
Сообщения
638
Реакции[?]
2
Поинты[?]
2K
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
Hud Vendex 2.0 (expensive 2.0 ready) | Сайт читов, скриптов и кодов для онлайн игр - YouGame.Biz orig
чел смысл сливать слитое так ещё и кривое...
 
Забаненный
Статус
Оффлайн
Регистрация
22 Фев 2024
Сообщения
81
Реакции[?]
2
Поинты[?]
2K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Начинающий
Статус
Оффлайн
Регистрация
30 Июн 2023
Сообщения
98
Реакции[?]
1
Поинты[?]
3K
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
Vendex moment
 
Начинающий
Статус
Оффлайн
Регистрация
20 Дек 2023
Сообщения
126
Реакции[?]
0
Поинты[?]
0
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
:roflanBuldiga:
 
Начинающий
Статус
Оффлайн
Регистрация
20 Янв 2023
Сообщения
39
Реакции[?]
0
Поинты[?]
0
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
нахуя ты перезалил с худа вендекса
 
Начинающий
Статус
Оффлайн
Регистрация
9 Дек 2023
Сообщения
42
Реакции[?]
1
Поинты[?]
1K
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
А зачем ты сделал два отдельных свича под одни индексы? :roflanBuldiga:
Если ты мог сразу в одном свиче два кейса сделать.
 
Начинающий
Статус
Оффлайн
Регистрация
8 Мар 2024
Сообщения
638
Реакции[?]
2
Поинты[?]
2K
Начинающий
Статус
Оффлайн
Регистрация
8 Мар 2024
Сообщения
638
Реакции[?]
2
Поинты[?]
2K
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
криво,косо,хуёво,что за "B"?,сливали, удали ак пж и не когда не выкладывай херню на форуме:NotLikeThis:
 
ППХУДЕР
Начинающий
Статус
Оффлайн
Регистрация
10 Фев 2020
Сообщения
417
Реакции[?]
23
Поинты[?]
6K
ПОЖАЛУЙСТА НЕ ВЫРЫВАЙТЕ МНЕ РУКИ И ВООБЩЕ НЕ ИЗБИВАЙТЕ МЕНЯ!!!
SS :Посмотреть вложение 272312Посмотреть вложение 272313

public final ModeSetting pidors = new ModeSetting("Style", "white", "white", "black");
keybinds.java:
    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
        float posX = keyBinds.getX();
        float posY = keyBinds.getY();
        int firstColor = ColorUtil.getColorStyle(0);
        int secondColor = ColorUtil.getColorStyle(90);

        final Vector4i vec = new Vector4i(getColor(0), getColor(100), getColor(0), getColor(100));

        if (glowing) {
            //  BloomHelper.registerRenderCall(() -> RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec));
        }
        switch (pidors.getIndex()) {
            case 0 -> { //white
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(255, 255, 255, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());

                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
        switch (pidors.getIndex()) {
            case 1 -> { //black
                RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, getColor(100), getColor(100), getColor(0), getColor(0));
                // RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
                //RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 10, RenderUtil.reAlphaInt(b_color, 64));

                RenderUtil.Render2D.drawRoundedRect(posX + cWidth, posY, kbWidthAnimation, kbHeightAnimation, 4, new Color(19, 19, 19, 225).getRGB());

                final StringTextComponent gradientText = ClientUtil.gradient("Key Manager", firstColor, secondColor);
                final StringTextComponent gradientText2 = ClientUtil.gradient("B", firstColor, secondColor);
                Fonts.msBold[22].drawString(matrixStack, gradientText2, posX + cWidth + 6, posY + 5.5, new Color(255,255,255).getRGB());
                Fonts.msBold[17].drawCenteredString(matrixStack, gradientText, posX + cWidth + 51, posY + 6, new Color(255, 255, 255).getRGB());
                RenderUtil.Render2D.drawRect(posX + cWidth + 23, posY + 16, 55, 0.5f, new Color(123, 123, 123, 123).getRGB());

                RenderUtil.SmartScissor.push();
                RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, kbWidthAnimation, kbHeightAnimation);
                int i = 0;
                for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
                    if (!f.state || f.bind == 0) continue;

                    String text = ClientUtil.getKey(f.bind);

                    if (text.length() > 4) {
                        text = text.substring(0, 4) + "..";
                    }
                    String bindText = "[" + text.toUpperCase() + "]";
                    float bindWidth = small.getWidth(bindText);
                    String name = f.name;
                    if (name.length() > 13) {
                        name = name.substring(0, 13) + "..";
                    }

                    kbWidth = Math.max(small.getWidth(bindText + f.bind + 5), 100);

                    Fonts.msBold[14].drawString(matrixStack, name, posX + cWidth + 4, posY + 22 + (i * 10), t_color);

                    Fonts.msBold[14].drawString(matrixStack, bindText, posX + cWidth + kbWidthAnimation - bindWidth - 4, posY + 22 + (i * 10), t_color);

                    i++;
                }
                RenderUtil.SmartScissor.unset();
                RenderUtil.SmartScissor.pop();

                kbHeight = 22 + (i * 10);
                this.kbHeightAnimation = AnimationMath.fast(this.kbHeightAnimation, kbHeight, 10);
                this.kbWidthAnimation = AnimationMath.fast(this.kbWidthAnimation, kbWidth, 10);

                keyBinds.setWidth(kbWidth);
                keyBinds.setHeight(kbHeight);
            }
        }
    }
mda trash
 
Сверху Снизу