Commit Graph

1404 Commits

Author SHA1 Message Date
Adam
46d66d7823 Change MenuEntry type to int
We don't have all of the types in MenuAction and it causes them to get mapped to UNKNOWN when translated back and forth with the API
2018-04-02 08:24:16 -04:00
Adam
5a74798833 Merge pull request #1104 from sethtroll/addshiftclicktag
npc indicator: add shift right click to add tag option
2018-04-01 21:04:33 -04:00
Adam
953effd615 Merge pull request #1197 from DevDennis/clip-ground-items-overlay
Clip overlays on the above scene layer to the viewport
2018-04-01 20:53:14 -04:00
Max Weber
44c740f21e Add ChatboxInputManager to provide a RuneScape styled input box 2018-04-01 16:16:27 -04:00
Max Weber
0c04804d1a ScriptEvent > ScriptCallbackEvent 2018-04-01 16:16:25 -04:00
Seth
4a90ff549e npc indicator: add shift right click to add tag option
currently, npc tagging causes some npc's to have the tag option as left click which can cause missclicks. This adds the ability to add the "tag" option only when shift is being pressed
2018-04-01 15:52:19 -04:00
Adam
c68e0c6064 Merge pull request #1225 from MESLewis/clue-small-fix
Fix challenge answer for Nurse Wooned clue
2018-04-01 15:31:58 -04:00
Adam
fac507c7e8 player indicators plugin: change color of menus 2018-04-01 15:06:59 -04:00
Adam
c0bec73e5c player indicator overlay: render clan rank next to names 2018-04-01 15:06:59 -04:00
Adam
74fd91d887 clanmanager: expose way to get bufferedimages for clan icons 2018-04-01 15:06:58 -04:00
Adam
2b64f1b569 Move clanmember icon logic to clanmanager 2018-04-01 15:06:55 -04:00
Adam
c916b9cb34 Add clan member manager to cache clanmember ranks, use in clanchat plugin 2018-04-01 15:06:32 -04:00
Tomas Slusny
2455b4f639 Add support for drawing player team's names
Add support for drawing player names and indicators for players in same
team as actual player.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 14:27:20 -04:00
Adam
65e3629f34 clanchat plugin: change cache to expire after write 2018-04-01 14:21:00 -04:00
Adam
34f18f5656 Revert "Merge pull request #1154 from deathbeam/team-member-names"
This reverts commit f0293087ce0a2e2dc515cfb57ef926c185d25cb5, reversing
changes made to 309c1fde25d32086cfd242f988c8f45df903d66c.
2018-04-01 14:20:27 -04:00
Morgan Lewis
da523258ac Fix challenge answer for Nurse Wooned clue 2018-04-01 11:46:37 -06:00
Adam
7ced52e004 Merge pull request #1146 from deathbeam/move-buttons-to-sidebar
Move title toolbar buttons to sidebar in native
2018-04-01 12:20:45 -04:00
Adam
425177ab94 Merge pull request #1134 from MESLewis/mouse-tooltip-tweaks
Mouse Tooltip Options
2018-04-01 11:23:21 -04:00
Adam
96b75e088b overlay renderer: clip above scene and under widgets to viewport on fixed
The minimap on fixed is drawn before above scene and under widgets
2018-04-01 11:16:10 -04:00
Adam
4265a1cf15 overlay renderer: use copyonwritelist for overlays
The map can be rebuilt during rendering
2018-04-01 10:52:48 -04:00
Morgan Lewis
9a4a80dd88 Add options to disable mouse tooltip on interfaces and chatbox 2018-04-01 10:38:13 -04:00
Morgan Lewis
5c46cc2159 Add names from widgetInfo to the Widget Inspector 2018-04-01 10:01:58 -04:00
Adam
6992b4ee39 Merge pull request #1154 from deathbeam/team-member-names
Enhance player indicators plugin
2018-04-01 09:52:12 -04:00
Tomas Slusny
d98fe4cf2d Properly invalidate clan ranks and names
- Invalidate clan ranks when player changes his clan
- Invalidate player names when game state changes

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:54 -04:00
Tomas Slusny
52129598e5 Always remove tags from player.getName()
- Move removal of tags to RSPlayerMixin
- Remove tags from players names where needed

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:53 -04:00
Tomas Slusny
59ad536fa9 Merge clan chat and player indicators plugin
As the only purpose of clan chat was to add clan chat icons for players
in CC, this functionality can be done too from Player Indicators plugin.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:52 -04:00
Tomas Slusny
5044e40bdd Use built-in name rendering in player indicators
- Change player indicators to use built-in player name rendering
- Add support for drawing clan member rank icons thanks to built-in
player name rendering

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:50 -04:00
Tomas Slusny
24e6b24200 Add support for drawing player team's names
Add support for drawing player names and indicators for players in same
team as actual player.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:11:11 -04:00
Tomas Slusny
a730ae0d22 Use provider for client in item manager
To prevent ItemManager initializing with null client change reference to
the client to Provider<Client>.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 04:18:08 +02:00
Adam
197c42eafd Merge pull request #1198 from sethtroll/addregiontoagility
agility plugin: Add region check to lap counter
2018-03-31 21:31:14 -04:00
Seth
543476cf54 agility plugin: Add region check to lap counter
Some courses have obstacles that have XP equal to another courses last obstacle making it trigger a new course. This adds a region check to make sure you are in the correct region for the course
2018-03-31 21:00:13 -04:00
Adam
331b634f49 Merge pull request #1209 from sethtroll/fiximplingoverlay
impling plugin: Move minimap overlay into it's own overlay
2018-03-31 20:56:41 -04:00
Adam
68b38d106f Merge pull request #1207 from deathbeam/fix-ground-item-recache
Invalidate ground items and item composition cache
2018-03-31 20:50:46 -04:00
Adam
942f396c21 Merge pull request #1210 from MESLewis/ground-item-user-input
Add configuration options for ground item plugin
2018-03-31 20:49:08 -04:00
Seth
3d5e0b82b0 impling plugin: Move minimap overlay into it's own overlay
to render above minimap on resizable, the overlay must be rendered above widgets
2018-03-31 18:58:52 -05:00
Tomas Slusny
7164d4cc8c Merge pull request #1202 from rune3132/master
Added the turquoise slayer helmet to the slayer plugin
2018-04-01 01:57:36 +02:00
Morgan Lewis
43ca959c2a Add configuration options for ground item plugin 2018-03-31 16:50:38 -06:00
Tomas Slusny
dff0ce007d Invalidate item manager cache on hopping and login
Invalidate item manager composition cache when person is hopping or goes
to login screen to prevent issues with changing from p2p to f2p worlds.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-31 20:56:31 +02:00
Tomas Slusny
19bd1f5c67 Invalidate ground items cache properly
Instead of clearing ground items after game state change, just mark the
ground items dirty.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-31 20:54:29 +02:00
Adam
4878cf14a2 Merge pull request #1125 from Kamielvf/shift-click-customization
Shift click customization
2018-03-30 22:36:41 -04:00
Kamiel
f9c0a12a1a Add shift click customization to menu swapper plugin 2018-03-30 22:25:07 -04:00
Kamiel
194dadd030 Add event for ItemComposition post() 2018-03-30 22:14:55 -04:00
Adam
8385ef174b ground items: use item layer changed event 2018-03-30 18:40:15 -04:00
Adam
42353e4863 ground items overlay: use a loop 2018-03-30 18:40:14 -04:00
Tomas Slusny
9dfd671121 Reduce the amount of temporary objects in items
- Reduce the amount of GroundItem objects created by mutating objects
instead of creating merged copies
- Reduce the amount of stream transformations required by using
LinkedHashMap and sorting the ground items before collection

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-30 18:40:13 -04:00
Tomas Slusny
5272e2d9b6 Color the hidden items gray when in highlight mode
Color hidden ground items gray when in item highlight mode to show
different between non-hidden and hidden items.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-30 18:40:13 -04:00
Tomas Slusny
76d954db21 Improve ground items plugin
- Reduce amout of iterations per frame by pre-collecting the ground
items on game tick
- Collect ground items in ground item plugins and pre-compute some
easy-to-get values
- Replace the looping over all tiles with looping over collected ground
items
- Change GroundItemOverlay logic to support single list of items instead
of multi-dimensional array

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-30 18:40:12 -04:00
Tomas Slusny
9a47c4db6d Move title toolbar buttons to sidebar in native
When native window decorations are enabled (e.g when custom window
chrome is disabled), to reduce code complexity, but to maintain current
usability (e.g prevent adding new UI elements in order to position the
icons somewhere) move the title toolbar icons to sidebar.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-31 00:28:08 +02:00
Adam
618d86f05c Merge pull request #1191 from deathbeam/fix-overlay-viewport-npe
Move viewport check below gamestate and CTP
2018-03-30 14:10:50 -04:00
Tomas Slusny
e7897eccc2 Save overlay data after resetting position
Due to flaw in logic, the save event in mouseReleased was never
triggered when overlay position was reset. It is not possible anymore to
go through the logic again/not worth and so save the overlay data
immediately.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-30 04:01:02 +02:00