Начинающий
- Статус
- Оффлайн
- Регистрация
- 20 Янв 2023
- Сообщения
- 18
- Реакции
- 0
Кек кривой скид флюгер клиента 

WaterMarkRenderer:
package im.expensive.ui.display.impl;
import com.mojang.blaze3d.matrix.MatrixStack;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.ui.display.ElementRenderer;
import im.expensive.ui.styles.Style;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import im.expensive.utils.render.font.Fonts;
import im.expensive.utils.text.GradientUtil;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector4f;
import net.minecraft.util.text.StringTextComponent;
public class WatermarkRenderer
implements ElementRenderer {
private final ResourceLocation user = new ResourceLocation("expensive/images/hud/www.png");
@Override
public void render(EventDisplay eventDisplay) {
MatrixStack ms = eventDisplay.getMatrixStack();
float posX = 855.0f;
float posY = 4.0f;
float padding = 5.1f;
float fontSize = 6.5f;
float iconSize = 11.0f;
Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();
this.drawStyledRect(posX - 39.0f, posY, iconSize + padding * 20.0f, iconSize, 4.0f);
DisplayUtils.drawRoundedRect(posX - 22.0f, posY, iconSize + padding * 13.5f, 15.3f, new Vector4f(5.0f, 5.0f, 7.0f, 0.0f), new Vector4i(ColorUtils.getColor(0), ColorUtils.getColor(800), ColorUtils.getColor(1600), ColorUtils.getColor(2700)));
StringTextComponent text = GradientUtil.gradient("Verist Premium | Build: 1.2");
float textWidth = Fonts.consolas.getWidth(text, fontSize);
float localPosX = posX + iconSize + padding;
Fonts.sfbold.drawText(ms, " Verist Client | Build: 1.2", localPosX + iconSize + padding * -9.7f, posY + iconSize / 2.0f - 1.0f, -1, 8.0f, 0.01f);
}
private void drawStyledRect(float x, float y, float width, float height, float radius) {
DisplayUtils.drawRoundedRect(x + 16.5f, y - 0.5f, width + 12.0f, height + 5.5f, new Vector4f(5.0f, 5.0f, 5.0f, 5.0f), new Vector4i(ColorUtils.getColor(0), ColorUtils.getColor(800), ColorUtils.getColor(1600), ColorUtils.getColor(2700)));
DisplayUtils.drawRoundedRect(x + 17.0f, y, width + 12.0f, height + 5.0f, radius, ColorUtils.rgb(22, 21, 21));
}
}