Commit Graph

251 Commits

Author SHA1 Message Date
Adam
2b81d30228 Add Ignore API 2018-08-24 21:13:34 -04:00
Adam
962d5d7827 runelite-api: add method for getting number of friends 2018-08-24 21:13:26 -04:00
Adam
3bfcae3c77 mixins: fix friend manager mixin to implement friend manager 2018-08-16 20:07:55 -04:00
Adam
41634c96ab Change world load event to fire at the end of world loading 2018-08-15 15:36:18 -04:00
Adam
f25eaff16e Add world load event 2018-08-14 10:13:25 -04:00
Lotto
12da232985 runelite-client: add world hopper plugin
Co-authored-by: Adam <Adam@anope.org>
Co-authored-by: psikoi <ruben.amendoeira@gmail.com>
Co-authored-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-12 09:15:04 -04:00
Lotto
189d54122c runelite-api: add total level api 2018-08-12 08:51:02 -04:00
Lotto
e93ee86a21 mixins: add world hopping mixin 2018-08-12 08:51:00 -04:00
Adam
bb87983ed5 mixins: simplify acquiring client thread reference 2018-08-09 21:36:24 -04:00
Tomas Slusny
94e5596d22 Merge pull request #4667 from deathbeam/move-index-to-db
Move isOverlayOutdated to IndexDatabase
2018-08-06 09:31:38 +02:00
Adam
2b0e286063 Merge pull request #4635 from Abextm/camera-pitch-fix
mixins: Fix camera pitch relaxer not fully relaxing after a screen shake
2018-08-05 09:57:29 -04:00
Tomas Slusny
5a152f0514 Move isOverlayOutdated to IndexDatabase
Instead of creating new callback and then simply setting boolean on
RuneLite to dump it somewhere, expose this boolean from IndexDatabase
and remove injection of RuneLite.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-03 11:09:54 +02:00
Adam
ca7ca3a7a0 Disable zoom extender when a cache overlay fails to load
The zoom extender relies on multiple scripts to be up to date. If only one is changed, its functionality breaks badly.
2018-08-02 18:52:30 -04:00
Max Weber
dcd775cea4 mixins: Fix camera pitch relaxer not fully relaxing after a screen shake 2018-08-01 20:12:36 -06:00
Tomas Slusny
676b2cf5d2 Account for plane in TileObject canvas location
Fixes #4571

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-30 16:36:58 +02:00
Adam
6c7ea1f834 runelite-mixins: correct worldToCanvas arguments
The 'plane' is no longer actually a z offset
2018-07-27 18:26:38 -04:00
Max Weber
87bf71c1ff mixins: Prevent runScript from being called recursively
Due to the extensive use of globals in the ScriptVM it is not reentrant
2018-07-24 18:25:40 -06:00
Adam
0297f7684c mixins: optimize widget isHidden and getParent 2018-07-22 12:13:09 -04:00
Adam
630a3947da mixins: only update render parent of nested widget if widget would have been rendererd 2018-07-22 12:13:09 -04:00
Max Weber
f1907fc7b1 mixins: Don't post mouse events that have already been posted 2018-07-19 06:32:38 -06:00
Tomas Slusny
f99b1416b7 Remove unused import from RSTileMixin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-18 20:04:45 +02:00
Adam
bdc9008c1d Add item despawn events when ground items is nulled
When you walk into view of a chunk, all tiles get cleared followed by item spawns
2018-07-18 13:00:21 -04:00
Max Weber
6b278d48a5 Add API to create new widgets 2018-07-17 18:19:01 -06:00
Adam
99c7848294 Remove item layer changed event 2018-07-16 17:53:30 -04:00
Adam
1bac71f840 Add item spawn events 2018-07-16 17:42:17 -04:00
Max Weber
d7473bdb07 Rename Region to Scene 2018-07-16 03:45:20 -06:00
Adam
2aa08231a2 Add getVarpValue and setVarpValue to RSClientMixin and Client 2018-07-09 08:54:50 -04:00
Adam
25c58fb69b Change Widget::parentId behavior to work again if the widget hasn't been drawn yet
Some events/plugins require this behavior
2018-07-01 16:52:35 -04:00
Max Weber
a96d13b6c9 mixins: Don't show siblings in dynamic widget's child lists
dynamic widgets can't have non-dynamic children because the load code can't refer to them because they can't be fully qualified by id.
2018-06-28 16:00:39 -04:00
Adam
799f8b1266 Calculate and store widget parent id and position when the interfaces are rendered
This removes the need to calculate widget bounds and parent on demand by
traversing up the widget tree.
2018-06-28 16:00:38 -04:00
Adam
8247163fee animation smoothing: don't interpolate hellhound defence animation 2018-06-25 17:20:00 -04:00
Adam
714a533735 Revert "animation smoothing: do not interpolate to angle 0"
This reverts commit 68639d8932.
2018-06-25 17:20:00 -04:00
Tomas Slusny
f68dea3df7 Merge pull request #3830 from deathbeam/center-stretched-fixed
Center stretched fixed mode horizontally
2018-06-25 16:40:21 +02:00
Adam
68639d8932 animation smoothing: do not interpolate to angle 0
This fixes most of the issue with hellhounds (npc 104, anim 6566)
2018-06-24 21:24:25 -04:00
DESKTOP-G1DDN84\Denni
62dec90d42 animation smoothing: fix angle bounds for rotation 2018-06-24 21:24:24 -04:00
Adam
d239a47d98 Add interacting changed event 2018-06-24 11:19:01 -04:00
Adam
00a5845c7e actor mixin: fix getInteracting when index is 65535
There are short times where it is this before being set to -1
2018-06-24 11:19:01 -04:00
Tomas Slusny
af7e76502b Add new toBufferedOutline method to SpritePixels
Add method that returns item image with outline to SpritePixels.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 14:20:11 -04:00
Adam
f0da475370 Add interface representing all callbacks the client does, and convert mixins to use it
This allows creating and injecting Hooks via guice
2018-06-23 09:20:12 -04:00
Tomas Slusny
ffbc89a801 Move menuActionHook to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:36 -04:00
Tomas Slusny
486c8c985a Move clientMainLoop to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:35 -04:00
Tomas Slusny
7437da1237 Move drawRegion call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:35 -04:00
Tomas Slusny
d948dc05ed Move drawAboveOverheads call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:34 -04:00
Tomas Slusny
bac06e5b3a Move graphicsObjectCreated to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:34 -04:00
Tomas Slusny
517c4c4796 Move addChatMessage to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:33 -04:00
Tomas Slusny
4d6386d846 Move projectileMoved to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:32 -04:00
Tomas Slusny
3835f005f6 Move setMessage to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:32 -04:00
Tomas Slusny
4241e4384f Move postItemComposition to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:31 -04:00
Tomas Slusny
eea63dd171 Move focusLost to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:29 -04:00
Tomas Slusny
384bdb1179 Move focusGained to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:28 -04:00