Search in sources :

Example 1 with ModuleCategory

use of org.bleachhack.module.ModuleCategory in project BleachHack by BleachDrinker420.

the class ModuleClickGuiScreen method initWindows.

public void initWindows() {
    int len = ModuleManager.getModule(ClickGui.class).getSetting(0).asSlider().getValueInt();
    int y = 50;
    for (ModuleCategory c : ModuleCategory.values()) {
        addWindow(new ModuleWindow(ModuleManager.getModulesInCat(c), 30, y, len, StringUtils.capitalize(c.name().toLowerCase()), c.getItem()));
        y += 16;
    }
    for (Window w : getWindows()) {
        if (w instanceof ClickGuiWindow) {
            ((ClickGuiWindow) w).hiding = true;
        }
    }
}
Also used : ModuleWindow(org.bleachhack.gui.clickgui.window.ModuleWindow) ClickGuiWindow(org.bleachhack.gui.clickgui.window.ClickGuiWindow) Window(org.bleachhack.gui.window.Window) ClickGui(org.bleachhack.module.mods.ClickGui) ModuleCategory(org.bleachhack.module.ModuleCategory) ClickGuiWindow(org.bleachhack.gui.clickgui.window.ClickGuiWindow) ModuleWindow(org.bleachhack.gui.clickgui.window.ModuleWindow)

Aggregations

ClickGuiWindow (org.bleachhack.gui.clickgui.window.ClickGuiWindow)1 ModuleWindow (org.bleachhack.gui.clickgui.window.ModuleWindow)1 Window (org.bleachhack.gui.window.Window)1 ModuleCategory (org.bleachhack.module.ModuleCategory)1 ClickGui (org.bleachhack.module.mods.ClickGui)1