Commit Graph
100 Commits
Author SHA1 Message Date
Tomas Slusny 046304bedd Merge pull request #675 from Kamielvf/raids-plugin-fix
Fix minor issues with Raids plugin
2018-02-25 10:47:27 +01:00
Tomas Slusny 2efce3646e Fix crash in ClienUI configChanged event
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>
2018-02-24 22:11:43 +01:00
Tomas Slusny daff19c13e Merge pull request #643 from sethtroll/fiximagecomponent
image component: fix images being off-centered
2018-02-24 02:50:49 +01:00
Tomas Slusny a77f9b361f Rename "Low memory" to "Low detail" plugin
Closes #595

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-24 02:01:04 +01:00
Tomas Slusny 973d2b6aab Merge pull request #678 from Kamielvf/overlayrender-fix
Fix overlays not being rendered
2018-02-23 22:01:27 +01:00
Tomas Slusny 9f0ccf04c1 Merge pull request #672 from devLotto/grounditems-offset-z
grounditems: offset text on z axis
2018-02-23 13:24:48 +01:00
Tomas Slusny dff2b3147b Add default timeout to notify-send on Linux
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>
2018-02-23 12:18:37 +01:00
Tomas Slusny 807a38d769 Add support for maniacal monkeys to hunter plugin
- 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>
2018-02-22 16:18:11 +01:00
Tomas Slusny 9313747479 Prevent throwing duplacite events for GameObject
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>
2018-02-22 16:18:11 +01:00
Tomas Slusny b3537781b5 Merge pull request #642 from Abextm/info-panel-disable
Allow the info panel's navButton to be removed on shutDown
2018-02-21 08:33:10 +01:00
Tomas Slusny dfcdf93968 Add chat history plugin
- 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
2018-02-20 19:39:57 +01:00
Tomas Slusny df7f4a6a7d Add check for clan members > 0 when inserting icon
To prevent caching clan icons after world hopping/logout when chat history sends the messages.
2018-02-20 19:39:56 +01:00
Tomas Slusny 04cf082b9c Enhance the sending message API
- 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
2018-02-20 19:39:48 +01:00
Tomas Slusny b7e45278b0 Fix PuzzleSolverOverlay layer
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>
2018-02-20 12:41:32 +01:00
Tomas Slusny e4080d65c5 Merge pull request #621 from Sethtroll/removenullableclient
Remove @Nullable Client annotations
2018-02-18 00:43:44 +01:00
Tomas Slusny f8a8e9e53d Display tooltips for widget actions
Check for option instead of target presence when renderingt the mouse
highlighting overlay.

