Commit Graph

1545 Commits

Author SHA1 Message Date
Adam
033cf3bb01 cache: split loading archive files from archive loading
Also no longer store archive contents in memory and instead read it from
storage on demand.
2017-12-17 18:36:05 -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
rbbi
bc3af562bd Guice : RuneliteProperties inj (#212) 2017-12-17 04:06:23 +01:00
XrioBtw
7ac5d5935c Fix tooltips rendering behind the game
Fixes #257
2017-12-17 03:29:19 +01:00
Adam
8dbe2d012a Merge pull request #263 from deathbeam/examine-bank-eq
Add support for examining bank and eq items price
2017-12-16 20:53:44 -05:00
Adam
3a9e1ecb62 Merge pull request #265 from deathbeam/fix-broken-plugins
Fix overlay renderer cache
2017-12-16 20:52:55 -05:00
Adam
a1c74c2e21 Merge pull request #264 from SomeoneWithAnInternetConnection/fix-plugin-archetype
Fix example plugin to use the new overlay API
2017-12-16 20:51:35 -05: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
Adam
21f2543059 cache: fix compression with encryption 2017-12-16 18:24:00 -05: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
SomeoneWithAnInternetConnection
9e8b524eb1 Fix example plugin to use the new overlay API
PR #246 changed the API for overlays slightly. This change fixes the
maven archetype plugin to match
2017-12-16 18:01:10 -05: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
Adam
cba9866304 cache: remove tree storage 2017-12-16 17:50:47 -05:00
Adam
440ecd6c7c cache server: never send appended archive revision 2017-12-16 17:27:21 -05:00
Adam
270ed11d1a Merge pull request #262 from SomeoneWithAnInternetConnection/XPOrb-tooltip-exception-fix
Fix IllegalArgumentExceptions from XPGlobes' tooltips for level 1 stats
2017-12-16 16:25:09 -05:00
SomeoneWithAnInternetConnection
aad76b9bab Fix IllegalArgumentExceptions from XPGlobes' tooltips for level 1 stats
To draw the progress bar, XPGlobesOverlay.drawTooltipIfMouseover() uses
Experience.getXPForLevel(), which threw an IllegalArgumentException when
asked about level 1. This change shifts the XP_FOR_LEVEL array over by
one, so that XP_FOR_LEVEL[0] is the XP required to reach level 1 (i.e. 0),
rather than the XP required for level 2.
2017-12-16 16:09:58 -05:00
Adam
c31758a715 cache: test scope slf4j-simple 2017-12-16 15:58:44 -05:00
Adam
a94ccedbf0 cache: use own Xtea implmentation instead of bouncycastle's 2017-12-16 15:58:43 -05:00
Adam
0049b8d34e cache: improve xtea test 2017-12-16 15:58:42 -05:00
Adam
1a6f84caa9 cache: remove whirlpool as it is not in osrs 2017-12-16 15:58:41 -05:00
Adam
e46d9e8c17 Merge pull request #254 from deathbeam/native-ui-cleanup
Cleanup overlay logic after native-ui changes
2017-12-16 08:30:35 -05: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
Adam
ebc52ed680 Merge pull request #246 from deathbeam/plugin-ui-update
Make overlay UI reusable and look native
2017-12-13 18:39:08 -05: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
Adam
c16ad7c984 Merge pull request #252 from tylerthardy/dynamicFix
Fix default config for dynamic plugins
2017-12-13 11:33:05 -05:00
Tyler Hardy
8fead88575 Fix default config for dynamic plugins 2017-12-13 10:19:59 -05:00
Toocanzs
a9ec078333 Dispose of BufferedImage graphics in overlay util 2017-12-09 17:13:05 -05:00
Adam
f11c20b4ad Merge pull request #245 from deathbeam/examine-stackables
Show price of entire stack for stackable items when examined
2017-12-08 18:46:09 -05:00
Adam
1a47dca550 Merge pull request #248 from tylerthardy/remDeprecatedPlugins
Remove deprecated plugins
2017-12-08 18:37:05 -05:00
Tomas Slusny
49a11cab46 Show full price for stackable items when examined 2017-12-08 18:34:30 -05:00
Tyler Hardy
bd584e85ec Remove FPS plugin (deprecated by base osrs ::displayfps) 2017-12-08 17:25:29 -06:00
Adam
ea74c47d46 chat message manager: avoid adding chat messages on threads 2017-12-08 18:15:50 -05:00
Adam
4762a322f2 runelite-client: fix scheduler for concurrent modifications
Plugins can be loading and unloading while the scheduler is running
2017-12-08 17:30:29 -05:00
Adam
5cf5684397 Merge pull request #241 from deathbeam/examine-item-price
Show item price when examining item
2017-12-07 21:30:22 -05:00
Tyler Hardy
53749495eb Add crazy arch to aoe plugin 2017-12-07 21:13:47 -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
Toocanzs
6fac9d1d7b Change game tick hook to npc update 2017-12-05 20:43:30 -05:00
Adam
fc944dfd34 clanchat: don't load icons more than once 2017-12-05 07:44:23 -05:00
Adam
712ae989e4 Merge pull request #236 from deathbeam/clan-ranks
Add clan ranks to clan chat
2017-12-04 19:43:25 -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
Adam
e1623f239a Move setMessage hook to end of method 2017-12-04 19:28:29 -05:00
Adam
e4bac7f685 injector: support hooking to ends of methods 2017-12-04 19:28:22 -05:00
Adam
2da46e1ec3 runescape-api: fix javadoc error 2017-12-04 15:51:51 -05:00
Adam
ee867992c3 injector: add construct injector to create new instances of classes 2017-12-04 14:34:44 -05:00
Adam
4380440777 Merge pull request #237 from tylerthardy/karambwans
Add Karambwan fishing to animation and idle plugin
2017-12-04 08:09:05 -05:00
Tyler Hardy
2c29f119ec Add Karambwan fishing to animation and idle plugin 2017-12-04 05:17:23 -06:00
Adam
6bc9cccf41 runelite-client: fix infoboxes
Infobox overlay is not created by the injector so client was not being injected

Fixed from 403f7bd5d7a3d514a9dcec067cfdba622e3361b0
2017-12-02 21:00:00 -05:00