Lower default width of PanelComponent to same as the XP tracker, so 129.
Also, change fishing and woodcutting overlays to draw shorter text to
fit in new overlay panel size.
Update opponent info as well because it is using own implementation of
panel component.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add new property fill to background component, if set to false,
background is not drawn, only borders
- Use backgroundComponent for drawing instance map borders
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Set correct offsets for overlays based on resizable or fixed mode
- Change PanelComponent inside padding to be slighly smaller
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>
- 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>