Commit Graph

287 Commits

Author SHA1 Message Date
Lotto
bcf05083df Merge pull request #6315 from devLotto/stretchedmode-reducescalingtime
stretchedmode: reduce wait time after changing scaling percentage
2018-11-27 04:40:39 +01:00
Lotto
b145fae00f stretchedmode: reduce wait time after changing scaling percentage
It now sets the max width and height right before the canvas is resized,
so the canvas size uses those max bounds immediately, instead of setting
it 500ms after the canvas is resized initially.
2018-11-25 17:56:41 +01:00
Adam
d715b3a50c runelite-api: add skull icon api for local player 2018-11-24 11:18:15 -05:00
Adam
14d6cd9670 Add implementation of getSprites as it has been inlined 2018-11-22 07:27:41 -05:00
Adam
dcbcae21d1 Merge pull request #6572 from Abextm/fix-carrot
Fix carrots in ChatboxTextInput
2018-11-19 17:48:15 -05:00
Adam
98b4e5aede mixins: remove extended visiblity maps
They ended up not being used on GPU, and the time spent calculating them
noticibly slows down the client when resizing it.
2018-11-19 12:41:01 -05:00
Max Weber
b8ff7f8412 ScriptVM: Catch exceptions thrown from a JavaScriptCallback
These shouldn't crash the client
2018-11-18 17:43:55 -07:00
Lotto
5e3caf9190 gpu: limit interaction distance from camera
The bounding box limitation is not enough for preventing users from interacting with objects far away when the game window is wide.

This introduces a limit on how far away the camera can be from objects for you to be able to interact with them, remedying the issue above.
2018-11-17 16:15:28 +01:00
Adam
3f5e273349 Add GPU renderer 2018-11-15 09:37:36 -05:00
Adam
f09a0d7d89 mixins: replace drawScene
This is in preparation for extending draw distance.
2018-11-15 09:30:34 -05:00
Tomas Slusny
11b0121814 Properly limit scaling factor for stretched resizable
Instead of limiting width and height when stretching to fixed mode size,
limit scaling factor to fixed mode size to prevent improportional
stretching in resizable mode.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-11-09 16:40:38 +01:00
Tomas Slusny
78ffe80805 Unlimit stretched resizable mode
The limits are no longer necessary as it is limited anyway to fixed mode
base size, and with new method of scaling the 100% max is quite
limiting.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-11-09 16:40:37 +01:00
Adam
42ad93c33c entity hider: check for players with no names
Not sure why this happens but we have stacktraces of isFriend crashing
due to a player not having a name (yet?). It looks like the names are
sent separately from the player spawn in the protocol.
2018-11-07 18:08:41 -05:00
Lotto
02d814f6a6 Merge pull request #6314 from devLotto/stretchedmode-improved-scaling
stretchedmode: retain aspect ratio when scaling
2018-11-06 12:49:37 +01:00
Adam
258d66cfd9 player mixin: remove unused field 2018-11-04 18:52:50 -05:00
Lotto
fdfdf77ddc stretchedmode: retain aspect ratio when scaling 2018-11-02 16:18:31 +01:00
Lotto
e7aea257e3 stretchedfixedmode: rename plugin to 'stretched mode' 2018-10-31 20:21:19 +01:00
Lotto
7cf3e3401a stretchedfixedmode: add resizable interface scaling 2018-10-31 20:21:07 +01:00
Max Weber
2434557e1a Add ChatboxPanelManager to allow for more advanced chatbox inputs 2018-10-21 17:05:14 -06:00
Max Weber
33dec14a38 Add JavaScriptCallback to allow java callbacks instead of cs2 2018-10-21 16:49:31 -06:00
WooxSolo
33db0af80d Rename getUnknownSoundValues2 2018-10-19 20:02:56 +02:00
Adam
6b0f747a75 mixins: fix runelite message not being cleared on reused messages nodes 2018-10-08 18:12:47 -04:00
Adam
b325e0dbf3 Merge pull request #5751 from Abextm/widget-assertions
Run unsafe widget accesses on client thread
2018-10-04 10:27:43 -04:00
Adam
930987825f Merge pull request #5756 from Abextm/varbit-thread-safe
Make sure varbit access happen on the client thread
2018-10-04 10:23:17 -04:00
Max Weber
a35cb5fbd4 Add thread assertion to getVar(Varbits) 2018-10-02 03:37:13 -06:00
Tomas Slusny
345e5aa258 Merge pull request #3635 from deathbeam/add-currently-hovered-tile
Add currently hovered tile to TileIndicators
2018-10-02 10:55:42 +02:00
Max Weber
b559a6b1af Add thread assertions to Widget 2018-10-02 01:04:22 -06:00
Tomas Slusny
ac5ef045b7 Make sprite and widget sprite overrides more flexible
- Expose NodeCache interface in RuneLite
- Expose Client.getWidgetSpriteCache and reset method on it
- Change setters for sprite and widget overrides to be getters

This allows for more than 1 plugin to use the widget/sprite override API
in future.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-09-28 20:47:57 +02:00
Tomas Slusny
01628545df Add mappings for checkClick, mouseCanvasHoverX/Y
- Add mappings to use checkClick, mouseCanvasHover X and Y from
runescape-client
- Add methods to set them to runelite-api

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-09-28 11:31:36 +02:00
Tomas Slusny
73dbea874a Properly name Perspective methods, remove unused
- Properly rename world->local Perspective methods and force them to
accept LocalPoint to prevent confusion
- Remove unused params from Perspective methods

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-09-28 11:06:45 +02:00
Adam
2b27e2163c runelite-api: add queueChangedSkill for queueing a skill change event 2018-09-19 18:42:14 -04:00
Tomas Slusny
396f24e39d Merge pull request #5445 from devLotto/issue-1979
entityhider: make hidden entities not occupy the tile they're on
2018-09-18 13:35:02 +02:00
Jordan Atwood
ea284f9ca0 Centralize item (de)spawn log messages
Fixes runelite/runelite#5452
2018-09-14 14:33:06 -07:00
Lotto
18851f1094 entityhider: make hidden entities not occupy the tile they're on 2018-09-13 00:00:31 +02:00
Max Weber
a03b34a2c3 runelite-mixins: Add setter for varcint 2018-09-11 22:10:57 -06:00
Max Weber
d159bc63b3 runelite-api: Update widget field names 2018-09-09 11:02:14 -06:00
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