Начинающий
- Статус
- Оффлайн
- Регистрация
- 13 Июл 2025
- Сообщения
- 50
- Реакции
- 0
- Выберите загрузчик игры
- OptiFine
SS
привет пастеры я сделал кнопачки на ваш любимый маинкрафт сделал обводку ну канешна херня ну все равно
Код
ну и хуету я сделал ща /del полетят
привет пастеры я сделал кнопачки на ваш любимый маинкрафт сделал обводку ну канешна херня ну все равно
Код
Код:
public void renderButton(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {
Minecraft minecraft = Minecraft.getInstance();
FontRenderer fontrenderer = minecraft.fontRenderer;
minecraft.getTextureManager().bindTexture(WIDGETS_LOCATION);
RenderSystem.color4f(1.0F, 1.0F, 1.0F, this.alpha);
int backgroundColor;
int borderColor;
int textColor = this.active ? 0xFFFFFF : 0xA0A0A0; // Белый для активной, серый для неактивной
if (this.isHovered()) {
backgroundColor = 0x202020;
borderColor = 0x4B0082;
} else {
backgroundColor = 0x000000;
borderColor = 0x2E0854;
}
RenderSystem.enableBlend();
RenderSystem.defaultBlendFunc();
RenderSystem.enableDepthTest();
int i = this.getYImage(this.isHovered());
this.blit(matrixStack, this.x, this.y, 0, 46 + i * 20, this.width / 2, this.height);
this.blit(matrixStack, this.x + this.width / 2, this.y, 200 - this.width / 2, 46 + i * 20, this.width / 2, this.height);
fill(matrixStack, this.x, this.y, this.x + this.width, this.y + this.height,
(backgroundColor & 0x00FFFFFF) | (MathHelper.ceil(this.alpha * 100.0F) << 24));
int borderAlpha = MathHelper.ceil(this.alpha * 255.0F) << 24;
fill(matrixStack, this.x, this.y, this.x + this.width, this.y + 1, (borderColor & 0x00FFFFFF) | borderAlpha);
fill(matrixStack, this.x, this.y + this.height - 1, this.x + this.width, this.y + this.height, (borderColor & 0x00FFFFFF) | borderAlpha);
fill(matrixStack, this.x, this.y, this.x + 1, this.y + this.height, (borderColor & 0x00FFFFFF) | borderAlpha);
fill(matrixStack, this.x + this.width - 1, this.y, this.x + this.width, this.y + this.height, (borderColor & 0x00FFFFFF) | borderAlpha);
fill(matrixStack, this.x, this.y, this.x + 2, this.y + 2, (borderColor & 0x00FFFFFF) | borderAlpha);
fill(matrixStack, this.x + this.width - 2, this.y, this.x + this.width, this.y + 2, (borderColor & 0x00FFFFFF) | borderAlpha);
fill(matrixStack, this.x, this.y + this.height - 2, this.x + 2, this.y + this.height, (borderColor & 0x00FFFFFF) | borderAlpha); // ПАСТЕРРР Я
fill(matrixStack, this.x + this.width - 2, this.y + this.height - 2, this.x + this.width, this.y + this.height, (borderColor & 0x00FFFFFF) | borderAlpha);
this.renderBg(matrixStack, minecraft, mouseX, mouseY);
int alphaText = MathHelper.ceil(this.alpha * 255.0F) << 24;
drawCenteredString(matrixStack, fontrenderer, this.getMessage(),
this.x + this.width / 2, this.y + (this.height - 8) / 2,
(textColor & 0x00FFFFFF) | alphaText);
}
ну и хуету я сделал ща /del полетят
сука что это /del км каждый день деградирует или как?