Начинающий
- Статус
- Оффлайн
- Регистрация
- 6 Апр 2024
- Сообщения
- 190
- Реакции
- 5
Expensive 2.0, не выводится текст поиска, вот код
Java:
if (!searching && searchText.isEmpty()) {
Fonts.gilroy[14].drawString(matrixStack, "Поиск", position.x + 12.5f + 10, position.y + 37, RenderUtil.reAlphaInt(light, 200));
} else {
Fonts.gilroy[14].drawString(matrixStack, searchText + (searching ? (System.currentTimeMillis() % 1000 > 500 ? "_" : "") : ""), position.x + 12.5f + 10, position.y + 37, RenderUtil.reAlphaInt(light, 200));
}
решеноExpensive 2.0, не выводится текст поиска, вот код
Java:if (!searching && searchText.isEmpty()) { Fonts.gilroy[14].drawString(matrixStack, "Поиск", position.x + 12.5f + 10, position.y + 37, RenderUtil.reAlphaInt(light, 200)); } else { Fonts.gilroy[14].drawString(matrixStack, searchText + (searching ? (System.currentTimeMillis() % 1000 > 500 ? "_" : "") : ""), position.x + 12.5f + 10, position.y + 37, RenderUtil.reAlphaInt(light, 200)); }