Вопрос Как закруглить?

Начинающий
Статус
Оффлайн
Регистрация
23 Июн 2023
Сообщения
79
Реакции[?]
0
Поинты[?]
0

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

1718803880284.png
Ку! Короче как убрать эти прямоугольнику снизу и сделать закругление, выглядит ущербно.

Если чо вот код Keybinds:
Код:
private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 90;
int padding = 5;
int offset = 10;

int headerColor = new Color(0, 0, 0, 215).getRGB();
int backgroundColor = new Color(0, 0, 0, 215).getRGB();

int firstColor = ColorUtil.getColorStyle(0);
int secondColor = ColorUtil.getColorStyle(90);

float height = activeModules * offset;

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

RenderUtil.Render2D.drawShadow(posX, posY, width, headerHeight + heightDynamic + padding / 2f, 10, firstColor, secondColor, ColorUtil.getColorStyle(180), ColorUtil.getColorStyle(270));

RenderUtil.Render2D.drawGradientRound(posX, posY, width, heightDynamic + headerHeight + 2.5f, roundDegree - 1, firstColor, secondColor, ColorUtil.getColorStyle(180), ColorUtil.getColorStyle(270));

RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);

Fonts.montserrat[19].drawCenteredString(stack, ClientUtil.gradient("Keybinds", Color.white.getRGB(), Color.white.getRGB()), keyBinds.getX() + width / 2f, posY + 4.5f, firstColor);

RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight, width, heightDynamic + padding / 2f, new Vector4f(0, roundDegree, 0, roundDegree), backgroundColor);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY, width, headerHeight + heightDynamic + padding / 2f);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = "[" + text.toUpperCase() + "]";
float bindWidth = Fonts.montserrat[12].getWidth(bindText);

Fonts.montserrat[12].drawString(stack, f.name, posX + padding, posY + headerHeight + padding + (index * offset), -1);
Fonts.montserrat[12].drawString(stack, bindText, posX + width - bindWidth - padding, posY + headerHeight + padding + (index * offset), -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
 
Начинающий
Статус
Оффлайн
Регистрация
17 Апр 2023
Сообщения
190
Реакции[?]
2
Поинты[?]
0
if (heightDynamic > 16)
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight, width, heightDynamic + padding / 2f, new Vector4f(0, roundDegree, 0, roundDegree), backgroundColor);
 
Сверху Снизу