Fixes: #490

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-16 18:14:31 +01:00
Tomas Slusny 55f79acfef Add support for Karambwan/Karambwanji to fishing
- 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>
2018-02-16 11:24:17 +01:00
Tomas Slusny fafe5ffabe Disable configuration button when all items hidden
Disable configuration button in ConfigPanel when all configuration items
of the plugin are hidden.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-16 08:21:27 +01:00
Tomas Slusny 52be62f751 Merge pull request #590 from Kamielvf/teamcape-update
Update team cape plugin to make use of new plugin panel toggles
2018-02-16 07:46:55 +01:00
Tomas Slusny 7b9ca399b0 Merge pull request #587 from Kamielvf/clan-icons-fix
Fix clanchat icons
2018-02-16 00:22:27 +01:00
Tomas Slusny a0f074fd86 Re-cache chatMessageManager colors on startup
Re-cache chatMessageManager colors on plugin startup and refresh chat
messages.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:56:20 +01:00
Tomas Slusny cc124d6d58 Properly invalidate cache and load icons in Clan
Properly invalidate cache on plugin shutdown and load clan chat icons on
plugin startup.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:29 +01:00
Tomas Slusny 659cfa6dc2 Remove "plugin" from each plugin name
Having "plugin" in plugin names is completely redundant and should not
be there.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:29 +01:00
Tomas Slusny 5659719d53 Enable/disable plugins in the ConfigPanel
Add ability to enable and disable plugins in the config panel.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:28 +01:00
Tomas Slusny d5c5ae8dcf Add startup and shutdown methods to DiscordPlugin
Add startup and shutdown methods that will update/reset the current
discord rich presence status

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:28 +01:00
Tomas Slusny 2d559d1aab Add null check for 6 hour waiting time
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>
2018-02-15 16:24:28 +01:00
Tomas Slusny 033fb640b1 Clear game objects on plugin shutdown
As we receive new events from RegionTileManager now, properly clear
all cached game objects on plugin's shutdown
2018-02-15 16:24:27 +01:00
Tomas Slusny 0c41a9c89d Add region tile manager
- 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>
2018-02-15 16:00:11 +01:00
Tomas Slusny bf9f190475 Fix slayer plugin task reset on config change
- 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>
2018-02-15 16:00:10 +01:00
Tomas Slusny 36c4ab3c15 Remove enabled() checks
- 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>
2018-02-15 16:00:08 +01:00
Tomas Slusny c3fae86356 Add ability to disable/enable all plugins
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>
2018-02-15 15:57:51 +01:00
Tomas Slusny 8a9523ec5a Add logback logger that will log to file
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>
2018-02-12 15:09:57 -05:00
Tomas Slusny 34b8eeafdd Merge pull request #561 from Sethtroll/fixslayerplugin
slayer plugin: add check for cachedXp when xp changes
2018-02-11 03:25:59 +01:00
Tomas Slusny 033086f551 Fix logging inside info panel plugin
- 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>
2018-02-09 00:15:05 +01:00
Tomas Slusny 66c0979de4 Merge pull request #538 from UniquePassive/low-detail-fix
Low memory mode audio fix
2018-02-06 10:16:38 +01:00
Tomas Slusny ea06adf9f4 Add Discord plugin
Add Discord plugin that updates the Discord rich presence currently only
for trained skills.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-04 17:20:07 +01:00
Tomas Slusny 15ad949123 Add Discord RPC service
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>
2018-02-04 17:20:03 +01:00
Tomas Slusny 8995129595 Merge pull request #525 from Unmoon/ground-items-viewport
Show ground items under widgets and with interfaces open
2018-02-04 00:25:13 +01:00
Tomas Slusny 9748f435d7 Fix MLM plugin overlay layer
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>
2018-02-04 00:19:06 +01:00
Tomas Slusny 2c2af1c814 Merge pull request #515 from Sethtroll/fixinjectedfields
Make injected fields private
2018-02-03 01:27:59 +01:00
Tomas Slusny bdac07dd02 Merge pull request #517 from SomeoneWithAnInternetConnection/boosts-fixes
Fix NullPointerExceptions from Boosts Plugin
2018-02-02 11:49:51 +01:00
Tomas Slusny d211fc87d4 Adjust overlay layers and priorities
- 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>
2018-02-02 08:23:48 +01:00
Tomas Slusny c35d8fb9ef Add new overlay layer position
- 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>
2018-02-02 08:23:13 +01:00
Tomas Slusny 60473a2fc8 Change default overlay position to UNDER_WIDGETS
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>
2018-02-02 08:20:22 +01:00
Tomas Slusny 7ee2c9d4b6 Fix access levels of WSClient
- 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>
2018-01-30 16:49:16 -05:00
Tomas Slusny 8d81e82177 Change AccountSession to use lombok features
- Change AccountSession to use lombok @Data annotation
- Make UUID and created final

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-30 16:49:16 -05:00
Tomas Slusny d19c9c1e62 Merge pull request #479 from Abextm/config-warning
Add config warnings for non-immediate options
2018-01-29 11:48:59 +01:00
Tomas Slusny 27a0c54399 Merge pull request #483 from Abextm/fix-statrestore
Fix SuperRestore and friends
2018-01-29 11:24:57 +01:00
Tomas Slusny 469fef2e87 Preserve guava classes in the shaded jar
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>
2018-01-28 17:51:04 +01:00
Tomas Slusny 148f8dfb31 Merge pull request #422 from Sethtroll/addmotherlodemine
Add Motherlode plugin
2018-01-27 18:42:20 +01:00
Tomas Slusny 24618abad2 Update XP tracking plugin to include more info
- Add actions, actions/hr, xp gained and total exp tracker

Fixes #401

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-26 19:10:54 -05:00
Tomas Slusny a8f364c005 Fix the frame is displayable exception
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>
2018-01-26 15:13:06 +01:00
Tomas Slusny c62d7cac2e Fix coloring of warned attack styles
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>
2018-01-26 12:08:34 +01:00
Tomas Slusny dd6ec52510 Change conversion of config stream to map to pairs
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>
2018-01-26 08:31:04 +01:00
Tomas Slusny 7efb8ab486 Fix idle animation plugin timer cancelling
- Cancel animation idle timer when combat begins
- Cancel combat idle timer when animation begins

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-25 20:14:25 +01:00
Tomas Slusny 68ba5f40b6 Add low memory mode plugin 2018-01-24 12:48:07 -05:00
Tomas Slusny 1ad129a608 Update Project Lombok version to 1.16.20
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>
2018-01-23 15:58:02 +01:00
Tomas Slusny a8765c1e77 Fix idle notifications for animation changes
- 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>
2018-01-22 15:36:31 +01:00
Tomas Slusny 46ea18801d Fix NPE in ScreenShotPlugin
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>
2018-01-20 17:50:00 +01:00
Tomas Slusny c7a6af5d24 Add shutDown method to XpTrackerPlugin
Remove navigation button from panel on shutDown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:45 -05:00
Tomas Slusny 7c68ddcfa8 Add shutDown method to TimersPlugin
Remove all TimerTimer infoboxes on shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:43 -05:00
Tomas Slusny d59324623a Add startup and shutdown methods to SlayerPlugin
- Set task on plugin startup if logged in
- Remove all infoboxes on plugin shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:42 -05:00
Tomas Slusny 378c4ca010 Add shutDown method to HiscorePlugin
Remove navigation button from panel on shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:41 -05:00
Tomas Slusny 17bf0d1f1e Add shutDown to DevtoolsPlugin
Remove navigation button on shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:40 -05:00
Tomas Slusny dd7cd14f46 Add shutDown to ConfigPlugin
Remove config button from navbar on shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:39 -05:00
Tomas Slusny 19517856c5 Add shutDown to BossTimersPlugin
Remove all RespawnTimers on BossTimersPlugin shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:38 -05:00
Tomas Slusny a1e5c13657 Fix startup and shutdown method of AccountPlugin
- Add correct navigation button based on previous session
- Remove naviagtions buttons from navBar on plugin shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-19 19:39:37 -05:00
Tomas Slusny 1cea7436e1 Add startUp method for attack indicators plugin
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>
2018-01-19 19:39:36 -05:00
Tomas Slusny d41c6ec6d8 Fix new player-is-x mixins
- 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>
2018-01-14 05:07:57 +01:00
Tomas Slusny 8699ce9414 Add plugin for displaying player names
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>
2018-01-14 05:01:15 +01:00
Tomas Slusny f565c4b7dd Add tile indicators plugin
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>
2018-01-13 03:25:37 +01:00
Tomas Slusny 3479ea3f30 Fix runelite-plugin-archetype
- 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>
2018-01-12 20:29:06 +01:00
Tomas Slusny 9ea5ce17e6 Add search bar to ConfigPanel
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>
2018-01-11 18:33:34 +01:00
Tomas Slusny f26cf7ac00 Let overlapping tooltips stack vertically
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-11 16:58:56 +01:00
Tomas Slusny 4871aee9ae Improve clan rank caching
- 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>
2018-01-09 18:53:26 +01:00
Tomas Slusny 26b61be869 Add support for making tar idle notification
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-09 10:26:22 +01:00
Tomas Slusny e75d798689 Add Antidote++ timer to TimerPlugin
Add missing Antidote++ timer to TimerPlugin

