Search in sources :

Example 1 with FlightBlink

use of dev.hypnotic.module.movement.FlightBlink in project Hypnotic-Client by Hypnotic-Development.

the class ClickGUI method refresh.

private void refresh() {
    buttons.clear();
    buttonNames.clear();
    Collections.sort(ModuleManager.INSTANCE.getModulesInCategory(currentCategory), Comparator.comparing(Mod::getName));
    for (Mod mod : ModuleManager.INSTANCE.getModulesInCategory(currentCategory)) {
        if (!(mod instanceof FlightBlink)) {
            buttonNames.add(mod.getName());
        }
    }
    buttonNames.sort(Collator.getInstance());
    Collections.sort(buttons, Comparator.comparing(ModuleButton::getName));
    int count = 0;
    for (String name : buttonNames) {
        ModuleButton mb = new ModuleButton(ModuleManager.INSTANCE.getModuleByName(name), currentCategory, x + 120, y + count);
        buttons.add(mb);
        mb.startY = count;
        count += 30;
    }
    this.offset = 0;
}
Also used : FlightBlink(dev.hypnotic.module.movement.FlightBlink) Mod(dev.hypnotic.module.Mod)

Aggregations

Mod (dev.hypnotic.module.Mod)1 FlightBlink (dev.hypnotic.module.movement.FlightBlink)1