Визуальная часть Nursultan alpha skid

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
3.1 если да то куда это вставлять...
 
Твой скид просто бомба но лучшe Большe нe скидь пж ок да
 
вспомнил про свой давний скид худа нурлана еще когда альфа стоила многа крч нате
Посмотреть вложение 307192
Java:
Expand Collapse Copy
private void renderWatermark(MatrixStack matrixStack, int offset, boolean glowing, boolean shadow) {
float posX = watermark.getX();
        float posY = watermark.getY();
        int c;
        if(ClientGui.isDark){
c = new Color(100,100,100).getRGB();
        }else{
c = new Color(200,200,200).getRGB();
        }
String username = "нурлан бета";

        watermark.setWidth(Fonts.sf_bold[17].getWidth(username)+33);
        watermark.setHeight(20);
        GaussianBlur.startBlur();
        RenderUtil.Render2D.drawRoundedRect(posX,posY,watermark.getWidth(),watermark.getHeight(),6, RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),155));
        GaussianBlur.endBlur(5,2);
        RenderUtil.Render2D.drawRoundedRect(posX,posY,watermark.getWidth(),watermark.getHeight(),6, RenderUtil.reAlphaInt(ClientGui.backColor,200));
//        RenderUtil.Render2D.drawRoundedRect(posX,posY,watermark.getWidth(),watermark.getHeight(),6, RenderUtil.reAlphaInt(ClientGui.backColor,200));
        RenderUtil.Render2D.drawRect(posX+23,posY+0.5f,1,watermark.getHeight()-1,RenderUtil.reAlphaInt(c,100));


        Fonts.icons[20].drawString(matrixStack, "Q", posX+7, posY+Fonts.icons[20].getFontHeight()/2f+2, ClientGui.foreColor);
        GL11.glTranslatef(posX,posY,0);
        Fonts.sf_medium[18].drawString(new MatrixStack(),username,28,Fonts.sf_bold[15].getFontHeight()/2f+2.5f, ClientGui.foreColor);
        GL11.glTranslatef(-posX,-posY,0);
    }

