- Add chat history plugin that will be able to preserve the chat history during logout/world hop
- Track only PUBLIC, CLANCHAT, PRIVATE_MESSAGE_* and GAME messages in the history plugin
- Change sendGameMessage call to addGameMessage to allow sending messages with all supported fields
- Update chat message manager to support sending messages with all supported fields
Check for option instead of target presence when renderingt the mouse
highlighting overlay.
Fixes: #490
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add support for Karambwan fishing spots
- Add support for Karambwanji/Shrimp fishing spots
Karambwan fishing is now great again and this is needed.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add null check for sixHourWaitingTime instant. This value can be null in
case plugin was disabled before user logged in and so sixHourWaitingTime
was never set.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add region tile manager utility class that can be used for iterating
each tile in the player region on current plane or for simulation object
spawns for subscriber.
- Simulate object spawns for each started-up plugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add checks for empty task name and null counter when adding counter
in SlayerPlugin
- Add checks for non null counter when removing counter in SlayerPlugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove all configurations that contained only enabled()
- Remove enabled() from all remaining configurations
- Remove all checks for enabled()
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add ability to fully disable and enable each plugin. Fully disabling
plugin means removing it from scheduler and eventBus and fully stopping
it. That improves performance, because it basically removes overhead of
any plugin that is disabled.
Fixes: #280
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add dependency on logback and configure logger to log to
~/.runelite/logs/application.log with rolling file appender, that means
every 10MB file will be rolled and also every day file will be rolled
with maximum history of 30 days, to not flood user's system space.
Add new console parameter -debug, because logback properties cannot be
set from console like slf4j-simple ones, so it needs to be done in a bit
more complicated way.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove log.info on each hover of the JRichTextPane
- Change log.info to log.warn when browser cannot be opened in the
JRichTextPane
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add injectable Discord RPC service that will broadcast Discord events
through event bus and have API for setting Discord Rich Presence status.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Currently MLM plugin sack overlay layer is set to ABOVE_SCENE, but it
needs to be set to UNDER_WIDGETS so overlay renderer can tile it
correctly with other overlays (and also to be rendered over overheads
and HP bars).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Adjust overlay layers and priorities to correctly show f.e player names
on top, but below ui elements/widget elements.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add new overlay layer position that draws right above overheads and HP
bars, what is perfect for game interfaces
- Make this new layer use UNDER_WIDGETS layer position, and move the
before layer position to ABOVE_SURFACE
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
In order to not draw UI overlays over bank interfaces (and similar popup
interfaces), change default overlay position to UNDER_WIDGETS.
Fixes#451
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change some public access modifiers to private
- Remove getSession and change it to checkSession that simply returns
boolean that checks if other session is equal with current and update
SessionManager according to that
- Fix naming of gson const (change it to GSON)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Because currently Hashing.java is using only in mixins, it gets removed
by maven-shade-plugin from the shaded jar. So tell the plugin to keep
these classes.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Fix java.awt.IllegalComponentStateException: The frame is displayable
that is caused by window being packed before showWithChrome method is
called.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Fix coloring of warned attack styles for attack indicator plugin. This
was in before, but probably got lost during the changes to use new UI
comoponents.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Change conversion of config stream to map and then creating new stream
and just iterating entries to mapping config stream to pairs (map
entries, becuase Java do not have generic pair implementation).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Update Project Lombok version to 1.16.20 (from 1.16.18) and specify this
version in runelite-parent instead of having it specified all around the
maven projects.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Send idle notification only after animation ended and the timeout has
passed, and not start counting the timeout since animation started.
- Change the 1 second schedule to GameTick hook because animations are
changed based on ticks
Fixes#282
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Fix NPE that happens when titlebar is not present (not using the custom
window decorations) and plugin is trying to remove the screenshot
button from titlebar.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add correct navigation button based on previous session
- Remove naviagtions buttons from navBar on plugin shutdown
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add startup method that will load attack style settings from config
and client (in case attack indicators is started after game loads)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Call the real method from isFriended
- Call the real method from isIgnored
- Add null check for getClanMembers
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Plugin will be able to display own name (disabled by default), friend
player names and clan member names. Each of the options is configurable.
Fixes#324
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add tile indicators plugin, that will currently highlight the tile
player is walking to. It is disabled by default, and have configurable
highlighting color.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Use "install" instead of "verify" so archetype test can pick up the
latest RuneLite version
- Remove "clean" from goals.txt
Fixes#364
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add search bar to ConfigPanel that will search plugin configuration
names and filter them based on input.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Use Guava cache instead of scheduled caching to cache clan member
ranks to reduce frequency of caching and simplify logic
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
As this is not really issue, as in this case the icon just falls back to
the default gem icon, this should not really be a warning message and
spam console logs.
Fixes#292
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add property to load when outdated to both account and config plugins to
make them visible even when native client is loaded.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Remove unnecessary null checks for game client from plugins, as now
client is always not null in all of them, since in the case of it being
null the plugins are not even started.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Move setting of UI-related variables to ClientUI class (create new
"create" static method to set them before creating the UI window)
- Clean up ClientUI class
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- 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>
- Update examine plugin to include setting for showing item price when
examining item and choosing colors for the examine message (using new
chat message API)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Update api of SendMessage to also include message type
- Create API for updating chat message based on saved colors for normal
and highlighted message and for adding game messages that can be
recolored too
- Update chat commands plugin to use the new API
- Add option to globally disable recoloring to RuneliteConfig
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Extend API to include support for getting clan members and
informations about them
- Add API for manipulation with modIcons
- Display clan ranks in clan chat (add to ClanChat plugin)
- Add new hook for clan members changed
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Remove dependency on external notification library and rewrite
notifications to use lightweight native system notification
implementations:
* Linux - notify-send
* OS X - apple script - display notification
* Windows - TrayIcon
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add option to hide items under either Grand Exchange or High Alchemy
value to GroundItems plugin. Also ensure that items with 0 or no GE
price are shown anyway, as they are probably untradeables or inactive.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>