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);
}
}
Aggregations