- Replace fixed scheduled hook with AnimationChanged hook to determine
what to pray
- Null current attack when Jad despawns (goes out of view)
Closes#3904
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add plugin that will tag items in inventory with 4 different categories
and draw outlines for tagged items.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This plugin is marking ground, it should be at lowest possible layer to
not interfere/draw over other overlays.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add back support for recoloring right-click menu in Ground Items, but
make it optional and disabled by default.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This issue was caused by ground item values not being copied to
ArrayList when modified. To avoid unnecessary allocations, create new
copy only when required (e.g when holding alt).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
When loaded and added in OverlayRenderer, it was too early to load their
properties because configuration was not loaded yet.
Fixes#3799
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
In ground items, consider anything that has positive GE value as
tradeable and exclude it from untradeable checks.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove check for .add as for ArrayList it is always true and so it is
dead condition
- Add check for removeIf, so the overlay layers will be rebuilt only
when something is removed
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Generated equals from Lombok can cause falsy equals checks and so match
with unrelated overlay.
- Do not add overlay twice to overlay list based on equals
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of having the plugin enabled and everything inside disabled just
disable it and by default enable 1 option.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- To follow Konduit style a bit more, change the default size of infoboxes
to be somewhat around 24x24 instead of 36x36.
- Change the margin between infoboxes to 1px
Depends on #2874Closes#1771 and closes#1016
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of doing layouting by itself, use PanelComponent and newly added
support for component wrapping and disabling of background.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add support for storing preferredLocation in PanelComponent and
translate children based on it.
- Offset children in PanelComponent by metrics.getHeight by default
- Add null check for background in PanelComponent to support panels
without background
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove the usage of getOverlay and getOverlays
- Replace the overlay addition/removal with correct calls to
overlayManager.add and overlayManager.remove
- Update tests
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Split logic related to populating overlays to OverlayManager and
OverlayRenderer.
- Remove overlay-related logic from plugin, this is going to be handled
via OverlayManager.
- Inject core overlays to OverlayManager via new methods
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add highlight > value setting
- Merge hide < GE and hide < HA value and always check for both
- Change the color getting logic to use simple methods instead of checks
spread around the code
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Expand the clickbox for highlighting/hiding item to it's entire name
- Left click on name highlights item, right click hides item
- Highlight background when in highlighting mode of the background item
that is hovered
- In order to help in cluttered environment, bring ground item that is
hovered to front.
These changes makes easy to see what item are you trying to
highlight/hide in cluttered areas.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Remove the possibility of having the item both highlighted and hidden
when using the highlight/hidden boxes.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of checking for GE price being above 0, use isTradeable boolean
to determine if the price checks should apply or not and add
configuration value to disable this behaviour.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change the price displaying to dropdown menu
- Show (GE:, (HA: only when showing both prices at once, otherwise do
not add label at all
Depends on: #2149
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove the auto-expanding of PanelComponent based on children size
because then the size cannot be ever reduced
- Make TitleComponent return preferredSize if it is smaller than string
width
- Make opponentInfo assign the preferred size to panel based on input
strings
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Propagate RuneLite launcher version to client via system property and
add this property to RuneLite properties file.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Use Lombok for creating setters and getters for variables in RuneLite
- Use correct spacing and final modifiers
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of creating logic for drawing arcs by itself, use PieComponent
and similar appearance of the pies as hunter plugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- New CardLayout requires also preferredSize in addition to maximum and
minimum sizes to expand/contract properly without leaving artifacts +
also requires revalidation.
- Remove entire container repaint to prevent unnecessary slowdown for no
reason
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To create fully unique identifier, store markers based on epoch millis
instead of using their name, to allow renaming.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>