крч ищем класс Panel вашей шедевро Гуишки и в метод render вставляйте этот код
Тут вроде как все удобно +- и понятно
Код:
for (ModuleComponent modComponent : this.modules) {
if (!modComponent.isMouseOver(mouseX, mouseY)) continue;
String description = modComponent.getFunction().getDescription();
if (description == null || description.isEmpty()) break;
float textWidth = Fonts.sf_regular.getWidth(description, 13.0f);
float textHeight = Fonts.sf_regular.getHeight(13.0f);
// Настройки позиции
float guiWidth = 825;
float xOffset = 40.0f;
float xdesc = (guiWidth - textWidth) / 2.0f + xOffset;
float ydesc = 40.0f;
Scissor.pop();
DisplayUtils.drawRoundedRect(
xdesc - 5.0f,
ydesc - 70,
textWidth + 10.0f,
textHeight + 5.0f,
new Vector4f(4.0f, 4.0f, 4.0f, 4.0f),
ColorUtils.rgba(20, 20, 20, 180)
);
Fonts.sf_regular.drawText(
stack,
description,
xdesc,
ydesc - 66,
ColorUtils.rgb(255, 255, 255),
13.0f
);
Scissor.push();
break;
}
Тут вроде как все удобно +- и понятно
Пожалуйста, авторизуйтесь для просмотра ссылки.