Dragging drag = DreamHack.getInstance().createDrag(this, "keybinds", 2, 20);
int alpha;
public EventStream<EventDrawD> onRenderDisplay e {
if (eventype == EventDraw.RenderType.DISPLAY) {
alpha = (int) AnimationMath.dig(alpha, DreamHack.getInstance().getModuleManager().getModules().stream().filter(module -> module.state).filter(module -> module.bind > 0).toList().size() > 0 ? 250 : 0, 15f);
drag.setWidth(70);
RenderUtility.drawRect(drag.getX(), drag.getY() + 10, 80, 10 * DreamHack.getInstance().getModuleManager().getModules().stream().filter(module -> module.state).filter(module -> module.bind > 0).collect(Collectors.toList()).size(), new Color(10, 10, 10, (int) DreamHack.getInstance().getModuleManager().arraylist.alpha.get()).getRGB());
GlowUtil.drawGlowGradient(drag.getX() - 1, drag.getY() - 3, 82, 15f, 8, DreamHack.getInstance().getModuleManager().arraylist.getColor(80), DreamHack.getInstance().getModuleManager().arraylist.getColor(160), DreamHack.getInstance().getModuleManager().arraylist.getColor(280), DreamHack.getInstance().getModuleManager().arraylist.getColor(280));
RenderUtility.horizontalGradient(drag.getX(), drag.getY(), 80, 10f, DreamHack.getInstance().getModuleManager().arraylist.getColor(280), DreamHack.getInstance().getModuleManager().arraylist.getColor(80));
F.MONTSERRAT10.drawCentStrg("KeyBinds", drag.getX() + 80 / 2f, (drag.getY() + 10 / 2f), new Color(255, 255, 255, alpha).getRGB());
double i = 8.5;
for (Module m : DreamHack.getInstance().getModuleManager().getModules()) {
if (m.bound > 0 && m.stateM) {
F.MONTSERRAT10.drawStrg(m.name, drag.getX() + 2, (drag.getY() + 10 / 2f) + i, new Color(255, 255, 255, alpha).getRGB());
F.MONTSERRAT10.drawCentStrg"[toggle]", drag.getX() + 80 / 2f + 23, (drag.getY() + 11 / 2f) + i, new Color(255, 255, 255, alpha).getRGB());
F.MONTSERRAT10.drawCentStrg(">>", drag.getX() + 30 / 2f + 23, (drag.getY() + 11 / 2f) + i, new Color(255, 255, 255, alpha).getRGB());
drag.setHeight((float) (10 + i));
i += 8;
}
}
}
}
}