Commit Graph

303 Commits

Author SHA1 Message Date
Adam
d4682746c7 api: remove SetMessage event 2019-02-07 19:42:25 -05:00
Adam
d7e605f051 api: add MessageNode and timestamp to ChatMessage event 2019-02-07 19:42:24 -05:00
Adam
1bb29d4cd0 api: remove projectile getInteracting
This is unused currently and is being abused by some hacked clients.
2019-02-01 20:52:24 -05:00
Max Weber
001ac540e7 mixins: Don't clobber left click forced menuops 2019-01-28 05:06:53 -07:00
Max Weber
935ce60791 mixins: Force RUNELITE_OVERLAY menuops to not be left click
This is similar to how you cannot left click the remove placeholder button
2019-01-26 07:57:59 -07:00
Adam
ccae0c2c48 api: mark getCollisionMaps as nullable 2019-01-19 15:23:47 -05:00
Tomas Slusny
0d5eac1a88 Add ClientTick event
Add ClientTick event that is fired every time game cycle counter
is updated.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-01-13 19:35:24 -05:00
Max Weber
7268d2cf34 ScriptVM: Bump execution time limit
This was changed a long time ago in Jagex's code. Normal listeners timeout after 500kops, but onLoadListeners timeout after 5mops
2019-01-07 19:03:15 -07:00
Adam
a342a1f220 Merge pull request #7200 from Abextm/skybox-y
Add Skybox plugin
2019-01-07 13:48:49 -05:00
Max Weber
9098d1fa94 Add Skybox plugin 2019-01-07 13:39:09 -05:00
Adam
0e7b9cf380 scene mixin: disable clickbox checks when detatched camera is enabled
This is already disabled in GPU mode (since we control the clickboxes
there), has no real use, and is frequently abused.
2019-01-07 10:18:20 -05:00
Adam
758f95c517 Merge pull request #7090 from Abextm/premul-alpha-external
gpu: Use premultiplied alpha
2018-12-31 22:41:20 -05:00
Adam
bff1bb6f70 model data mixin: move lighting model log message to trace level 2018-12-28 22:05:13 -05:00
Max Weber
b1bfe1c47f gpu: Use premultiplied alpha 2018-12-27 13:32:07 -07:00
Adam
ed13fd3039 api: add timestamps to message nodes, expose message id 2018-12-13 20:00:38 -05:00
WooxSolo
f7377d75ec gpu: fix black overlays behind gradients 2018-12-03 09:58:41 -05:00
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