- Rename Herbiboars to HerbiboarPlugin
- Rename HerbiboarsOverlay to HerbiboarOverlay
- Rename "Herbiboars" to "Herbiboar" plugin name
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add null check for client.getMapRegions because during plugin startup
when game is loading, they are null.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change the PlayerIndicators model to use injection
- Create new set from overlays when getOverlays is called
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Move drawing player names on minimap to separate overlay, so the minimap
names can be rendered over minimap in resizeable mode.
Fixes#940
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Move method for creation of all buttons from NavigationButton to swing
util
- Correctly update InfoPanel when plugin is started or needs title bar
refresh
- Correctly update ClientUI title bar when custom one is visible
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change info panel to support new hooks
- Change plugins to use NavigationButton for adding buttons to
titleToolbar
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Extract title toolbar layout to separate component
- Create new events for adding and removing title toolbar buttons
- Create TitleToolbar through Guice
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Use updated construction for NavigationButton
- Replace ClientUI injections with PluginToolbar injections
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Create PluginToolbar through Guice
- Create separate component class for toolbar layout
- Create custom navigation button component to not depend on swing
- Create new events that are fired on new toolbar button addition and
removal
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change LinkBrowser to not use ClientUI as parent for message box (not
required at all) and change it from Guice service to static utility
class
- Set screenshot plugin offsets statically without recalculating them
based on swing component
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Make ClientUI wrap JFrame inside
- Do not make RuneLite class depend on Swing API at all
- Create ClientUI through Guice
- Simplify initialization and showing of UI
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Extract common utlity methods from ClientUI to SwingUtil utlity class.
- Make OSXUtil accept JFrame instead of ClientUI
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Automatically append 300 to every world that is lower than 300 to
support both f.e. 22 and 322 formats for specifying the world.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Because special attack orb has been added to OSRS in latest update, this
plugin is no longer needed. The functionality that shows next change
will need to be readded in future.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add default world plugin where user will be able to set his default
world. In case invalid world is set, the client default/selected one
will be used instead.
Fixes#475Closes#749
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Export World from RS client
- Export changeWorld method
- Create new method for creating RuneScape world
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Replace abbreviations with full names
- Make casing in plugins consistent (title case)
These changes are needed in order to achieve better navigation in config
panel and also to improve search results in the panel (and to reduce the
mess with current naming).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
For most of people this plugin is not relevant so it should be disabled
by default as it adds unnecessary clutter in populated areas.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
In case loading of Discord library failed, continue running application
and just disable Discord support.
Fixes#826
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add link browser utility service that will try to open specified link in
browser, and in case operation fails displays message box and copy URL
to clipboard.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
When you splash or miss too many times HP dissapears and thus client
thinks that you have -1 HP and then idle notifier ignores that. Reason
why -1 check was there is because it was added in modification when we
were preventing the NPCs to throw notifications. But after some testing
it looks like that just checking for combat level is enough.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Correctly focus game canvas when requesting ClientUI focus. Also, move
the call to OSXUtil.requestFocus() to clientUI.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Replace equality check with contains check due to recent renaming of
some fishing spots from OSRS side.
Fixes: #755
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
As this is not used in chat commands only anymore, and since it is
configuration parameter that noone needs to disable, it is unnecessary
and is just causing confusion.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Move enabling of tray notifications to RuneLiteConfig
- Move request when focused notification option to RuneLiteConfig and
use it in notifier
- Move request window focus to RuneLiteConfig and use it in notifier
- Change Notifier to use Guice for creation
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Remove catch rate overlay because the catch attemps do not always need
to be correct, because sometimes it might count other player's trap.
Also, it works only for imps, boxes and bird snares otherwise it always
shows 100%.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Remove animation checks from hunter plugin because animations are
unreliable and do not work during 3ticking. Reasoning is it is better to
have shown extra traps sometimes than not registering own traps
sometimes
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Fix crash that can happen when ConfigChanged event arrives to ClientUI
and pack method is called in the event thread. Move swing/awt related
calls to swing thread to avoid this issue.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add default timeout of 10 seconds to notify-send on Linux to not depend
on default notification timeout on Linux notify daemon, because on some
system the default can be never hide unless timeout is set.
See also: #549
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add support for maniacal monkey large boulder traps to hunter plugin
- Add support for notifications on maniacal monkey catch/escape
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Store last gameObject as static variable in tile mixin and in case new
event is exactly same as last one in game object spawned, do not
proceed.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- 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
Set PuzzleSolverOverlay layer to be above widgets so the arrows would
actually render over the puzzle box.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
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>