Начинающий
- Статус
- Оффлайн
- Регистрация
- 16 Июл 2024
- Сообщения
- 143
- Реакции
- 1
- Выберите загрузчик игры
- Fabric
reason: skid my design (viltrum 2025 1 january)
byebye

code:
Код:
package moscow.flarzen.systems.hud.elements;
import moscow.flarzen.Flarzen;
import moscow.flarzen.modules.visuals.PulseHud;
import moscow.flarzen.systems.hud.HudElement;
import moscow.flarzen.utility.render.DrawUtil;
import moscow.flarzen.utility.render.Fonts;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.render.RenderTickCounter;
import java.awt.*;
public class PulseWatermark extends HudElement {
public PulseWatermark() {
super(0f, 0f, 0f, 0f, () -> Flarzen.getInstance().getModuleManager().getModule(PulseHud.class).isEnable());
}
@Override
public void render(DrawContext context, double mouseX, double mouseY, RenderTickCounter tickCounter) {
float width = 3.65f + 3.5f + 2.8f + Fonts.MEDIUM.get().getWidth("/" + "/", 5.8f) + Fonts.REGULAR.get().getWidth("20 ms" + mc.getCurrentFps() + " fps", 5.5f) + Fonts.REGULAR.get().getWidth("t.me/flarzendsgn", 5.8f) + 3f + Fonts.ICONS.get().getWidth("A", 6.2f) + 7.3f + 1f + 7f;
float height = 17.3f;
float x = (mc.getWindow().getScaledWidth() - width) / 2;
float y = 4.6f;
float radius = 7.7f;
DrawUtil.drawRoundedRect(context, x, y, width, height, radius, new Color(16,16,21));
DrawUtil.drawText(context, Fonts.ICONS.get(), "A", 6.2f, x + 5.3f + 1f, y + 4.3f + 0.5f, new Color(0x634EE6));
DrawUtil.drawText(context, Fonts.REGULAR.get(), "t.me/flarzendsgn", 5.8f, x + 0.7f + Fonts.ICONS.get().getWidth("A", 6.2f) + 7.3f + 1f, y + 4.3f + 0.5f, new Color(-1));
DrawUtil.drawText(context, Fonts.MEDIUM.get(), "/", 5.8f, x + 2 + Fonts.REGULAR.get().getWidth("t.me/flarzendsgn", 5.8f) + 3f + Fonts.ICONS.get().getWidth("A", 6.2f) + 7.3f + 1f, y + 4.3f + 0.5f, new Color(0x37373C));
DrawUtil.drawText(context, Fonts.REGULAR.get(), "20 ms", 5.5f, x + 3.65f + 0.7f + Fonts.MEDIUM.get().getWidth("/", 5.8f) + Fonts.REGULAR.get().getWidth("t.me/flarzendsgn", 5.8f) + 3f + Fonts.ICONS.get().getWidth("A", 6.2f) + 7.3f + 1f, y + 4.3f + 0.65f, new Color(0xB1B0B5));
DrawUtil.drawText(context, Fonts.MEDIUM.get(), "/", 5.8f, x + 3.65f + 3.5f + Fonts.MEDIUM.get().getWidth("/", 5.8f) + Fonts.REGULAR.get().getWidth("20 ms", 5.5f) + Fonts.REGULAR.get().getWidth("t.me/flarzendsgn", 5.8f) + 3f + Fonts.ICONS.get().getWidth("A", 6.2f) + 7.3f + 1f, y + 4.3f + 0.5f, new Color(0x37373C));
DrawUtil.drawText(context, Fonts.REGULAR.get(), mc.getCurrentFps() + " fps", 5.5f, x + 3.65f + 3.5f + 2.8f + Fonts.MEDIUM.get().getWidth("/" + "/", 5.8f) + Fonts.REGULAR.get().getWidth("20 ms", 5.5f) + Fonts.REGULAR.get().getWidth("t.me/flarzendsgn", 5.8f) + 3f + Fonts.ICONS.get().getWidth("A", 6.2f) + 7.3f + 1f, y + 4.3f + 0.65f, new Color(0xB1B0B5));
}
}
