Search in sources :

Example 1 with Waypoint

use of meteordevelopment.meteorclient.systems.waypoints.Waypoint in project meteor-client by MeteorDevelopment.

the class RainbowColors method onTick.

@EventHandler
private static void onTick(TickEvent.Post event) {
    GLOBAL.setSpeed(Config.get().rainbowSpeed.get() / 100);
    GLOBAL.getNext();
    for (Setting<SettingColor> setting : colorSettings) {
        if (setting.module == null || setting.module.isActive())
            setting.get().update();
    }
    for (SettingColor color : colors) {
        color.update();
    }
    for (Waypoint waypoint : Waypoints.get()) {
        waypoint.color.update();
    }
    if (mc.currentScreen instanceof WidgetScreen) {
        for (SettingGroup group : GuiThemes.get().settings) {
            for (Setting<?> setting : group) {
                if (setting instanceof ColorSetting)
                    ((SettingColor) setting.get()).update();
            }
        }
    }
    for (Runnable listener : listeners) listener.run();
}
Also used : ColorSetting(meteordevelopment.meteorclient.settings.ColorSetting) WidgetScreen(meteordevelopment.meteorclient.gui.WidgetScreen) SettingGroup(meteordevelopment.meteorclient.settings.SettingGroup) Waypoint(meteordevelopment.meteorclient.systems.waypoints.Waypoint) EventHandler(meteordevelopment.orbit.EventHandler)

Aggregations

WidgetScreen (meteordevelopment.meteorclient.gui.WidgetScreen)1 ColorSetting (meteordevelopment.meteorclient.settings.ColorSetting)1 SettingGroup (meteordevelopment.meteorclient.settings.SettingGroup)1 Waypoint (meteordevelopment.meteorclient.systems.waypoints.Waypoint)1 EventHandler (meteordevelopment.orbit.EventHandler)1