Search in sources :

Example 1 with ResizeableChanged

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

the class RSClientMixin method resizeChanged.

@FieldHook("isResized")
@Inject
public static void resizeChanged(int idx) {
    // maybe couple with varbitChanged. resizeable may not be a varbit but it would fit with the other client settings.
    ResizeableChanged resizeableChanged = new ResizeableChanged();
    resizeableChanged.setResized(client.isResized());
    eventBus.post(resizeableChanged);
}
Also used : ResizeableChanged(net.runelite.api.events.ResizeableChanged) Inject(net.runelite.api.mixins.Inject) FieldHook(net.runelite.api.mixins.FieldHook)

Aggregations

ResizeableChanged (net.runelite.api.events.ResizeableChanged)1 FieldHook (net.runelite.api.mixins.FieldHook)1 Inject (net.runelite.api.mixins.Inject)1