- Remove runelite variable
- Use setters for options and injector (to use them outside of tests)
- Remove getter for gui and make it package-private
- Use package-private gui field when providing ClientUI from
RuneliteModule
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of using setters and getters to move around reference to Client
and creating the client in the client panel, move creation of the Client
to RuneLite and add new field to PluginDescriptor if the plugin should
be loaded when client is outdated.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- 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>