Search in sources :

Example 1 with WidgetLoaded

use of net.runelite.api.events.WidgetLoaded in project runelite by runelite.

the class RSClientMixin method rl$runWidgetOnLoadListener.

@Replace("runWidgetOnLoadListener")
public static void rl$runWidgetOnLoadListener(int groupId) {
    rs$runWidgetOnLoadListener(groupId);
    RSWidget[][] widgets = client.getWidgets();
    boolean loaded = widgets != null && widgets[groupId] != null;
    if (loaded) {
        WidgetLoaded event = new WidgetLoaded();
        event.setGroupId(groupId);
        eventBus.post(event);
    }
}
Also used : WidgetLoaded(net.runelite.api.events.WidgetLoaded) Replace(net.runelite.api.mixins.Replace)

Aggregations

WidgetLoaded (net.runelite.api.events.WidgetLoaded)1 Replace (net.runelite.api.mixins.Replace)1