private void renderFunctions(MatrixStack matrixStack, int offset, boolean glowing) {
float padding = 6;
        float dumbOffset = 1.5f;

        float height = Fonts.sf_bold[15].getFontHeight() - dumbOffset + padding;
        arraylist.setHeight(height);

        List<Function> fs = new ArrayList<>();

        for (Function f : functions) {
f.animation = AnimationMath.fast(f.animation, f.state ? 1 : 0, 15);
            if (f.animation < 0.1) continue;
            fs.add(f);
        }

List<Function> fs1 = new ArrayList<>();
        int in = 0;
        for (Function f : functions) {
if (!f.state) continue;
            fs1.add(f);
        }

for (Function f : fs1) {
boolean isLast = in == fs1.size() - 1;

            f.degree = isLast ? round_degree : Math.min(small.getWidth(f.name) + 1 - small.getWidth(fs1.get(in + 1).name), round_degree);
            in++;
        }

float index = 0;

        boolean flip = arraylist.getX()+arraylist.getWidth()/2f>window.getScaledWidth()/2f;
        boolean flipY = arraylist.getY()>window.getScaledHeight()/2f;
        Collections.sort(fs, Comparator.comparing(f->Fonts.sf_bold[15].getWidth(f.name)+padding));
        if(!flipY)Collections.reverse(fs);

        for (Function f : fs) {
boolean isFirst = index == 0;
            boolean isLast = Math.round(index) == fs.size() - 1;

            float width = Fonts.sf_bold[15].getWidth(f.name)+padding;
            if(width>arraylist.getWidth()){
arraylist.setWidth(width);
            }

float r_posX = arraylist.getX()+(flip?arraylist.getWidth()-width:0);
            float r_posY = arraylist.getY()+(index * height);
            arraylist.setHeight((index * height));

            float degree = 5;
            float round = isFirst ? degree : 0;
            float round2 = isLast ? degree : 0;

            Vector4f left_vec = new Vector4f(5, 5, round, round2);
            Vector4f right_vec = new Vector4f(round, round2,5,5);

            float finalIndex = index;

            Vector4i vec = new Vector4i(getColor((int) (finalIndex * 10)), getColor((int) ((finalIndex + 1) * 10)), getColor((int) (finalIndex * 10)), getColor((int) ((finalIndex + 1) * 10)));

            if (glowing) {

}
GlStateManager.pushMatrix();
            GlStateManager.translated(r_posX - cWidth, r_posY, 0);
            GlStateManager.scaled(1, f.animation, 1);
            GlStateManager.translated(-(r_posX - cWidth), -r_posY, 0);
            if(flip){
//                RenderUtil.Render2D.drawShadow(r_posX - cWidth, r_posY, width, height, 10, RenderUtil.reAlphaInt(b_color, 64));
                RenderUtil.Render2D.drawRoundedCorner(r_posX - cWidth, r_posY, width, height, left_vec, ClientGui.backColor);
//                RenderUtil.Render2D.drawRoundedCorner(r_posX + width - cWidth - 3, r_posY, cWidth, height, new Vector4f(0,0,0,0), vec);
                Fonts.sf_bold[15].drawString(matrixStack, f.name, r_posX + padding - cWidth - 2, r_posY - dumbOffset + (height / 2.2f), getColor((int) (index*40)));
            }else{
//                RenderUtil.Render2D.drawShadow(r_posX, r_posY, width, height, 10, RenderUtil.reAlphaInt(b_color, 64));
                RenderUtil.Render2D.drawRoundedCorner(r_posX, r_posY, width, height, right_vec, ClientGui.backColor);
//                RenderUtil.Render2D.drawRoundedCorner(r_posX, r_posY, cWidth, height, new Vector4f(0,0,0,0), vec);
                Fonts.sf_bold[15].drawString(matrixStack, f.name, r_posX + 3, r_posY - dumbOffset + (height / 2.2f), getColor((int) (index*40)));
            }



GlStateManager.popMatrix();

            index+=f.animation;
            in++;
        }


}

private void renderPotions(MatrixStack matrixStack, int offset, boolean glowing) {
potions.setWidth(110);

        float posX = potions.getX();
        float posY = potions.getY();
        float width = potions.getWidth();
        float height = potions.getHeight();

//        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));
//        }

//        RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
//        RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation+0.5f, kbHeightAnimation, 7, RenderUtil.reAlphaInt(Manager.STYLE_MANAGER.getCurrentStyle().getColor(0), 255));

        int c;
        if(ClientGui.isDark){
c = new Color(100,100,100).getRGB();
        }else{
c = new Color(200,200,200).getRGB();
        }

GaussianBlur.startBlur();
        RenderUtil.Render2D.drawRoundedRect(posX,posY,potions.getWidth(),22,6, RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),155));
        GaussianBlur.endBlur(5,2);
        RenderUtil.Render2D.drawRoundedRect(posX,posY,potions.getWidth(),22,6, RenderUtil.reAlphaInt(ClientGui.backColor,200));
//        RenderUtil.Render2D.drawRoundedRect(posX,posY,watermark.getWidth(),watermark.getHeight(),6, RenderUtil.reAlphaInt(ClientGui.backColor,200));
        RenderUtil.Render2D.drawRect(posX+24,posY+0.5f,1,22-1,RenderUtil.reAlphaInt(c,100));

        Fonts.icons[26].drawString(matrixStack, "B", (posX+7), posY + 7, ClientGui.foreColor);

