- Extract runelite session related logic from RuneLite to SessionManager
class and expose this as Guice service
- Move WSClient to account package
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add same padding to each panel
- Wrap each panel in JScrollPane
- Clean up plugin panel API and set normalized width, height and layout
to each panel instead of having to manually specify it for each panel
- Make PluginPanel class abstract
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Simplify code of the navigation button to also handle images and to
extend the swing JButton instead of wrapping it in getButton method.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Change xp tracker button to use actual image instead of text because
text was not showing on both Windows and Linux.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
When request fails, entire response needs to be wrapped in try with
resources in order to close the connection properly and not only
response body.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Clone graphics before rendering overlay, then use the cloned graphics
for the overlay and dispose it afterwards to prevent any unwanted side
effects from overlay.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Fix overlay renderer plugin caching to actually use plugin received from
onPluginChanged hook, because the events are fired before the plugins
are actually added/removed to the plugin list.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove unnecessary derivations of runescapeSmallFont
- Render overlays in "safe" environment (restore original font and
tranform after overlay rendering is done)
- Use TextComponent at more places
- Remove unnecessary setting of default font in VolcanicMineOverlay
- Change RenderableEntity from abstract class to interface
- Remove unused tooltip configuration from RuneliteConfig
- Use viewportWidget instead of chatbox widget for positioning the
overlay groups (thanks to Devin for tip)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>