There is no reason for widget and itemIndex to exist in plugin, so move
it to where it is actually used.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Create custom button type with isActive property
- Query this new property instead of bunch of stored boolans and toggle
methods in dev tools overlays and panels
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
When becoming affected by an ice spell, such as Ice Barrage, when moving
prior to the effect's start, the previous code had a subtle bug where
the freeze timer would be applied in the chat message subscriber, but
the `client` would update the player's position before the onGameTick
subscriber was executed, meaning any movement on the same tick the
player became frozen would be registered as "movement", thus removing
that timer.
This fix sidesteps that issue by also ensuring that the client's tick
is different than the freeze tick, since that value appears to remain
unmodified between execution of these two methods.
Fixesrunelite/runelite#6658
This is no longer necessary (as we are using spawn events) and with GPU
plugin not limiting it is better (well, we are still limited by their
spawns obviously).
Closes#1360
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
It now sets the max width and height right before the canvas is resized,
so the canvas size uses those max bounds immediately, instead of setting
it 500ms after the canvas is resized initially.
Change the world map overlay to only clip the graphics if it's necessary.
setClip is fairly expensive and re-setting the clip for every map point
almost halves FPS when the world map is open.
- Context can be created without GL being assigned (e.g in case version
is not supported)
- We need to lock jawtWindow if it is not locked always in case it is
not null, and not only when GL is set
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Splits the showRocks config into showVeins and showRocks so that the user can decide to show only Veins without the visual clutter of the RockFalls forced highlighting.
In side stones view, going through the spell autocast selection process
will cause the combat widget to become unloaded and reloaded, rather
than triggering the previous code path where the widget would change
hidden state. This commit adds a second subscriber to handle this path
as well.
Fixesrunelite/runelite#6557