Commit Graph
79 Commits
Author SHA1 Message Date
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
Tomas Slusny e4d15f0790 Fix displaying of examine price without GE value
Fix displaying of : in item price when GE value is missing and only HA
value is present.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-16 23:54:33 +01:00
Tomas Slusny 4d8dde760f Cleanup overlay logic after native-ui changes
- 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>
2017-12-15 00:13:44 +01:00
Tomas Slusny 4076f75e34 runelite-client: Make overlay UI reuseable and look native 2017-12-13 18:26:56 -05:00
Tomas Slusny f78667f9c7 runelite-client: add plugin changed event 2017-12-13 18:26:25 -05:00
Tomas Slusny 49a11cab46 Show full price for stackable items when examined 2017-12-08 18:34:30 -05:00
Tomas Slusny 02ebe82e2d Show item price when examining item
- 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>
2017-12-07 21:08:38 -05:00
Tomas Slusny 4860eb871f Add chat message recolouring API
- 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>
2017-12-07 21:08:36 -05:00
Tomas Slusny 88932d2a72 Improve item caching
- Add item composition cache and item search cache to ItemManager

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-07 21:08:34 -05:00
Tomas Slusny 454fd4cfc1 Add clan ranks to clan chat
- 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>
2017-12-04 19:33:13 -05:00
Tomas Slusny 1c86c30e1a Make native notifications lightweight
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>
2017-12-02 15:01:05 -05:00
Tomas Slusny 663cb8e69f Add hide items under value to GroundItems plugin
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>
2017-12-02 01:10:20 +01:00