//        RenderUtil.Render2D.drawRect(posX+20,posY+0.5f,1,21,RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),100));

        Fonts.sf_medium[20].drawString(matrixStack, "Active potions", (posX+29), posY + 8, ClientGui.foreColor);


        int index = 0;

        for (EffectInstance eff : mc.player.getActivePotionEffects().stream().sorted(Comparator.comparing(EffectInstance::getDuration)).toList()) {
final String text = I18n.format(eff.getEffectName()); // + " - " + EffectUtils.getPotionDurationString(eff, 1);
            final float textWidth = Fonts.sf_bold[17].getWidth(text) + 12;


            final Vector4i vec = new Vector4i(getColor(index * 30), getColor(index * 30 + 30), getColor(index * 30), getColor(index * 30 + 30));

//            Fonts.sf_bold[17].drawString(matrixStack, text, posX + 4, posY + (index * 12) + 19, Window.foreColor);

            GaussianBlur.startBlur();
            RenderUtil.Render2D.drawRoundedRect(posX,posY + (index * 18) + 24,potions.getWidth(),16,6, RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),155));
            GaussianBlur.endBlur(5,2);
            RenderUtil.Render2D.drawRoundedRect(posX,posY + (index * 18) + 24,potions.getWidth(),16,6, RenderUtil.reAlphaInt(ClientGui.backColor,200));

            Fonts.sf_medium[17].drawString(matrixStack,text,posX+7,posY + (index * 18) + 29.5f, ClientGui.foreColor);
            Fonts.sf_medium[17].drawString(matrixStack,((eff.getAmplifier() + 1)>1? TextFormatting.AQUA+""+(eff.getAmplifier() + 1):""),posX+Fonts.sf_medium[17].getWidth(text)+9,posY + (index * 18) + 30f, ClientGui.foreColor);

            Fonts.sf_medium[17].drawString(matrixStack, EffectUtils.getPotionDurationString(eff, 1), posX + width - Fonts.sf_medium[17].getWidth(EffectUtils.getPotionDurationString(eff, 1))-20, posY + (index * 18) + 29.5f, ClientGui.foreColor);

            PotionSpriteUploader potionspriteuploader = mc.getPotionSpriteUploader();
            Effect effect = eff.getPotion();
            TextureAtlasSprite textureatlassprite = potionspriteuploader.getSprite(effect);
//            RenderUtil.Render2D.drawGradientRound(posX,posY,16,16,2,-1,-1,-1,-1);
            mc.getTextureManager().bindTexture(textureatlassprite.getAtlasTexture().getTextureLocation());
            AbstractGui.blit(matrixStack, (int) ((int)posX+width-15),(int)(posY+(index*18)+27),0,12,12,textureatlassprite);
            RenderUtil.Render2D.drawRect((int)posX+width-18,(int)(posY+(index*18)+25f),1,15,c);
//            RenderUtil.Render2D.drawImage(textureatlassprite.getAtlasTexture().getTextureLocation(),posX,posY+(index*12)+19,8,8,-1);

            if(Fonts.sf_bold[17].getWidth(text)+8>width)width = Fonts.sf_bold[17].getWidth(text)+8;

            index++;
        }
height = 21 + (index*18);
        potions.setHeight(height);
    }

float kbHeight = 0;
    float kbWidth = 100;

    float kbWidthAnimation = 0, kbHeightAnimation = 0;

    private void renderKeyBinds(MatrixStack matrixStack, int offset, boolean glowing) {
float posX = keyBinds.getX();
        float posY = keyBinds.getY();

        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));
//        }

//        RenderUtil.Render2D.drawRoundedCorner(posX, posY, cWidth, kbHeightAnimation, left_vec, vec);
//        RenderUtil.Render2D.drawShadow(posX + cWidth, posY, kbWidthAnimation+0.5f, kbHeightAnimation, 7, RenderUtil.reAlphaInt(Manager.STYLE_MANAGER.getCurrentStyle().getColor(0), 255));

        int c;
        if(ClientGui.isDark){
c = new Color(100,100,100).getRGB();
        }else{
c = new Color(200,200,200).getRGB();
        }

GaussianBlur.startBlur();
        RenderUtil.Render2D.drawRoundedRect(posX,posY,keyBinds.getWidth(),22,6, RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),155));
        GaussianBlur.endBlur(5,2);
        RenderUtil.Render2D.drawRoundedRect(posX,posY,keyBinds.getWidth(),22,6, RenderUtil.reAlphaInt(ClientGui.backColor,200));
