GlStateManager.pushMatrix();
GL11.glEnable(GL11.GL_SCISSOR_TEST);
// RenderUtils.drawRect(x, y, x, y, new Color(30, 30, 30, 255).getRGB());
RenderUtils.scissorRect(0, 0, sr.getScaledWidth(), 26);
RoundedUtil.drawGradientRound(x - 4, 10, width + 3, 30, 5, new Color(ClickGUI.color2.getColorValue()), new Color(ClickGUI.color2.getColorValue()), new Color(ClickGUI.color.getColorValue()), new Color(ClickGUI.color2.getColorValue()));
RoundedUtil.drawGradientRound(561, 10, width + 3, 30, 5, new Color(ClickGUI.color2.getColorValue()), new Color(ClickGUI.color2.getColorValue()), new Color(ClickGUI.color.getColorValue()), new Color(ClickGUI.color2.getColorValue()));
GL11.glDisable(GL11.GL_SCISSOR_TEST);
GlStateManager.popMatrix();
GlStateManager.pushMatrix();
GL11.glEnable(GL11.GL_SCISSOR_TEST);
RenderUtils.scissorRect(0, 25.5f, sr.getScaledWidth(), 148);
int configWidth = getWidth();
float a = width + 3;
float b = a / 2;
Color clor = new Color(255, 255, 255);
Color clor2 = new Color(255, 255, 255);
float y1 = 28;
float startY = y1 + 15.5f / 2F - 2 - 5;
for (Config config : Moonerium.instance.configManager.getContents()) {
boolean hovered1 = (mouseX >= 563 && mouseY >= startY && mouseX < 563 + configWidth + 4 && mouseY < startY + 15.5f);
if (hovered1) {
clor = new Color(ClickGUI.color.getColorValue());
clor2 = new Color(ClickGUI.color2.getColorValue());
} else {
clor = new Color(255, 255, 255); // сбрасываем цвет фона в стандартный
clor2 = new Color(255, 255, 255);
}
if (hovered1 && Mouse.isButtonDown(1)) {
Moonerium.instance.configManager.loadConfig(config.getName());
} else {
}
if (hovered1 && Mouse.isButtonDown(0)) {
} else {
}
RoundedUtil.drawGradientRound(563, startY, configWidth + 4, 15.5f, 3, clor, clor, clor2, clor2);
mc.mntsb_15.drawString(config.getName(), 567, y1 + 6f, new Color(1,1,1,255).getRGB());
y1 += 20f;
startY += 20f;
hovered = false;
// int MouseWheel = Mouse.getDWheel();
// if (Mouse.hasWheel()) {
// if (MouseWheel > 0) {
// y1 += 15;
// startY += 15;
// }
// if (MouseWheel < 0) {
// y1 -= 15;
// startY -= 15;
// }
// }
}
GL11.glDisable(GL11.GL_SCISSOR_TEST);
GlStateManager.popMatrix();
mc.mntsb_18.drawCenteredString("Configs", 561 + b, 14, Color.WHITE.getRGB());