Closes #334

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-09 01:00:26 +01:00
Tomas Slusny c431a18a37 Add support for super antifire potion
Add support for newly introduced super antifire potion to TimersPlugin.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-01-09 00:59:47 +01:00
Tomas Slusny 549103d9cb Change warning for not found task to debug
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>
2018-01-04 08:35:19 +01:00
Tomas Slusny 389a2be7ae Show account and config plugins when outdated
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>
2017-12-30 00:02:45 +01:00
Tomas Slusny 0d8870e7da Remove unnecessary null checks for game client
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>
2017-12-29 18:17:17 +01:00
Tomas Slusny 6c2e827d4a Move creation of UI to ClientUI class
- 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>
2017-12-29 18:17:16 +01:00
Tomas Slusny 6bf63a447f Cleanup RuneLite class fields
- 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>
2017-12-29 18:17:16 +01:00
Tomas Slusny b4eba39f6b Move creation of tray icon to ClientUI
Move creation of tray icon from RuneLite to ClientUI.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-29 18:17:15 +01:00
Tomas Slusny 06836b3e1d Move setTitle to ClientUI
Move setTitle method from RuneLite to ClientUI.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-29 18:17:15 +01:00
Tomas Slusny bd521acbb0 Move creation of client to RuneLite
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>
2017-12-29 18:17:09 +01:00
Tomas Slusny 69b88fe3e3 Extract runQuery to QueryRunner service
Extract runQuery method from runelite to separate Guice service.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-29 16:41:09 +01:00
Tomas Slusny 984ebb63dd Extract session-related logic to SessionManager
- 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>
2017-12-29 16:41:09 +01:00
Tomas Slusny 82ee4a0036 Change Notifier to be injectable service
Move notify methods to Notifier and change it to be injectable Guice
service.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-29 16:41:09 +01:00
Tomas Slusny 19416ba5ca Normalize plugin panel display
- 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>
2017-12-23 19:30:27 -05:00
Tomas Slusny 4568f4302f Move IconTextField to Hiscore plugin
As it is the only place where it is used, it should be placed there.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-23 19:30:26 -05:00
Tomas Slusny 670ffe135f Simplify navigation button code
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>
2017-12-23 19:30:25 -05:00
Tomas Slusny bb8f17d75e Change XP tracker button to use image
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>
2017-12-23 19:30:21 -05:00
Tomas Slusny 002cf6223f Change UIManager defaults to use OSRS font
Change UIManager defaults for fonts to use OSRS font instead.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-23 19:30:11 -05:00
Tomas Slusny 4660bb3739 Fix OkHttp connection leaks on connection error
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>
2017-12-22 02:05:28 +01:00
Tomas Slusny 7c989dc105 runelite-client: Add app name to RuneliteProperties 2017-12-19 20:37:40 -05:00
Tomas Slusny 3769cab5b4 Remove unused app property from RSStub
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-19 20:15:54 -05:00
Tomas Slusny 801a907f15 Isolate graphics for each overlay (#267)
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>
2017-12-17 14:18:15 +01:00
Tomas Slusny 69deaa5b4a Fix overlay renderer cache
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>
2017-12-17 00:31:35 +01:00
Tomas Slusny 08e3282ed7 Add support for examining bank and eq items price
Add support for showing bank, bank inventory and equipment item prices
when examined.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-17 00:16:51 +01:00