-
Автор темы
- #1
На коленях прошу прощения за то, что не добавил айпи адрес, я не смог, но скид нормальный
да cntrl c + cntrl v ready
watermark:
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.DisplayUtils;
import im.expensive.utils.render.font.Fonts;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import net.minecraft.util.math.vector.Vector4f;
import static imgui.ImColor.rgba;
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class WatermarkRenderer implements ElementRenderer {
private float posX;
private float posY;
@Override
public void render(EventDisplay eventDisplay) {
MatrixStack ms = eventDisplay.getMatrixStack();
//x,y
float positionX = 5;
float positionY = 3;
//sizes
float width = 200;
float height = 15;
float font_size = 8.5F;
float width_icon = 16;
float height_icon = 16;
//style move
Style style = Expensive.getInstance().getStyleManager().getCurrentStyle();
//background
DisplayUtils.drawRoundedRect(positionX, positionY, width, height, 1, rgba(21, 21, 21, 250));
//line
DisplayUtils.drawRoundedRect(posX + 6.0F, posY + height / 5.0F + height / 5.0F - 4.0F, (width - 1.0F), 3.0F, new Vector4f(6.0F, 6.0F, 2.0F, 2.0F), new Vector4i(style.getFirstColor().getRGB(), style.getFirstColor().getRGB(), style.getSecondColor().getRGB(), style.getSecondColor().getRGB()));
//name
String name = "Akrien Premium v 5.0 ";
Fonts.sfMedium.drawCenteredText(ms, name, positionX + 54, positionY + 3, rgba(255, 255, 255, 255), font_size);
//user
String user = "| Molotok ";
Fonts.sfMedium.drawCenteredText(ms, user, positionX + 130, positionY + 3, rgba(255, 255, 255, 255), font_size);
//fps
String fps = "| " + mc.debugFPS + "fps ";
Fonts.sfMedium.drawCenteredText(ms, fps, positionX + 177, positionY + 3, rgba(255, 255, 255, 255), font_size);
}}
Вложения
-
8.8 KB Просмотры: 1,016