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>
- 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>