Начинающий
- Статус
- Оффлайн
- Регистрация
- 31 Янв 2023
- Сообщения
- 4
- Реакции
- 0
Ватермарка с градиентом на форже
Пожалуйста, авторизуйтесь для просмотра ссылки.
Код:
public void onRenderGameOverlayEvent(RenderGameOverlayEvent renderGameOverlayEvent) {
if (renderGameOverlayEvent.getType() == ElementType.TEXT && !Panic.panic) {
String text = "Full Visual | User: free";
int textX = x + 7;
int textY = y - 1;
long time = System.currentTimeMillis();
RenderUtils.drawSmoothRect(renderGameOverlayEvent.getMatrixStack(), x + 1, y - 6, this.mc.font.width(text) + x + 9, y + 12, new Color(1325400064, true).hashCode());
RenderUtils.drawSmoothRect(renderGameOverlayEvent.getMatrixStack(), x + 2, y - 5, x + 4, y + 11, ColorUtils3.rainbow().getRGB());
for (int i = 0; i < text.length(); i++) {
char c = text.charAt(i);
float hue = (float) ((time + i * 100) % 5000) / 5000;
int color = Color.HSBtoRGB(hue, 1, 1);
this.mc.font.draw(renderGameOverlayEvent.getMatrixStack(), String.valueOf(c), textX, textY, color);
textX += this.mc.font.width(String.valueOf(c));
+rep