//        RenderUtil.Render2D.drawRoundedRect(posX,posY,watermark.getWidth(),watermark.getHeight(),6, RenderUtil.reAlphaInt(ClientGui.backColor,200));
        RenderUtil.Render2D.drawRect(posX+24,posY+0.5f,1,22-1,RenderUtil.reAlphaInt(c,100));

        Fonts.icons[26].drawString(matrixStack, "F", (posX+7), posY + 7, ClientGui.foreColor);

//        RenderUtil.Render2D.drawRect(posX+20,posY+0.5f,1,21,RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),100));

        Fonts.sf_medium[20].drawString(matrixStack, "HotKeys", (posX+29), posY + 7, ClientGui.foreColor);


//        RenderUtil.Render2D.drawRect(posX + cWidth, posY + 16, kbWidthAnimation, 0.5f, getColor(100));


        RenderUtil.SmartScissor.push();
        RenderUtil.SmartScissor.setFromComponentCoordinates(posX, posY, keyBinds.getWidth()+10, kbHeightAnimation);
        int i = 0;
        float endWidth = keyBinds.getWidth();
        for (Function f : Manager.FUNCTION_MANAGER.getFunctions()) {
if (!f.state || f.bind == 0) continue;

            String text;
            try {
text = MainUtil.getKey(f.bind);
            }catch (Exception e) {
text = f.bind + "";
            }

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

            float wdth = Fonts.sf_semibold[17].getWidth(name)+bindWidth;

//            RenderUtil.Render2D.drawRoundedCorner(posX, posY+25+(i*16), keyBinds.getWidth(), 16, new Vector4f(7, 7, 7, 7),  RenderUtil.reAlphaInt(ClientGui.backColor,200));


            GaussianBlur.startBlur();
            RenderUtil.Render2D.drawRoundedCorner(posX, posY+25+(i*18), keyBinds.getWidth(), 16, new Vector4f(7, 7, 7, 7), RenderUtil.reAlphaInt(ClientGui.isDark?Color.BLACK.getRGB():Color.WHITE.getRGB(),155));
            GaussianBlur.endBlur(5,2);
            RenderUtil.Render2D.drawRoundedCorner(posX, posY+25+(i*18), keyBinds.getWidth(), 16, new Vector4f(7, 7, 7, 7), RenderUtil.reAlphaInt(ClientGui.backColor,200));

            RenderUtil.Render2D.drawRect(posX + keyBinds.getWidth()/2f, posY+26.5f+(i*16)-0.5f,1,15,RenderUtil.reAlphaInt(c,100));

//            RenderUtil.Render2D.drawRect(posX + keyBinds.getWidth()/2f, posY+25+(i*16)+0.5f,1,15,new Color(10,10,10,200).getRGB());

            RenderUtil.Render2D.renderString(Fonts.sf_bold[16],name,posX + 5, posY + 30 + (i * 19f),kbWidth/2f, ClientGui.foreColor);
//            Fonts.sf_bold[17].drawString(matrixStack, name, posX + cWidth + 4, posY + 21 + (i * 14), Window.foreColor);

            Fonts.sf_bold[16].drawCenteredString(matrixStack, bindText, posX + keyBinds.getWidth()-(keyBinds.getWidth()/4f), posY + 30.5f + (i * 18), ClientGui.foreColor);

            if(Fonts.sf_semibold[15].getWidth(name)+bindWidth>endWidth)endWidth = (Fonts.sf_semibold[17].getWidth(name)+bindWidth);
//            keyBinds.setWidth();

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

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

//        keyBinds.setWidth(Math.max(90,endWidth));
//        MainUtil.sendMesage(Math.max(90,endWidth)+"");
        keyBinds.setWidth(95);
        keyBinds.setHeight(kbHeight);
    }
хз вроде норм
 
Назад
Сверху Снизу